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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 08.12.2011, 22:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
emeadaxsupport: AIF: How to add extra non database field into XSD.
Источник: http://blogs.msdn.com/b/emeadaxsuppo...-into-xsd.aspx
==============

The idea is to add new extra field into schema definition and into whole AIF process but do not have this field part of table or query. It could be simple “counted” field.

For now, we will start with new table and new query. When you generate document services by wizard, make sure that Generate AxBC class is checked.



The new project is now generated. Part of this project is a class with name Ax. This Class is inherited from AxInternalBase and there are method parm. Here you can add a new virtual method with name you want and with type you want. Datetype will be generic on in XSD (for example xs: string).

In my example I added field “Field8Extra”.

public str parmField8Extra(str _field8extra = ''){ return "Modified field " + testTable.Field7;} Now you can regenerate XSD by job file to check result.

My XSD file now have one more line with new field inside:




--author: Karel Fischl --ediror: Karel Fischl --date: 8/Dec/2011


Источник: http://blogs.msdn.com/b/emeadaxsuppo...-into-xsd.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
emeadaxsupport: Microsoft Dynamics AX Enterprise Portal: How to add hyperlink field to AxGridView Blog bot DAX Blogs 0 20.07.2011 23:16
emeadaxsupport: How to: Add a new operation to AIF Document Service. Blog bot DAX Blogs 0 01.04.2011 00:12
emeadaxsupport: Documentation "How to: Add a URL Drill Through Action" confusing Blog bot DAX Blogs 0 25.02.2011 16:11
CRM DE LA CREME! Some more useful javascripts for MS CRM Blog bot Dynamics CRM: Blogs 0 04.05.2010 11:05
emeadaxsupport: Problems when trying to update a certain field with AIF Blog bot DAX Blogs 0 19.08.2009 18:05

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

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

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