Report.design Method [AX 2012]
Retrieves an existing design.
public ReportDesign design([str name])
Run On
CalledParameters
- name
- Type: str
The name of the report to be returned; optional.
Return Value
Type: ReportDesign ClassThe design that has the specified name, or nullNothingnullptrunita null reference (Nothing in Visual Basic) if it was not found.
static void testDesign(args a)
{
report r;
reportDesign rd;
r = new report("Cust");
rd = r.Design();
if (rd)
print "a) r.design() : ", rd.Name();
rd = r.Design("");
if (rd)
print "b) r.design(emptyString) : ", rd.Name();
rd = r.Design('customer');
if (rd)
print "c) r.design(customer) : ", rd.Name();
pause;
}
Community Additions
ADD
Show: