Jaa


ReportSection.sectionGroup Method

Definition

Overloads

sectionGroup(Int32, Int32)
sectionGroup(Int32)

Finds an existing section group in the generated design.

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 ID; optional.

_fieldId
Int32

The field ID; optional.

Returns

Applies to

sectionGroup(Int32)

Finds an existing section group in the generated design.

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 specified section group.

Remarks

The following example demonstrates the sectionGroup 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);  
        // Run the report. 
        rs.AddTextControl("This is the groupHeader"); 
    } 
    rr = new reportRun(r);  
    // Run the sysPrintForm form. 
    if (rr.prompt())  
    {  
        select rec;  
        rr.send(rec);  
        // Print report to the target, such as printer or screen. 
        rr.print();  
    } 
}

Applies to