Dynamics AX Blog - Posts from Dezember 2012

These posts are machine-translated.
Currently, only posts from »Dezember 2012« are displayed Filter entfernen

hasField()-Method

I had already seen the situation that I wanted to know if a record has a particular field to be able to process the containing value. For example, within a method, which processes the calling args().

For example, in class SysDictTable the hasMethod() method is available, but i have not found a hasField() method so far.

Therefore I've created the following logic:

Common callingRecord;
itemId itemId;
SysDictField itemDictField;

itemDictField = SysDictField::findFieldByName(tableId2name(callingRecord.TableId), identifierStr(itemId));

if(itemDictField)
{
    itemId = callingRecord.(itemDictField.id());
}

 


 
 
 

 

 
 
 
Posts of the actual month
Dezember 2012
MoTuWeThFrSaSu
 12
3456789
10111213141516
17181920212223
24252627282930
31 
 
© 2006-2025 Heinz Schweda | Imprint | Contact | German version | Mobile version
In order to provide you with better service, this site uses cookies. By continuing to browse the site, you are agreeing to our use of cookies.