Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

Can we run simple dialog form in Enterprise Portal through x++ code

Posted on by 116

Hi,

Greetings, I want to run a simple dialog form in the enterprise portal through x++ code. Actually I have a customized menu item to approve timesheets. The requirement is that when I will select any timesheet and click the button/approve button then the dialog form should be open first to insert a comment for that timesheet. but I am unable to do it. I have written the code in class but it is not working. my code is below... Please guide me on how can I do it.

Dialog dialog;
DialogField field;

dialog = new Dialog();

dialog.addText("Enter ther approval comment");
field = dialog.addField(extendedTypeStr(Field));

dialog.run();

Many thanks,

Muhammad Irfan Ayoub.

  • RE: Can we run simple dialog form in Enterprise Portal through x++ code

    Hello Muhammad Irfan Ayoub,

    Could you let us know the exact AX 2012 version you are running ?

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.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans