class DT_SalesTableForm_CreateRetailCustomer_DK extends RunBase { DialogField name,email,phone; DirPartyName partyName; Email custEmail; Phone custPhone; public container pack() { return conNull(); } public boolean unpack(container _packedClass) { return true; } Object Dialog() { Dialog dialog; dialog = super(); // Set a title fordialog dialog.caption('Create Customer'); // Add a new field to Dialog name = dialog.addField(extendedtypestr(DirPartyName),"Customer Name"); email = dialog.addField(extendedtypestr(Email),"Customer Email"); phone = dialog.addField(extendedtypestr(Phone),"Customer Phone"); return dialog; } public boolean getFromDialog() { //Retrieve values from Dialog partyName = name.value(); custEmail = email.value(); custPhone = phone.value(); return super(); } public void run() { Dialog dialog; //Set Dialog field value to find CustTable if (dialog.closedOk()) { //createRetailCustomer.getcustomer(); } } public static void main(Args _args) { DT_SalesTableForm_CreateRetailCustomer_DK createRetailCustomer = new DT_SalesTableForm_CreateRetailCustomer_DK(); if(createRetailCustomer.prompt()) { createRetailCustomer.run(); } } }
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 Pallavi Phade as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 701 Super User 2025 Season 2
Martin Dráb 588 Most Valuable Professional
Sumit Singh 544