JavaScript
listObj._getControlsInDv Method
Syntax
listObj._getControlsInDv()
Returns
- resultstring arraystring
Returns an array of control ids in the List's Detail View. If the List has no detail view, returns an empty string.
Description
Returns an array of all of the controls in the Detail View.
Discussion
The _getControlsInDv() method returns an array of controls in the List's Detail View. Only controls that actually exit are returned. For example, say you specified that the Detail View is all of the controls in a container called 'CONTAINER_1' and one of the controls in this container is called 'SHIPPING_ADDRESS', but the List does not have a field called 'SHIPPING_ADDRESS'. The array of controls returned by this function will not include the 'SHIPPING_ADDRESS' control.
Example
var listObj = {dialog.object}.getControl("LIST1"); if (listObj) { var detailViewCtrls; detailViewCtrls = listObj._getControlsInDv(); var msg = ""; detailViewCtrls.forEach(function(ctrlId, arrIndex, thisArray) { msg = msg + ctrlId + " = " + {dialog.object}.getValue(ctrlId) + "<br>"; }); A5.msgBox.show("Detail View Values",msg,"o"); }
Limitations
List Control with Detail View Part
See Also