Configuring Drop-Downs

To configure a descriptor as a drop-down menu or drop-down list box:

  1. 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.

  2. 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.

  3. Create a derived/work record that contains the fields in the subrecord PTORGBOXLST_SBR.

  4. Add PeopleCode to set the drop-down data record and the drop-down rowset.

    For example:

    &ocPBOrg.SetDropDownRecord(Record.DropDown);
    &ocPBOrg.SetDropDownData(&rsDropDown);
    
  5. Populate the drop-down data rowset with the list information for each of the drop-down list IDs.

    See Populating the Drop-Down Rowset.

  6. Place FieldChange PeopleCode on the PTNODE_DESCRn field to perform corresponding logic when a list item is selected in a linkable drop-down.