AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX: За рубежом > DAX in English
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 07.07.2011, 16:05   #1  
Dark Smile is offline
Dark Smile
Junior AX Developer
 
16 / 10 (1) +
Регистрация: 17.06.2011
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  
S.Kuskov is offline
S.Kuskov
Участник
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
 
3,429 / 1772 (66) ++++++++
Регистрация: 28.04.2007
Адрес: Калуга
UtilElements
UtilIdElements.parentId?

Последний раз редактировалось S.Kuskov; 07.07.2011 в 17:07.
Старый 07.07.2011, 16:21   #3  
Dark Smile is offline
Dark Smile
Junior AX Developer
 
16 / 10 (1) +
Регистрация: 17.06.2011
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  
S.Kuskov is offline
S.Kuskov
Участник
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
 
3,429 / 1772 (66) ++++++++
Регистрация: 28.04.2007
Адрес: Калуга
X++:
while select UtilIdElements
where
    UtilIdElements.recordType == _UtilElementType &&
    UtilIdElements.name == _UtilElementName
{
...
}
За это сообщение автора поблагодарили: Billings81 (0).
Старый 07.07.2011, 19:28   #5  
Dark Smile is offline
Dark Smile
Junior AX Developer
 
16 / 10 (1) +
Регистрация: 17.06.2011
okay, its simple... thank you
__________________
Kind Regards
Robin
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
axaptapedia: Table Field Group Blog bot DAX Blogs 0 02.07.2011 05:37
axaptapedia: Table Field Group Blog bot DAX Blogs 0 25.06.2011 06:33
Халтура в AX2009: идентификаторы из USR в GLS, GLP и даже SYS-слоях EVGL DAX: Программирование 2 21.02.2011 19:44
DynamicsAxSCM: The InventTrans table. Explore various field usages. Blog bot DAX Blogs 0 09.11.2010 19:10
gatesasbait: FieldId switch-case on an table's array-type field Blog bot DAX Blogs 0 20.12.2007 20:30

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 01:19.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.