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 :
Business Central forum

Get selected rows when a list page opens with all records

(0) ShareShare
ReportReport
Posted on by

I am new in Business Central. I have a contact list form opens on a page OnDrillDown, a user selects multiple contacts from the list and the selected contact email addresses are populated in DrillDown field in the text form. Now when the user again opens that contact list page, I want those previously selected rows selected on the page. 

I am passing that selected list of contacts to the list page OnAfterGetRecord() trigger, applied for loop and compared current record number with the selected list of contacts and then filtred and marked But only first one record is shown on the page and not selected.

Can somebody help me with this??

Categories:
I have the same question (0)
  • Hannes Holst Profile Picture
    5,767 on at

    Hello,

    An integration like you are describing is not supported by BC.
    You are describing a 1:N relation which does make other approaches necessary.

  • Community Member Profile Picture
    on at

    Thanks, Hannes for your quick reply.  

    You mean that something like I want, cannot be implemented in BC?

  • Hannes Holst Profile Picture
    5,767 on at

    Hello,

    Yes - BC is designed based on the relational database concept.
    For your requirement, normally you would have to create a new Table that links the primary contact with the other contacts.

    Like this:

    Primary Contact No. Related Contact No.
    CT001245 CT009965
    CT001245 CT008844
    CT003455 CT009133

    Or, as an alternative, you could store the "Primary Contact No." directly in the records of the related contacts (using a new field).

  • Community Member Profile Picture
    on at

    Thanks but I was trying to do it without creating a new table because I don't need to save those selections anywhere. I just want to map that selection on the list page.

  • Community Member Profile Picture
    on at

    Can someone else help me with this? ASAP

    Is there any other solution except Hannes Holst provided. This is a solution but I don't want to implement this way

  • Suggested answer
    Steven Renders Profile Picture
    5,672 Moderator on at

    Maybe currpage.SETSELECTIONFILTER can help?

    docs.microsoft.com/.../setselectionfilter-function

  • Romryan Profile Picture
    on at

    Did you get the solution on this?

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans