Notifications
Announcements
No record found.
Hi,
Am newbie to AX, Please suggest me some X++ code to generate dialog box as shown below.
Thanks in Advance.
*This post is locked for comments
for a simple dialog box you can see examples here
msdn.microsoft.com/.../aa877843.aspx
theaxapta.blogspot.com/.../simple-dialog-box-in-axapta-2012.html
you may use Notes (extended data type)
dialogs can also be created via class.
it depends what you are going to you and how you are going to do that.
Thanks Sohaib, i have used Notes Extended Data type then i got something like this, But i need to change the Label text from note to comment and comment label should be placed on the top of the comment box.
Please help on this.
static void testDialog(Args _args)
{
dialog dialog;
dialogField dialogField;
;
dialog = new Dialog("Any heading here whatever i want");
dialogField = dialog.addField(extendedTypeStr(Notes),"My Custom Label");
if (dialog.run())
info(strFmt("%1",dialogField.value()));
}
Hi Shyamraoo,
Hope this solution works for you.
static void theAxapta_DialogBox(Args _args)
dialog = new Dialog("Comment:");
dialogField = dialog.addField(extendedTypeStr(Comments_JP));
dialogField.showLabel(false);
dialogField.displayHeight(8);
//your code to be executed if you click ok
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.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2