Configuring Drop-Downs
To configure a descriptor as a drop-down menu or drop-down list box:
-
Set the PTNDDESCnLINKABLE field to “D” for a linkable drop-down menu.
Set the field to “R” for a read-only (non-linkable) drop-down menu.
Set the field to “L” for a linkable drop-down list box.
-
Populate the PTDESCRn_DD_ID field (or the PTDESCRn_DROPDOWN_ID if your chart does not use a display template) with the drop-down ID.
-
Create a derived/work record that contains the fields in the subrecord PTORGBOXLST_SBR.
-
Add PeopleCode to set the drop-down data record and the drop-down rowset.
For example:
&ocPBOrg.SetDropDownRecord(Record.DropDown); &ocPBOrg.SetDropDownData(&rsDropDown); -
Populate the drop-down data rowset with the list information for each of the drop-down list IDs.
-
Place FieldChange PeopleCode on the PTNODE_DESCRn field to perform corresponding logic when a list item is selected in a linkable drop-down.