Report.design Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
design() |
Retrieves an existing design. |
design(String) |
design()
Retrieves an existing design.
public:
virtual Dynamics::AX::Application::ReportDesign ^ design();
public virtual Dynamics.AX.Application.ReportDesign design ();
abstract member design : unit -> Dynamics.AX.Application.ReportDesign
override this.design : unit -> Dynamics.AX.Application.ReportDesign
Public Overridable Function design () As ReportDesign
Returns
The design that has the specified name, or nullNothingnullptrunita null reference (Nothing in Visual Basic) if it was not found.
Remarks
If no argument is supplied and the report only contains one design, the method returns the one design.
The following example demonstrates the design method.
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;
}
Applies to
design(String)
public:
virtual Dynamics::AX::Application::ReportDesign ^ design(System::String ^ _name);
public virtual Dynamics.AX.Application.ReportDesign design (string _name);
abstract member design : string -> Dynamics.AX.Application.ReportDesign
override this.design : string -> Dynamics.AX.Application.ReportDesign
Public Overridable Function design (_name As String) As ReportDesign
Parameters
- _name
- String
The name of the report to be returned; optional.