ReportDesign.addSection Method [AX 2012]

Adds a report section to a design.

public ReportSection addSection(
    ReportBlockType sectionType, 
   [TableId tableId, 
    FieldId fieldId])

Run On

Called

Parameters

sectionType
Type: ReportBlockType Enumeration
The section type.
tableId
Type: TableId Extended Data Type
If the sectionType parameter is set to Header, Body, or Footer, the table property of the section group that the section belongs to; optional.
fieldId
Type: FieldId Extended Data Type
If the sectionType parameter is set to Header, Body, or Footer, the dataField property of the section group that the section belongs to; optional.

Return Value

Type: ReportSection Class
The section that is created.

This method creates a generated design if it does not already exist. If the sectionType parameter is set to Header, Body, or Footer, this method creates a section group if it does not already exist.

Community Additions

ADD
Show: