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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 722
André Arnaud de Cal... 605 Super User 2026 Season 1
Subra 547