15

We are able to create Views for Pages and the user can select this Views. But sometimes it would be very usefull to be able to set the View from code.


For example if you have a List page and want to open this page from diffrent features. If the page is opend from feature 1 only fields which are relevant for this feature should be shown, but if the page is opend from a action in feature 2 the fields relevant for feature 2 should be shown.


Maybe this could be solved by adding a "SetPageView(ViewName: Text)" method to pages.

This could be used like this:

MyPage.SetPageView('MyView');

MyPage.Run();


It would also be very handy to add a property to fields to define the LookupPageView that should be used if the page is opend via lookup from this field.


Category: Development
STATUS DETAILS
Needs Votes
Ideas Administrator

Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team