Products | Versions |
---|---|
TIBCO Collaborative Information Manager | - |
Not Applicable | - |
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/<enterprise_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.
<SCRIPT 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>