FormComboBoxControl.dataSource Method [AX 2012]

Gets or sets a data source that should be used by the control or the form.

public int dataSource([anytype value])

Run On

Client

Parameters

value
Type: anytype
The value to assign as the data source for the combo box control; optional.

Return Value

Type: int
The identifier of the data source that should be used.

The following example shows how to set and return the data source for the combo box control.

int i; 
 
// The combo variable was previously assigned  
// as a FormComboBoxControl variable. 
 
// Retrieve the data source. 
i = combo.dataSource(); 
 
// Set the data source. 
combo.dataSource(tablenum(CustTable));

Community Additions

ADD
Show: