Here is a sample :
static void main(Args args)
{
formrun fr;
Object callerForm;
{
formrun fr;
Object callerForm;
;
if (! args)
throw error("@SYS25407");
if(record.TableId == tablenum(SalesTable))
{
fr = args.caller();
if( fr.args().parm() == '1')
{
Proforma = true;
}
else
{
Proforma = false;
}
args.parm(fr.args().parm());
globalCache.set(curuserid(), 1, Proforma);
}
else
{
callerForm = args.caller();
}
.
.
.
{
fr = args.caller();
if( fr.args().parm() == '1')
{
Proforma = true;
}
else
{
Proforma = false;
}
args.parm(fr.args().parm());
globalCache.set(curuserid(), 1, Proforma);
}
else
{
callerForm = args.caller();
}
.
.
.
void clicked()
{
boolean ProformaOk;
Args args = new Args();
;
element.args().parm('1');
super();
}