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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 09.12.2011, 23:12   #1  
Blog bot is offline
Blog bot
Участник
 
25,631 / 848 (80) +++++++
Регистрация: 28.10.2006
Axilicious:SysOperationFramework : Field display order
Источник: http://www.ksaelen.be/wordpress/2011...display-order/
==============

Since the arrival of Dynamics Ax 2012, the traditional RunBaseBatch framework is getting obsolete. This has been replaced by the SysOperationFramework. This framework brings a few nice features that were missing in the RunBaseBatch framework. One them is the MVC pattern to separate concerns.

The basics

I would like to start with a few links concerning how to create SysOperationFramework services. A colleague of mine, Klaas Deforce, has created some posts that clearly explain how it works.

All of the post are linked through this overview post : http://www.artofcreation.be/2011/08/...-introduction/

Field display order

Well now, let’s come to the question of this post : How can you determine the sequence of dialog fields on the dialogs created by the SysOperationFramework? The answer here lies in the Attributes available also in Dynamics Ax 2012. You have a contract with several datamembers marked with the [DataMemberAttribute] attribute. To determine the sequence you can add the [SysOperationDisplayOrderAttribute] attribute (http://msdn.microsoft.com/en-us/library/gg963068.aspx).

For an example of this, you can check the AssetBalanceReportColumnsContract class, method parmAssetBookId.

[ DataMemberAttribute('AssetBookId'), SysOperationGroupMemberAttribute('Book'), SysOperationDisplayOrderAttribute('1')]public AssetBookMergeId parmAssetBookId(AssetBookMergeId _assetBookId = assetBookId){ assetBookId = _assetBookId; return assetBookId;}

Groups and group sequence



In the previous sample of code you can also see the SysOperationGroupMemberAttribute attribute. This is to determine which fields belong to a certain group on a dialog. And you can also use a custom sequence on groups by using the SysOperationGroupAttribute attribute as seen in the classDeclaration:

[ DataContractAttribute, SysOperationGroupAttribute('Book', "@SYS95794", '1'), SysOperationGroupAttribute('Period', "@SYS40", '2')]public class AssetBalanceReportColumnsContract implements SysOperationValidatable{ boolean visibleFR; AssetBookMergeId assetBookId; ToDate closingDatePriorYear; ToDate closingDateThisYear;}

So there you have it. If you want to rearrange things on the dialog, you can use the above method.






Источник: http://www.ksaelen.be/wordpress/2011...display-order/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
How to overwrite a display value of the edit field ideveloper DAX in English 1 26.07.2011 07:54
dynamicsaxtraining: Quality management Blog bot DAX Blogs 0 12.02.2011 00:11
DynamicsAxSCM: The InventTrans table. Explore various field usages. Blog bot DAX Blogs 0 09.11.2010 19:10
CRM DE LA CREME! Some more useful javascripts for MS CRM Blog bot Dynamics CRM: Blogs 0 04.05.2010 11:05
dynamicsaxtraining: Create purchase order Blog bot DAX Blogs 0 14.12.2009 14:05

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 23:05.