Hi Gunjan,
I mean there is a button on the form that calls a class as shown below
static void main(Args _args)
{
AAClass class;
;
if (!_args || (_args && !_args.record()))
{
// logic
}
class = AAClass::construct();
class.getLast();
class.initFromArgs(_args);
if (class.prompt())
{
class.run();
class.refreshDataSource();
}
}
so what i need to do is that i need to call the logic of this button in another class. so here's what i did:
public void AAMethod(AATable2 _table2)
{
AATable1 table1;
while select table1 where table1.Id == _table2.Id
{
if( !table1.Id1)
{
Args args = new Args();
args.record(table1);
AAClass class = AAClass::construct();
class.getLast();
class.initFromArgs(args);
if (class.prompt())
{
class.run();
}
}
}
}
so my question is:
1. if I override canRunInNewSession to false, would that affect the actual button logic?
2. what does canRunInNewSession do?
3. what does if prompt() in the code mean?