Announcements
No record found.
Hi Miquel 👋
Thanks for your question!
In Business Central OnPremise (version 16), it's not currently possible to programmatically simulate a user selecting a saved view (like "Opened (Rospa)") via AL code in the OnOpenPage trigger. The SetRange and SetFilter methods can replicate the filter logic, but they won’t change the view name shown in the UI—this remains "All" unless the user manually selects a different view.
OnOpenPage
SetRange
SetFilter
âś… What you can do:
SetView
⚠️ Limitations:
💡 Alternative approach: If this is a frequent need, consider creating a custom action or page extension that applies the desired filters and labels the view accordingly.
Hope this helps! âś… Please mark this reply as helpful if it answered your question. Best regards! 👋
this post was generated with Copilot
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 1,949 Super User 2026 Season 1
YUN ZHU 1,064 Super User 2026 Season 1
Khushbu Rajvi. 559 Super User 2026 Season 1