JavaScript
listObj._getListFieldFromControl Method
Syntax
listObj._getListFieldFromControl(control)
Arguments
- controlstring
Detail View control name.
Returns
- resultstringboolean
Returns the field name in the List that the Detail View control is mapped to. If the control doesn't exist or does not map to a field in the List, _getListFieldFromControl() returns undefined or false.
Description
Takes the name of a Detail View control and returns the field name in the List that the control is mapped to.
Example
var listObj = {dialog.object}.getControl("LIST1"); if (listObj) { var listField = listObj._getListFieldFromControl("NAME"); var msg = ""; if (listField) { msg = "The Detail View 'Name' control references the List Control's " + listField + " field."; } else { msg = "'Name' control does not reference any fields in the List Control." } A5.msgBox.show("Get List Field from Control",msg,"o"); }
Limitations
List Control with Detail View Part
See Also