ReportDesign.sectionGroup Method

Definition

Overloads

sectionGroup(Int32)

Finds a reportSectionGroup object below a reportDesign object.

sectionGroup(Int32, Int32)

sectionGroup(Int32)

Finds a reportSectionGroup object below a reportDesign object.

public:
 virtual Dynamics::AX::Application::ReportSectionGroup ^ sectionGroup(int num1);
public virtual Dynamics.AX.Application.ReportSectionGroup sectionGroup (int num1);
abstract member sectionGroup : int -> Dynamics.AX.Application.ReportSectionGroup
override this.sectionGroup : int -> Dynamics.AX.Application.ReportSectionGroup
Public Overridable Function sectionGroup (num1 As Integer) As ReportSectionGroup

Parameters

num1
Int32

Returns

The section group that matches the arguments.

Remarks

The following example finds the section group that is created by the addSection method:

static void test(args a) 
{ 
    reportRun rr; 
    inventTrans rec; 
    int i; 
    int t = tablenum(inventTrans); 
    int f = fieldnum(inventTrans, datePhysical); 
    // Create a simple report that is not present in 
    // the Application Object Tree. 
    report r = new report(); 
    reportDesign rd = r.addDesign("myDesign"); 
    reportSectionGroup rsg; 
    reportSection rs = rd.AddSection(reportBlockType::body, t); 
    rs.addControl(t,f); 
    rsg = rd.SectionGroup(t); 
    if (rsg) 
    { 
        rs = rsg.AddSection(ReportBlockType::Header); 
        rs.AddTextControl("This is the groupHeader"); 
    } 
    // Run the report. 
    rr = new reportRun(r); 
    // Run the sysPrintForm form 
    if (rr.prompt()) 
    { 
        select rec; 
        rr.send(rec); 
        // Print the report to the target, such as printer or screen, that  
        // was selected during the prompt call above. 
        rr.print();  
    } 
}

Applies to

sectionGroup(Int32, Int32)

public:
 virtual Dynamics::AX::Application::ReportSectionGroup ^ sectionGroup(int _tableId, int _fieldId);
public virtual Dynamics.AX.Application.ReportSectionGroup sectionGroup (int _tableId, int _fieldId);
abstract member sectionGroup : int * int -> Dynamics.AX.Application.ReportSectionGroup
override this.sectionGroup : int * int -> Dynamics.AX.Application.ReportSectionGroup
Public Overridable Function sectionGroup (_tableId As Integer, _fieldId As Integer) As ReportSectionGroup

Parameters

_tableId
Int32

The field of the section group; optional.

_fieldId
Int32

The field of the section group; optional.

Returns

Applies to