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 :
Small and medium business | Business Central, N...
Suggested Answer

Need a Page with a Subject and a List of Records

(0) ShareShare
ReportReport
Posted on by 102

Hi,

I need to pop-up a page while posting a sales order which would contain data of all the Items which are low on Inventory compared with the Sales Order Qty.

The Page should contain the following details -with a message on the top and list of Item details beneath it. 

Message - "There are not enough quantity for the following item/s, Would you like to proceed with posting the sales order? "

List of Records - 

Sales Line (37).No

Item No.

Sales Line (37).Description

Item Description

The “Item (27).Inventory” for the related item.

Available Quantity

Sales Line (37).Qty. to Ship

Quantity to Ship

The “Item (27).Inventory” for the related item. -  Sales Line (37).Qty. to Ship

Quantity Shortage

Sales Line (37).Location Code

Location

Which PageType would be a good option for this requirement?

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,708 Moderator on at

    Hi,

    You can try to show everything using on Message box.

  • Suggested answer
    NAV_with_Narang Profile Picture
    2,294 Moderator on at

    You may use a simple message box with a provision in your code to have your message spread out in multiple lines.

    I would suggest to use the Confirm box since you wish to ask a Question to the user. Only when the user presses "YES" the process of posting the document will proceed. Whereas in the message box, the operation will proceed irrespective of the user's consent

    You can also use a Confirmation dialog page, but that may be some lines of code which can be easily avoided. Also creating a new page will occupy an Object ID in your database. Best to proceed with the confirm box.

    I have pasted some useful links for you below, for easy navigation & reference

    Spreading a text value in multiple lines

    www.sauravdhyani.com/.../navision-how-to-display-multiple-lines.html

    Confirm BOX in NAV

    learn.microsoft.com/.../confirm-function--dialog-

    **Please Mark YES to this answer if you found it helpful**

  • Johnson_Patrick Profile Picture
    102 on at

    Thanks for your reply.

    I must have been more clear, when i said list of records the list should the information of the items on the sales order which are low on Inventory.

    For eg: If I have 5 Items on the Sales order out of which 3 items are low on inventory, the 3 Items details with the fields (mentioned on the main question) should be displayed along with the message.

    Will it be possible to accomodate all of these in the message box or a confirmation box? What if the list grows 50 or even 100 items on a sales order?  

  • Johnson_Patrick Profile Picture
    102 on at

    Thanks for your reply Nitin.

    I must have been more clear, when i said list of records the list should the information of the items on the sales order which are low on Inventory.

    For eg: If I have 5 Items on the Sales order out of which 3 items are low on inventory, the 3 Items details with the fields (mentioned on the main question) should be displayed along with the message.

    Will it be possible to accomodate all of these in the message box or a confirmation box? What if the list grows 50 or even 100 items on a sales order?  

  • Suggested answer
    Nitin Verma Profile Picture
    21,708 Moderator on at

    So In that case you can use a List page and OnBeforePosting the sales order just check your validation through all the times and put them in the Temporary table as the fields are required and bind that Temp table of that new List page.

    Thanks

  • Johnson_Patrick Profile Picture
    102 on at

    Yes that's exactly what I thought! Thanks Nitin.

  • Johnson_Patrick Profile Picture
    102 on at

    Hi Nitin,

    I tried the requirement with the ConfirmationDialog Page. It displays the message and the list of records. But the message is to big to be accomodated in a text box. Is there a way i can display the message completely?

  • Suggested answer
    Nitin Verma Profile Picture
    21,708 Moderator on at

    As per your requirement its not possible to show everything on Message box, so as suggested earlier go with the Temp page to show the records before posting, and put a message only for single line, like There are some items which has no inventory.

    Thanks.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,151

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,443 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans