Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Adds a date control to a report section.
Syntax
public ReportDateControl addDateControl(TableId tableId, FieldId fieldId)
Run On
Called
Parameters
- tableId
Type: TableId Extended Data Type
The table ID.
- fieldId
Type: FieldId Extended Data Type
The field ID.
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();
}
}