Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Facing problem to create a list page help of two different table.

Posted on by 387

Dear Experts,

i am facing problem to create a list page.

I have two different table. first table is 'Requisition Line' table no. 246 and other table is a customized table no. is 50048. All deleted records from table 246 is present in customized table.

My concern is, I want to display both table data in a new list page.

How can I do that. Please help me to resolve it.

  • Suggested answer
    Gearoid Profile Picture
    Gearoid on at
    RE: Facing problem to create a list page help of two different table.

    Hi,

    Sounds like it needs some investigation. Hopefully the following hints can help: 

    Try running the relevant table directly in the NAV Development environment to see if you get any more helpful information. 
    Try selecting directly from the View in SQL Server Management Studio.
    See what happens if you run the following TSQL command in SQL Server Management Studio: SELECT * from UAT2021.dbo.[MKU Private Limited$___Indent_Vs_Archieve_Indent]

    If the cause of the problem is still not clear after trying the above you could run a SQL Profiler trace to capture more details about the SQL error. 

    If the problem persists I would recommend opening a support ticket with Microsoft via your Solution Provider or Dynamics NAV Partner. 

  • navision begginers Profile Picture
    navision begginers 387 on at
    RE: Facing problem to create a list page help of two different table.

    thank you so much for your fast reply. I have done the same which you have saying.

    but when I am running the new page always getting the below error:

    Microsoft Dynamics NAV

    ---------------------------

    The following SQL error was unexpected:

    Invalid object name 'UAT2021.dbo.MKU Private Limited$___Indent_Vs_Archieve_Indent'.

    Statement(s) could not be prepared.

    ---------------------------

    OK

    ---------------------------

  • Suggested answer
    Gearoid Profile Picture
    Gearoid on at
    RE: Facing problem to create a list page help of two different table.

    Hi,

    One possibility would be to create a SQL Server View in the NAV database which combines the information from table 246 and table 50048 using a TSQL UNION statement. After that you could create a new NAV table in the NAV development environment with LinkedObject property = Yes and named to match the SQL view. You could then create your List page using the new NAV table which is linked to the SQL view.

    If you use this approach the NAV table name must match the SQL view name exactly. The SQL view column names must also match the relevant NAV table's field names. The SQL view name should also include the relevant NAV Company name.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans