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.

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.

book

Article ID: KB0085779

calendar_today

Updated On:

Products Versions
TIBCO Collaborative Information Manager -
Not Applicable -

Description

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.

&ltconstraint>
  &ltname&gtPopulateDropDown</name>
  &ltdescription&gtPopulateDropDown</description>
  &ltusefor>
    &ltvar&gtSHORTDESC</var>
  </usefor>
  &ltaction>
    &ltselect    novalue="yes">
      &ltenum>
            &ltconst    type="string"> No</const>
            &ltconst    type="string"> Yes</const>
      </enum>
    </select>
  </action>
</constraint>

&ltconstraint>
&ltname&gtCheckSHORTDESC</name>
&ltdescription&gtCheckSHORTDESC</description>
&ltusefor>
&ltvar&gtSHORTDESC</var>
</usefor>
    &ltaction>
        &ltcheck>
        &ltexplanation lang="en"&gtSHORTDESC not selected</explanation>
            &ltdefined>
                &ltvar&gtSHORTDESC</var>
            </defined>
        </check>
    </action>
</constraint>


Attachments:

None

References:

None

Issue/Introduction

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.