DictTable.Relation Method

Definition

Overloads

Relation(Int32)

Returns the name of a relation that is specified by index.

Relation(Int32, TableScope)

Relation(Int32)

Returns the name of a relation that is specified by index.

public:
 virtual System::String ^ Relation(int RelationNumber);
public virtual string Relation (int RelationNumber);
abstract member Relation : int -> string
override this.Relation : int -> string
Public Overridable Function Relation (RelationNumber As Integer) As String

Parameters

RelationNumber
Int32

Returns

The name of the relation that is specified by the RelationNumber parameter; an empty string if the RelationNumber value is not a valid relation index.

Remarks

The following example shows the retrieval of the name for each relation in a table.

DictTable dt; 
int       i; 
dt = new DictTable(tablenum(CustTable)); 
if (dt) 
{ 
    for (i=1; i <= dt.relationCnt() ; i++) 
    { 
        print dt.relation(i); 
    } 
}

Applies to

Relation(Int32, TableScope)

public:
 virtual System::String ^ Relation(int RelationNumber, Microsoft::Dynamics::Ax::Xpp::TableScope tableScope);
public virtual string Relation (int RelationNumber, Microsoft.Dynamics.Ax.Xpp.TableScope tableScope);
abstract member Relation : int * Microsoft.Dynamics.Ax.Xpp.TableScope -> string
override this.Relation : int * Microsoft.Dynamics.Ax.Xpp.TableScope -> string
Public Overridable Function Relation (RelationNumber As Integer, tableScope As TableScope) As String

Parameters

RelationNumber
Int32
tableScope
TableScope

Returns

Applies to