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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Adding a new button to a dialog that opens another form

(0) ShareShare
ReportReport
Posted on by 1,965

Hi,

I created a service, contract and controller classes using sysOperationFramework.

I want to add a new button on the dialog that appears. 

This button should open maybe a form and view records in a grid based on a certain query. And when the button is clicked. I should be able to select records in grids and i should be able to click another button after selecting them where it updates a certain flag for records selected.

How can i do that?

Also if i create another button on the dialog for selecting records only without updating anything. How can i reflect those recrods selected in the query range of the dialog? 

I have the same question (0)
  • WillWU Profile Picture
    22,361 on at

    Hi IntegrationBeginner,

    You could add a query to the dialog instead of form.

    Please check:www.artofcreation.be/.../

    The code still work in D365FO.

  • .. Profile Picture
    1,965 on at

    Hi will wuu,

    I need a button on the dialog that opens a form where i can select records from grid and after selecting them, there should be a button to that does an update.

    I don't want a a query.

  • Suggested answer
    Anton Venter Profile Picture
    20,345 Super User 2025 Season 2 on at

    What you should do, is change the design a bit. First start with getting the 'selection' from the user. Use could a temporary table or just a table datasource and form to allow the user to make selection of records in the form.

    If the user has made a selection and clicks on OK, use your code to process the selected records.

  • .. Profile Picture
    1,965 on at

    Hi Anton,

    Can u explain more..

    All i want to know is how to add the button on the dialog to open a form that has a grid where i can select mutiple records and there is a button on this form that updates a certain field for all those records.

    This button has nothing to do with the button on the dialog. If i click ok on the dialog it will do a certain logic.

    But i'm intrested in adding a button in the dialog tgat ooens a form that has another button and grid

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans