Jaa


Report.designNumber Method

Definition

Overloads

designNumber()

Gets an existing design.

designNumber(Int32)

designNumber()

Gets an existing design.

public:
 virtual Dynamics::AX::Application::ReportDesign ^ designNumber();
public virtual Dynamics.AX.Application.ReportDesign designNumber ();
abstract member designNumber : unit -> Dynamics.AX.Application.ReportDesign
override this.designNumber : unit -> Dynamics.AX.Application.ReportDesign
Public Overridable Function designNumber () As ReportDesign

Returns

The specified reportDesign, or nullNothingnullptrunita null reference (Nothing in Visual Basic) if the design did not exist.

Remarks

If number is < 1, design 1 is returned.

The following example demonstrates the designNumber method.

void testDesign(args a) 
{ 
    report r; 
    reportDesign rd; 
    int i; 
    r = new report("myReport"); 
    if (r.DesignCount() == 0) 
    { 
        print "The report has no designs"; pause; 
    } 
    for (i=1; i<=r.DesignCount();i++) 
    { 
        rd = r.DesignNumber(i); 
        print "Design No. ", i, " has name ", rd.Name(); 
    } 
    pause; 
}

Applies to

designNumber(Int32)

public:
 virtual Dynamics::AX::Application::ReportDesign ^ designNumber(int _number);
public virtual Dynamics.AX.Application.ReportDesign designNumber (int _number);
abstract member designNumber : int -> Dynamics.AX.Application.ReportDesign
override this.designNumber : int -> Dynamics.AX.Application.ReportDesign
Public Overridable Function designNumber (_number As Integer) As ReportDesign

Parameters

_number
Int32

An integer that specifies the desired design; optional.

Returns

Applies to