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

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

Using page.runModal to open Service Lines (Page 5905), but getting blank results

(0) ShareShare
ReportReport
Posted on by 10
Hi all,
I'm trying to make some improvements to the Service Order screen to make it user friendly and usable by our repair department. 
I've created a factbox as below, which correctly shows the associated Service Lines to my Service Order, based on the below code for SubPageLink
SubPageLink = "Document Type" = const("Order"), "Document No." = field("No."), "Service Item Line No." = const(10000);
As you can see, the "Description" is a hyperlink using:
 page.runModal(page::"Service Lines", Rec);
 
The link works, but when I click it, the "Service Lines" window comes up not showing any lines. I can change that by switching the filter on the top to "All".
However, I would very much like for this to happen automatically, either by fixing the default filter, or by ensuring that the lines are included in the filtering.
 
When I open the "Service Lines" through the regular path on the line part of the Service Order, I get the lines correctly. I have validated that the Page Filters, which come from the standard functionality, are the same as the SubPageLink filters, which I defined above.
 
Any good ideas??
 
Thanks a lot
 
BR Peter
I have the same question (0)

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sumit Singh Profile Picture

Sumit Singh 3,048

#2
Sohail Ahmed Profile Picture

Sohail Ahmed 2,682 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 2,326 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans