AL icon indicating copy to clipboard operation
AL copied to clipboard

Modify "Enabled" property dinamically

Open aetxebarria opened this issue 6 years ago • 2 comments

Hi everyone, I need to set into purchase lines the enabled property to false in the "Qty. to receive" field, depending a a setup table that I have created. In that setup table I've made a function that returns if it is enabled or not. In the purchase line page, I've created a procedure to call to the function created into the setup table, also returning a boolean. But it's not allowed to call that function from the enabled property:

imagen

is there any way to do this? Or is planified to allow to set uf the visibilty with a function?

Thank you very much

aetxebarria avatar Feb 14 '20 12:02 aetxebarria

Hi,

I thing you need to fill a boolean variable in the OnOpenPage trigger. Then set Enabled property equals to that variable.

Also, I don't think is the right place to ask that kind of questions, you can post a message in one of the community forum like https://community.dynamics.com/business/f/dynamics-365-business-central-forum

Hope it helps !

judecot avatar Feb 14 '20 13:02 judecot

Thank you, realy appreciated!

aetxebarria avatar Feb 17 '20 16:02 aetxebarria