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.
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()); }