Report.design Method [AX 2012]

Retrieves an existing design.

public ReportDesign design([str name])

Run On

Called

Parameters

name
Type: str
The name of the report to be returned; optional.

Return Value

Type: ReportDesign Class
The design that has the specified name, or nullNothingnullptrunita null reference (Nothing in Visual Basic) if it was not found.

If no argument is supplied and the report only contains one design, the method returns the one design.

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: