This post is machine-translated. The original post in german language can be found here.
These post applies to following version:
Dynamics AX 2012
Dynamics AX 2012
|
|
|
|
|
|
This post is machine-translated. The original post in german language can be found here.
These post applies to following version:
Dynamics AX 2012
|
With the following piece of code you can determine whether a form is a list page.
{
TreeNode treeNode;
str formTemplateProperty;
#Properties;
treeNode = TreeNode::findNode(@"\\Forms\\CustTableListPage");
formTemplateProperty = global::findProperty(treeNode.AOTgetProperties(), #PropertyFormTemplate);
if(formTemplateProperty == #PropertyValueListPage)
{
warning("Form is ListPage");
}
}
If anyone knows a better/more elegant solution, so I would be happy, if he or she contributes via the comment function.