How to Pass value from a Form to Dialog Box in AX 2012

Hi to everyone,

In a form I want to pass a Value of a field to a Dialog which is in the form. So whenever i click the dialog box, the value from form should be displayed in the dialog… How to do that??? Pleae hlp me guys…

Thanks in advance…

Regards,

Alonso

Can you please tell, how the dialog is being called/created from the form?

HI Kranthi,

Thanks for the reply…

Actually the form is AP → Payment Journal form.

In this form we have “payment mode”, wen we generate payment, a dialog box appears. the “payment mode” im selecting in the lines should be passed to the “generate payment” dialog.

Any idea how to do that…

Thanks in advance…

Regards,

Alonso

HI Kranthi,

Thanks for the reply…

Actually the form is AP → Payment Journal form.

In this form we have “payment mode”, wen we generate payment, a dialog box appears. the “payment mode” im selecting in the lines should be passed to the “generate payment” dialog.

Any idea how to do that…?

Thanks in advance…

Regards,

Alonso

Usign args().record() you would get the selected line(record) of ledgerjournaltrans table and then at dialog initialization you can pass this as dialogfield.value(recordbuffer.field);

Hi Vishal,

Thnks for the reply…!!!

we hav to select the record in main method of dialog class??or…any other method

thanks in advance

regards,

Alonso

hi

It is possible to select record in main methods of Dialog Class, In Case if u use separate methods in that class code has clear and understandable or we can calll another scenario for same with another methods.