In forms you may disable go to main table functionality by overriding
datasource field jumpRef() method and commenting super();
public void jumpRef()
{
// super();
}
for example we can do this if you want to send parameters to the form you are calling when clicking on :
go to the main table
public void jumpRef()
{
Args args;
FormRun formRun;
FormBParams formBParams = new FormBParams();
;
args = new args();
// If we want pass just simple string we can use 'parm' method of 'Args' class
args.parm(ctrlInventTable_ItemId.text() );
args.parmObject( formBParams );
args.name( formstr( Thy_InventItemPageLine ) );
formRun = classFactory.formRunClass( Args );
formRun.init();
formrun.run();
formrun.wait();
// super();
}
In the overrided init method of the form you're going to call :
you can call your parameter
public void init()
{
InventTable inventTableRecord;
;
super();
if( element.args().parm())
{
Thy_InventItemPrint_ItemId.text(element.args().parm());
}
}
Aucun commentaire:
Enregistrer un commentaire