DictTable.Fieldname 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
Fieldname(Int32, DbBackend, Int32, FieldNameGenerationMode, String) | |
Fieldname(Int32, DbBackend, Int32) | |
Fieldname(Int32, DbBackend, Int32, FieldNameGenerationMode) | |
Fieldname(Int32) |
Returns the name of the field that is specified by field ID. |
Fieldname(Int32, DbBackend) |
Fieldname(Int32, DbBackend, Int32, FieldNameGenerationMode, String)
public:
virtual System::String ^ Fieldname(int fieldId, Microsoft::Dynamics::Ax::Xpp::DbBackend db, int arrayindex, Microsoft::Dynamics::Ax::Xpp::FieldNameGenerationMode generationMode, System::String ^ tableAlias);
public virtual string Fieldname (int fieldId, Microsoft.Dynamics.Ax.Xpp.DbBackend db, int arrayindex, Microsoft.Dynamics.Ax.Xpp.FieldNameGenerationMode generationMode, string tableAlias);
abstract member Fieldname : int * Microsoft.Dynamics.Ax.Xpp.DbBackend * int * Microsoft.Dynamics.Ax.Xpp.FieldNameGenerationMode * string -> string
override this.Fieldname : int * Microsoft.Dynamics.Ax.Xpp.DbBackend * int * Microsoft.Dynamics.Ax.Xpp.FieldNameGenerationMode * string -> string
Public Overridable Function Fieldname (fieldId As Integer, db As DbBackend, arrayindex As Integer, generationMode As FieldNameGenerationMode, tableAlias As String) As String
Parameters
- fieldId
- Int32
- db
- DbBackend
- arrayindex
- Int32
- generationMode
- FieldNameGenerationMode
- tableAlias
- String
The alias name for the table; optional.
Returns
Applies to
Fieldname(Int32, DbBackend, Int32)
public:
virtual System::String ^ Fieldname(int fieldId, Microsoft::Dynamics::Ax::Xpp::DbBackend db, int arrayindex);
public virtual string Fieldname (int fieldId, Microsoft.Dynamics.Ax.Xpp.DbBackend db, int arrayindex);
abstract member Fieldname : int * Microsoft.Dynamics.Ax.Xpp.DbBackend * int -> string
override this.Fieldname : int * Microsoft.Dynamics.Ax.Xpp.DbBackend * int -> string
Public Overridable Function Fieldname (fieldId As Integer, db As DbBackend, arrayindex As Integer) As String
Parameters
- fieldId
- Int32
- db
- DbBackend
- arrayindex
- Int32
The alias name for the table; optional.
Returns
Applies to
Fieldname(Int32, DbBackend, Int32, FieldNameGenerationMode)
public:
virtual System::String ^ Fieldname(int fieldId, Microsoft::Dynamics::Ax::Xpp::DbBackend db, int arrayindex, Microsoft::Dynamics::Ax::Xpp::FieldNameGenerationMode generationMode);
public virtual string Fieldname (int fieldId, Microsoft.Dynamics.Ax.Xpp.DbBackend db, int arrayindex, Microsoft.Dynamics.Ax.Xpp.FieldNameGenerationMode generationMode);
abstract member Fieldname : int * Microsoft.Dynamics.Ax.Xpp.DbBackend * int * Microsoft.Dynamics.Ax.Xpp.FieldNameGenerationMode -> string
override this.Fieldname : int * Microsoft.Dynamics.Ax.Xpp.DbBackend * int * Microsoft.Dynamics.Ax.Xpp.FieldNameGenerationMode -> string
Public Overridable Function Fieldname (fieldId As Integer, db As DbBackend, arrayindex As Integer, generationMode As FieldNameGenerationMode) As String
Parameters
- fieldId
- Int32
- db
- DbBackend
- arrayindex
- Int32
- generationMode
- FieldNameGenerationMode
The alias name for the table; optional.
Returns
Applies to
Fieldname(Int32)
Returns the name of the field that is specified by field ID.
public:
virtual System::String ^ Fieldname(int fieldId);
public virtual string Fieldname (int fieldId);
abstract member Fieldname : int -> string
override this.Fieldname : int -> string
Public Overridable Function Fieldname (fieldId As Integer) As String
Parameters
- fieldId
- Int32
The alias name for the table; optional.
Returns
The name of the field that is specified by its field ID.
Remarks
If db is not specified, the DbBackend::Native object is used.
The following example shows the retrieval of field names of a table as specified by the field IDs.
DictTable dt;
int i, tId, fId;
tId = tablenum(CustTable);
dt = new DictTable(tId);
if (dt)
{
for (i=1; i <= dt.fieldCnt(); i++)
{
fId = dt.fieldCnt2Id(i);
print(strfmt("%1) %2 %3", i, fId, dt.fieldName(fId)));
}
}
Applies to
Fieldname(Int32, DbBackend)
public:
virtual System::String ^ Fieldname(int fieldId, Microsoft::Dynamics::Ax::Xpp::DbBackend db);
public virtual string Fieldname (int fieldId, Microsoft.Dynamics.Ax.Xpp.DbBackend db);
abstract member Fieldname : int * Microsoft.Dynamics.Ax.Xpp.DbBackend -> string
override this.Fieldname : int * Microsoft.Dynamics.Ax.Xpp.DbBackend -> string
Public Overridable Function Fieldname (fieldId As Integer, db As DbBackend) As String
Parameters
- fieldId
- Int32
- db
- DbBackend
The alias name for the table; optional.