How to pass values between Axapta forms
void clicked()
{
Args myArgs;
FormRun myFormRun;
;
// Keep this call to super() when
overriding the clicked method.
super();
myArgs = new Args();
// Provide the name of the form to
launch.
myArgs.name("WebformBarcodeBatchPrint");
// The DataSource_WorkOrder_M data source
variable name
// represents the currently selected item
in the grid
// on the parent form (and thus in the
data source).
myArgs.record(InventBatch);
myFormRun =
ClassFactory.formRunClass(myArgs);
//
if(DataSource_WorkOrder_M.WOStatus_fn()!=WOStatus::Closed) {
myFormRun.init();
myFormRun.run();
myFormRun.wait();
}
No comments:
Post a Comment