07.07.2011, 16:05 | #1 |
Junior AX Developer
|
Get the parent Table of a field only by fieldid
Hey Guys,
I got the following informations: - UtilElementName (Name of a tablefield) - UtilElementType (=TableField) - ID ( fieldname2id(UtilElementName) ) What i want is the Table which the field is in. I tried to use TreeNode but i failed because the path isn't complete (\\Data Dictionary\\Tables\\???\\Fieldname). I also can't use SysDictField because it wants a TableId too. My next idea was to search for the Table but i don't get it with SysTreeSearch - maybe i haven't the needed expierince. So can anyone help me to get the parentTable ? Thank you.
__________________
Kind Regards Robin |
|
07.07.2011, 16:16 | #2 |
Участник
|
UtilIdElements.parentId? Последний раз редактировалось S.Kuskov; 07.07.2011 в 17:07. |
|
07.07.2011, 16:21 | #3 |
Junior AX Developer
|
i don't have the utilElements.
These are Parameters given in Class SysCompilerOutput\compilerStatus... protected void compilerStatus(UtilElementType _utilElementType, str _utilElementName) {
__________________
Kind Regards Robin |
|
07.07.2011, 17:06 | #4 |
Участник
|
X++: while select UtilIdElements where UtilIdElements.recordType == _UtilElementType && UtilIdElements.name == _UtilElementName { ... } |
|
|
За это сообщение автора поблагодарили: Billings81 (0). |
07.07.2011, 19:28 | #5 |
Junior AX Developer
|
okay, its simple... thank you
__________________
Kind Regards Robin |
|