Options

Passing parameters from SalesTable Form

ibtissemBenAichaibtissemBenAicha Member Posts: 7
edited 2011-05-31 in Dynamics AX
Hi

I want to pass parameter from Salestable Form to the initJournal method of SalesFormLetter_Confirm.
I could pass parameter from Salestable Form to the main of SalesFormletter using this:

in the clicked method of a menuitemButton that call the class : SalesFormLetter in the form I wrote this :

void clicked()
{

boolean ProformaOk;
Args args = new Args();
;
element.args().parm('OK');
super();
}
and in the main of SalesFormLetter Class I wrote this and I got the rignt value.

formrun fr;

;

if (! args)
throw error("@SYS25407");

fr = args.caller();

if( fr.args().parm() == 'OK')
{
Proforma = Noyes::Yes;
}

SalesFormLetter_Confirm. extends from SalesFormLetter , it has no main method , there is no args in the initJournal method. I wonder how to do to pass the parameter either directely to the salesFormLetter_Confirm or by passing through the parent class : SalesFormLetter.

Thanks very much for helping!
Sign In or Register to comment.