![]() |
#1 |
Участник
|
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 | 0 | |||
axaptapedia: RunBaseBatch | 0 | |||
axaptapedia: Macro | 1 | |||
axaptapedia: Adding only one Dimension in Dialog | 1 | |||
Kashperuk Ivan: 3 Dialog extensions | 4 |
|