Hi, Readers.
Dynamics 365 Business Central 2024 wave 2 (BC25) is generally available. More details: General availability: Dynamics 365 Business Central 2024 release wave 2 (BC25).
I will continue to test and share some new features that I hope will be helpful.
In this post, I would like to talk about Defining a positive list of elements in page customizations in Business Central 2024 release wave 2 (BC25). This is not yet documented in the Business Central 2024 release wave 2 (BC25) release plan. But it is mentioned in AL Language extension changelog Version 14.0
Profiles and page customizations can be used to tailor the interface for users of a specific role. Since page customizations can hide elements such as controls, actions, or views, they are suited for defining a negative list of elements. However, any visible element that is not referenced by the page customization would be shown on the page, including elements defined in other extensions.
It is now also possible to create a positive list of elements to be shown on the page using the properties ClearActions, ClearLayout, and ClearViews.
The page customization object in Business Central allows you to add changes to the layout and actions on page that are accessible for a profile. More details: Page customization object
A single page customization can be used with multiple profiles within the same extension. Page customizations only apply to the RoleCenters they are specified for. In order to view or changes the RoleCenters in the client, go to My Settings, and then choose Role Center.
With this wave (BC25), Microsoft added three new properties for page customization, ClearActions, ClearLayout, and ClearViews. Let’s take Customer List (22, List) as an example.
ClearActions: Clears all actions from the page’s action bar.
Before hiding:
After hiding:
PS: Note that you can also control the availability of the Create
, Edit
, and Delete
system actions using the properties InsertAllowed, ModifyAllowed, and DeleteAllowed.
More details: Business Central 2024 wave 2 (BC25): Support for modifying the properties InsertAllowed, ModifyAllowed, and DeleteAllowed of a page
ClearLayout: Clears all controls from the page’s layout.
Before hiding:
After hiding: Completely blank
So please show at least some fields.
ClearViews: Clears all views from the page’s view pane.
I tested it briefly and it didn’t work. I’m not sure if it’s a problem with my environment🤔.
PS: The Property ‘ClearViews’ can only be used on the list page.
The Property ‘ClearViews’ can only be used if the property ‘PageType’ is set to ‘List’ AL AL0223
Very interesting. Give it a try!!!😁
PS:
1. These three properties cannot be used in profileextension object. More details: Business Central 2024 wave 2 (BC25): Extend and customize profiles from other extensions (New object type: profileextension)
The page customization ‘MyCustomerCardCust’ cannot be referenced from the profile extension ‘BUSINESSMANAGERExt’ because it uses the property ‘ClearActions’. AL AL0849
The page customization ‘MyCustomerCardCust’ cannot be referenced from the profile extension ‘BUSINESSMANAGERExt’ because it uses the property ‘ClearLayout’. AL AL0849
The page customization ‘MyCustomerCardCust’ cannot be referenced from the profile extension ‘BUSINESSMANAGERExt’ because it uses the property ‘ClearViews’. AL AL0849
2. These three properties cannot be used in pageextension object.
The property ‘ClearActions’ cannot be used in this context AL AL0124
The property ‘ClearLayout’ cannot be used in this context AL AL0124
The property ‘ClearViews’ cannot be used in this context AL AL0124
4. The following error is displayed in Business Central 2024 release wave 2 (BC25) public preview. Please test it in the official version.
This feature is under development and is exclusively accessible to Microsoft.
END
Hope this will help.
Thanks for reading.
ZHU
コメント