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 100

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?

  • Suggested answer
    Nitin Verma Profile Picture
    21,546 Moderator on at
    RE: Need a Page with a Subject and a List of Records

    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.

  • Johnson_Patrick Profile Picture
    100 on at
    RE: Need a Page with a Subject and a List of Records

    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?

  • Johnson_Patrick Profile Picture
    100 on at
    RE: Need a Page with a Subject and a List of Records

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

  • Suggested answer
    Nitin Verma Profile Picture
    21,546 Moderator on at
    RE: Need a Page with a Subject and a List of Records

    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
    100 on at
    RE: Need a Page with a Subject and a List of Records

    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?  

  • Johnson_Patrick Profile Picture
    100 on at
    RE: Need a Page with a Subject and a List of Records

    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?  

  • Suggested answer
    NAV_with_Narang Profile Picture
    2,246 Moderator on at
    RE: Need a Page with a Subject and a List of Records

    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**

  • Suggested answer
    Nitin Verma Profile Picture
    21,546 Moderator on at
    RE: Need a Page with a Subject and a List of Records

    Hi,

    You can try to show everything using on Message box.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 732

#2
YUN ZHU Profile Picture

YUN ZHU 689 Super User 2025 Season 1

#3
Mansi Soni Profile Picture

Mansi Soni 529

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans