ReportDesign.control Method [AX 2012]

Finds a control in the generated design, based on the control's table and dataField properties.

public ReportControl control(TableId tableId, FieldId fieldId)

Run On

Called

Parameters

tableId
Type: TableId Extended Data Type
The table property of the control.
fieldId
Type: FieldId Extended Data Type
The dataField property of the control.

Return Value

Type: ReportControl Class
The control that is found.

reportDesign rd = ...; 
reportControl rc = rd.control(tablenum(CustGroup), 
    fieldnum(CustGroup, Name));

Community Additions

ADD
Show: