Notifications
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 2,092
YUN ZHU 663 Super User 2025 Season 2
Sumit Singh 515