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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Multi-select records in form grid

(0) ShareShare
ReportReport
Posted on by

Hello all,

I have a customer who wants to be able to select either single or multiple records from the TvrExpTable form and then have only the receipts related to these displayed in the DocuView form. 

I have selected the item menu and button to allow multi select. This does not work. I have looked into coding the multi-select using the clicked() override method and the use of the multi select helper class. However, I just can't seem to get it to work. It is also complicated by the fact that the init method and query methods are rather complex in the DocuView form. 

Has anyone had any experience with adding this type of functionality to this form or would know how it could be done?

Any assistance would be appreciated.

Thanks,

Steve

*This post is locked for comments

I have the same question (0)
  • Verified answer
    nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: Multi-select records in form grid

    Normally such interaction between forms is based on 1-n relation. You want to have a n-n relation. You can achieve this, but it requires some coding. The standard, relation based data source filtering can't handle this.

    You must gather all the selected records with MultiSelectionHelper, pass them with the args to the another form, and in the other form add all those records (or the relation key field, actually) one by one as a range to the query of the data source.

  • Community Member Profile Picture
    on at
    RE: Multi-select records in form grid

    Thank you Nikolaos. You've given me a good direction to head in. I'll try this way and see the outcome.

    Steve

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Community Member Profile Picture

Community Member 2

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans