purchased_rights field in alm_license table not setting readOnly.

akash_avasare
Tera Expert

Hello,

 

In the alm_license table, there is a field purchased_rights which is not set to ReadOnly.

I checked the dictionary, UI Policies, Data policies, client script, BR, and SI as well but field is still mandatory and editable.

it was working in onChange client script using the below code but not in the OnLoad script.

g_form.setMandatory('purchased_rights', false);
g_form.setReadOnly('purchased_rights', true);
 
Thanks.

 

 

2 REPLIES 2

Brad Bowman
Kilo Patron
Kilo Patron

It's recommended to change a field's mandatory, read only and/or visibility via a UI Policy.  Try inactivating the client script(s) and doing both with a UI Policy Action, with the onLoad box checked on the UI Policy.  Also ensure there are no other UI Policy Actions affecting the same field, or client scripts.  If you use a client script for whatever reason, it has to be done in the order shown - Mandatory false before ReadOnly true.

-O-
Kilo Patron
Kilo Patron

Perhaps it is made mandatory through the dictionary, or dictionary override (checkbox "Mandatory" is marked on the fields definition form)?