Making "comments" for workitems mandatory.

Making "comments" for workitems mandatory.

book

Article ID: KB0090616

calendar_today

Updated On:

Products Versions
TIBCO Collaborative Information Manager -
Not Applicable -

Description

Resolution:
Description:
============

Out-of-the-box, it is not possible to have comments for workitems be mandatory. But this can be done using custominit.html. The custominit.html is to be placed under the $MQ_COMMON_DIR/$MQ_COMMON_DIR/&ltenterprise_short_name>/htmlprops/ directory.

Environment:
===========
TIBCO Collaborative Information Manager (CIM) 8.X.

Symptoms:

Resolution:
==========

The following is a sample script, the element IDs may change in future releases.

&ltSCRIPT id="customInitId" language="JavaScript" type="text/javascript">    

function customInit()

{

var scrId = document.getElementById("hiddenScreenID");

                if( scrId != null && scrId.value == "409" ) {

                                var submitBtn = document.getElementById("btnSubmitImage");

                                var onclickCB = submitBtn.getAttribute("onclick");

                                submitBtn.onclick = function() {

                                                var commentText = document.getElementById("SubHeaderComment");

                                                if( commentText.value.trim().length > 0 ){

                                                                buttonClicked(this);

                                                                return doSubmit('PROCESS');

                                                }

                                                alert("Enter your comments.");

                                                return false;

                                }

                }

}

</SCRIPT>

Issue/Introduction

Making "comments" for workitems mandatory.