Skip to main content

Notifications

Announcements

No record found.

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

Query in Dev Env

Posted on by 184

Good afternoon colleagues

I have 2 questions:

I have made Query in the Dev Environment which i use to output to excel

It has the following columns among others:

Purchase Order Document Number ( from table 38 PO Header)

Purchaser Code (also from table 38)

Expected Arrival Date ( also table 38)

Now I would like to add a column in which the item numbers (from table 39) for that PO will be concatenated

Each PO has only one or two items

Purchaser_Code Document_No Item No
LH IP-211274 10903, 20298

First question: Can anyone advise how to do this textjoin?

Second question: How do i order the report by the Expected Receipt Date?

Thank you in advance,

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,647 Super User 2024 Season 2 on at
    RE: Query in Dev Env

    Hi, unfortunately, as far as I know, it is not possible to do what you have in your screenshot using Query.

    But using page should work, but it requires more development. You can create a temporary table and insert data when the page is opened.

    Hope this can give you some hints.

    Thanks.

    ZHU

  • Lovisa LH Profile Picture
    Lovisa LH 184 on at
    RE: Query in Dev Env

    Dear Zhu

    Thank you for the reply. I succeeded in sorting the dataset.

    I have also joined the two tables. 

    I read the articles you recommended about joining, but this is not what I am looking for, and i am not sure of the correct terminology in NAV

    I have output the data from the Purchase Order Header, ie the purchase order numbers, and now I would like to concatenate the item numbers on Purchase Lines on that Purchase Order as a column in the row. 

    Is this possible in NAV?

    Textjoin.jpg

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,647 Super User 2024 Season 2 on at

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans