Step 1) Button Control Data Source Value
public void init()
{
custTable _Custtable;
;
super();
if(element.args())
{
if(element.args().record() && element.args().record().tableID == tablenum( custtable))
{
_Custtable = element.args().record();
}
}
}
Step 2) overiding source form's button control clicked method
In Form1
void clicked()
{
Args args;
Formview Formview;
;
args = new args();
args.parm( "yourStringValue" );
_args.name( formstr( FormB ) );
Formview= classFactory.formviweClass( Args );
Formview.init();
Formview.run();
Formview.wait();
super();
}
In Form2
public void init()
{
str YourStringValueFromCaller;
;
super();
if( element.args() )
{
// get string parameter
YourStringValueFromCaller = element.args().parm();
}
}
ReplyDeleteYou can subscribe for video clips update on Online trainng related to topics Micorsoft Axapta ERP, Microsoft Power BI ,SQL Administration and Online Training clips etc
https://www.youtube.com/user/sksingh1980