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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 14.11.2010, 03:30   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
axaptapedia: Dialog macro
Источник: http://www.axaptapedia.com/Dialog_macro
==============

Summary:

<div>== Abstracts ==
I often need a quick dialog to check or moify some data.

Sometimes the customer doesn't know exactly what select critera he or she needs, so the dialog needs a lot of criteria fields (from .. to).

What I have to do is creating a dialog object with up to 10 dialog fields - or more.
This is very hard, because I have to repeat the ist of variables several times:
1. declare dialog fields
2. declare working fields
3. create dialog fields objects, and add them to the dialog
4. restore last saved values
5. set values to the dialog fields
6. after prompting and running the dialog: save values
7. move dialog fields to the working fields.

Especially if you need more variables, you can easily make some mistakes.

So I decided to create a macro (using [[Abstract macro]])
to do the hard work.

== Example ==
I have to check some invoices -
depending on customer groups, customer or invoice accounts, invoice date and invoice id.


static void CheckInvoices(Args _args)
{
CustInvoiceTable custInvoiceTable;

#define.DialogMacroId("CheckInvoice") // = fromCustGroupId) && // long version
(! toCustGroupId || custInvoiceTable.CustGroup
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
axaptapedia: RunBaseBatch Blog bot DAX Blogs 0 04.04.2009 22:05
axaptapedia: RunBaseBatch Blog bot DAX Blogs 0 31.03.2009 06:06
axaptapedia: Macro Blog bot DAX Blogs 1 16.11.2007 09:48
axaptapedia: Adding only one Dimension in Dialog Blog bot DAX Blogs 1 25.10.2007 17:54
Kashperuk Ivan: 3 Dialog extensions Blog bot DAX Blogs 4 28.09.2007 18:56
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

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

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

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