web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

How to get the dialogue when clicked on menu item button in D365?

(0) ShareShare
ReportReport
Posted on by 25

Hello,

 Wanted to update the field in form i.e Enum value 

Scenario : select item number and click the menuitem button(Modify RFS enabled) need to display the dialogue box as shown in screen . 

6116.pastedimage1601919263782v3.png

Then after RFA enabled field set to YES and then click ok button need to update RFAenabled field value YES for selected item. as shown in screen

8463.pastedimage1601919761250v4.png

can any one suggest?

I have the same question (0)
  • Suggested answer
    vinitgoyal2005 Profile Picture
    6,332 on at

    Hi,

    You can create a simple runBase class or a dialog:

    Check daxingwitheshant.blogspot.com/.../how-to-create-dialog-form-by-extending.html

    and community.dynamics.com/.../how-to-create-a-simple-dialog-form-through-code

    but before you do that, Why do you need the dialog? Users can simply edit the RFA enabled column in the grid itself id you add the table column in the grid. Let me know if I am missing something.

  • Aswini_A Profile Picture
    25 on at

    User had security role, don't have permisson to edit  on the form.

  • vinitgoyal2005 Profile Picture
    6,332 on at

    ahh ok, then create a dialog or run base class (Preferable) and update the data in code.

  • Aswini_A Profile Picture
    25 on at

    protected Object Dialog()

       {

           Dialog dialog;

           ;

           dialog = super();

           dialog.caption( 'Modify RFA Enabled');

           fieldAccount = dialog.addField(enumstr(NoYesId),'RFAEnabled');

           return dialog;

       }

    Method 'RfaEnabledDialogue.Dialog' cannot have a more restrictive visibility than the method

    'Runbase.dialog' which it overrides.

  • Suggested answer
    vinitgoyal2005 Profile Picture
    6,332 on at

    Make it public method.

  • Aswini_A Profile Picture
    25 on at

    Thank you. Can you suggest how to implement in Run method to update the field value in table based on dialog value.

  • Sangram Shinde Profile Picture
    2,114 on at

    If you are using Runbase class for your dialog then the link shared by Vinit already elaborates how to get dialog values and implement in run() method. getFromDialog() retrieve dialog field values which you can use to update your table.

    Thanks.

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    moved to the d365 forum

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 298 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 179 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 121 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans