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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Business Central forum

Lookup for report layout selection page

(0) ShareShare
ReportReport
Posted on by

Hello,

I am trying to add a lookup field for report layout selection page. I was asked not to show the lookup as a modal.

To do this, I have used the TableRelation and LookupPageId properties:

TableRelation = "Report Layout Selection"."Report ID";
LookupPageId = "Report Layout Selection";

Which results to this:

reportlookup.png

However, when I select a record from the lookup, I am getting this error:
lookuperror.PNG

Apparently, the report layout selection table is empty. Can anyone suggest an alternative to this? Thanks.

Categories:
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    This table content seems a bit strange. Report ID 1,2,3... with company blank? Can you debug?

  • Verified answer
    Community Member Profile Picture
    on at

    I have solved the issue. I just changed the table relation property to:

    TableRelation = "Report Metadata".ID;

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