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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 11.05.2011, 17:35   #1  
ideveloper is offline
ideveloper
Участник
 
34 / 11 (1) +
Регистрация: 11.05.2011
Best Practice for AiF Queries
Hi.

I have a Query for an AiF-Service which is build with ca. 5 Tables.
The disadvantage of this is the overhead of the Service schema. It could deliver me all fields of the tables, but I need only 5 of them.

Is it a best practice solution to build the Query with the "drag and drop" Method or should I create a display field in the custom table, where I try to get the values from the according tables.

Or is there an another solution to minimize the schema?

Tanks.

Regards
ideveloper
Старый 11.05.2011, 17:47   #2  
kashperuk is offline
kashperuk
Участник
Аватар для kashperuk
MCBMSS
Соотечественники
Сотрудники Microsoft Dynamics
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии 2011
Лучший по профессии 2009
 
4,361 / 2084 (78) +++++++++
Регистрация: 30.05.2004
Адрес: Atlanta, GA, USA
Can't you just turn off (remove) the fields you don't need from the schema?
Старый 11.05.2011, 18:44   #3  
ideveloper is offline
ideveloper
Участник
 
34 / 11 (1) +
Регистрация: 11.05.2011
Hi.

I create the AIF-Service (and the schema) with the AIF Document Service Wizard. It gets a Query as an input value.
The fields in the query can not be deleted.
Старый 11.05.2011, 18:53   #4  
kashperuk is offline
kashperuk
Участник
Аватар для kashperuk
MCBMSS
Соотечественники
Сотрудники Microsoft Dynamics
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии 2011
Лучший по профессии 2009
 
4,361 / 2084 (78) +++++++++
Регистрация: 30.05.2004
Адрес: Atlanta, GA, USA
Well, so, first of all, you should change the fields on the query (you need to set the property Dynamic on the Fields node to No, and then manually add only the fields you need).

But also, in the service setup, you can control, which fields are visible/mandatory/etc.
I don't have an AX 2009 version here, but you should be able to find it - it's somewhere under AIF setup.
За это сообщение автора поблагодарили: ideveloper (1).
Старый 11.05.2011, 19:08   #5  
ideveloper is offline
ideveloper
Участник
 
34 / 11 (1) +
Регистрация: 11.05.2011
Thank you for the answer.
This solution works well.
Старый 11.05.2011, 19:09   #6  
kashperuk is offline
kashperuk
Участник
Аватар для kashperuk
MCBMSS
Соотечественники
Сотрудники Microsoft Dynamics
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии 2011
Лучший по профессии 2009
 
4,361 / 2084 (78) +++++++++
Регистрация: 30.05.2004
Адрес: Atlanta, GA, USA
OK, just to clarify for others that might be reading this in a couple of months:
The setup is found on Endpoints, and is called Data policies.
Теги
display field, query, service, aif

 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
gatesasbait: Improved AOT Queries in Ax2009 Blog bot DAX Blogs 3 12.10.2011 15:03
dax-lessons: Easy way to write queries/select statements – Editor scripts Blog bot DAX Blogs 0 17.12.2010 21:11
AX UK: Building a Microsoft Virtualisation & Management Practice Blog bot DAX Blogs 0 17.02.2010 21:07
Code Access Security - ошибка Best Practice Vhaldemar DAX: Программирование 9 05.11.2008 11:48
C# and AX Development: Complex Queries in AX Blog bot DAX Blogs 2 06.03.2008 17:57

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

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

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