datasetStr Function [AX 2012]

Updated: February 2, 2011

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Retrieves the name of a dataset as a string.


str datasetStr(dataset dataset)

Parameter

Description

dataset

A dataset that is defined in the AOT.

The name of the data set.

Use this function instead of literal text to retrieve a string that contains the data set name. If the dataset does not exist, the function generates a syntax error at compile time.

The following example assigns the name of the CustomerList dataset to "Dataset_Name".

str Dataset_Name;
Dataset_Name = datasetStr(CustomerList);

Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).

Community Additions

ADD
Show: