jeudi 11 novembre 2010

How and when to use Macros in Dynamics AX

When your have values that can be changed, you don't have to get back to your code in classes, reports, forms .... Just make the change in your Macro and call it in your form, report, class ... whereever you need to use the value.
For example, when using the 'PayrollPayTypeNum' in your code, this may change, set all the values you use in the Macro:

























Declare this Macro in your class for example and call value you need to use:

  
tmpPayrollPaySlipTable.HeureSup175 = this.Amount (emplid, jobnum, #payrollpaytypenum24);

Aucun commentaire:

Enregistrer un commentaire