Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

Page field editable/visibile property in a extension

$
0
0
First I know how to set the editable/visibile property of a field on a page that is NOT what I am asking.

Am I missing something basic about extensions?

It is a common request from our users that based upon some business logic one or more fields on a page need to have their editable/visible property set (true/false). How can I do this as part of an EXTENSION?

In order to set the editable/visible property you must use code to to set a Boolean variable. First rule of extensions is "DO NOT make C/AL code modifications". So if you can't modified the code of the page object, where do you put the business logic that determines the editable/visible status?

Okay, so sounds like a job for an event. BUT the OnOpenPage event passes only the "Rec" variable of the page not the page object or it's global variables. So now what? You have an event but nothing to relate back to the sender of the event.

So I can't do this simple customization as an Extension?

Viewing all articles
Browse latest Browse all 10032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>