PopupMenuField sets a nominated field on the Parent table to the value selected from the Popup menu and optionally runs a script.
PopupMenuField( valueListOptions ; fieldName {; script ; status ; bgColor})
| 1 | valueList* | The list of values in the Popup menu. See note below. |
|---|---|---|
| 2 | fieldName | The name of the field to receive the chosen value. This must be in quotes and be the full TableOccurrence::FieldName form. |
| 3 | script (opt) |
Name of the script to run when the user selects a value. |
| 4 | status (opt) |
Text or name of a field containing “enabled” (the default), “disabled”, or “hidden”, or a calc which returns one of those 3 values. When hidden, the popup menu disappears from view. When disabled, it does not run the script, but still sets the nominated field. |
| 5 | bgColor (opt) |
Default is white, but you can specify the color: see “Background Color” in the “Basics” section. |
PopupMenuField (
"Details¶Contacts¶Enrolments¶Reserves¶Courses"; // Value List
"Test::MyField" ; // fieldName
"Choose People Tab Set" ; // script
"enabled" ; // status
"white"// bgColor
)
* The Value List can be: