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!