/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
[FormControlEventHandler(formControlStr(SalesCreateOrder, DTCreateCustomer), FormControlEventType::Clicked)]
public static void DTCreateCustomer_OnClicked(FormControl sender, FormControlEventArgs e)
{
Args args = new Args();
Form formToCall = new Form('DTCreateCustomerForm');
FormButtonControl callerButton = sender as FormButtonControl; //Retrieves the button that we're reacting to
FormRun form = callerButton.formRun(); //Gets the running SalesCreateOrder form
//Get the SalesCreateOrder that was selected in the SalesCreateOrder form
FormDataSource SalesTable_ds = form.dataSource(formDataSourceStr(SalesCreateOrder, SalesTable)) as FormDataSource;
SalesTable salesTable = SalesTable_ds.cursor();
//Set up args with all of the information you've retrieved
args.caller(form);
args.object(formToCall );
//args.record(hcmWorker);
form = ClassFactory.formRunClass(args);
form.init();
form.run();
form.wait();
}
André Arnaud de Cal... 291,431 Super User 2024 Season 2
Martin Dráb 230,503 Most Valuable Professional
nmaenpaa 101,156