ReportSection.addDateControl Method

Adds a date control to a report section.

Syntax

public ReportDateControl addDateControl(TableId tableId, FieldId fieldId)

Run On

Called

Parameters

Return Value

Type: ReportDateControl Class
The date control that is created.

Examples

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

See Also

Reference

ReportSection Class