Notifications
Announcements
No record found.
[FormControlEventHandler(formControlStr(SalesCreateQuotation, OK), FormControlEventType::Clicked)] public static void OK_OnClicked(FormControl sender, FormControlEventArgs e) { boolean ret = true; Args args = new Args(); FormCommandButtonControl callerButton = sender as FormCommandButtonControl; FormControlEventArgs formControlEventArgs = e as FormControlEventArgs; DialogButton diagBut; str amountvalue = int2str(25);//pass the total amount value //Retrieves the button that we're reacting to FormRun form = callerButton.formRun(); //Gets the running SalesEditLines form //Get the salesId that was selected in the SalesEditLines form FormDataSource salesQuotationTable_ds = form.dataSource(formDataSourceStr(SalesCreateQuotation, SalesQuotationTable )) as FormDataSource; SalesQuotationTable salesQuotationTable = salesQuotationTable_ds.cursor(); str strMessage = strfmt("Please confirm Customer Reference '%1' is correct.", salesQuotationTable.CustomerRef); str strTitle = "Customer Reference Confirmation."; diagBut = Box::yesNo(strMessage, dialogButton::No, strTitle); if (diagBut == DialogButton::No) { ret = checkFailed("Provide the correct Customer Reference to proceed."); //here is where i need the code to prevent the SalesCreateQuotation from closing } else if(diagBut == DialogButton::Yes) { ret = true; } else { ret = checkFailed("Operation canceled."); } }
//Gets the running SalesEditLines form
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Abhilash Warrier 677 Super User 2025 Season 2
André Arnaud de Cal... 442 Super User 2025 Season 2
Martin Dráb 339 Most Valuable Professional