Products | Versions |
---|---|
TIBCO Collaborative Information Manager | - |
Not Applicable | - |
Resolution:
TIBCO Product name and version: TIBCO Collaborative Information Manager 7.X
Operating System(s): All Operating Systems
Symptoms:
In a drop down, a user can type an arbitrary value and click "Save and process", this saves the record with an empty value for the drop down attribute.
Cause:
N/A
Workaround:
When an arbitrary value is typed in for a drop down attribute and the user clicks "Save and Process" for the record, an empty value is taken in for the drop down attribute. As a workaround the following constraint can be used to force a user adding/editing record to select a value from the drop down. A drawback in using this workaround is that, the drop down attribute will turn out to be a mandatory attribute with the check constraint in place.
<constraint>
<name>PopulateDropDown</name>
<description>PopulateDropDown</description>
<usefor>
<var>SHORTDESC</var>
</usefor>
<action>
<select novalue="yes">
<enum>
<const type="string"> No</const>
<const type="string"> Yes</const>
</enum>
</select>
</action>
</constraint>
<constraint>
<name>CheckSHORTDESC</name>
<description>CheckSHORTDESC</description>
<usefor>
<var>SHORTDESC</var>
</usefor>
<action>
<check>
<explanation lang="en">SHORTDESC not selected</explanation>
<defined>
<var>SHORTDESC</var>
</defined>
</check>
</action>
</constraint>
Attachments:
None
References:
None