Why Asset form fields are read only?

mitzaka
Mega Guru

Hey SNC,

A not so bright question, but shameful or not here it goes - I have recently imported bunch of assets to our assets module. The strange thing is that when I open an asset form, most of the fields are read-only, even for me as an administrator. I checked the UI policies first, nothing there. Checked the Client Scripts - nothing there also. Checked the fields dictionary entries - not readonly..... ??? What could be making them read-only? Weird....

One thing I notice is - if I try to create a NEW asset, I can edit the fields. But not for the ones which are imported and in state IN USE. Could there be some logic which sets the readonly based on the state of the asset? But even if, where would that be?

Screen Shot 2017-03-15 at 2.35.06 PM.png

1 ACCEPTED SOLUTION

sergiu_panaite
ServiceNow Employee
ServiceNow Employee

Enable 'Enable All' debug mode, load the form and see the output under. You will probably see what is causing the issue.


Disable the debug mode once test is done.


View solution in original post

3 REPLIES 3

Alikutty A
Tera Sage

Hi Dimitar,



Have you checked the existing read, write ACL's on the related asset table?



Thanks


Please Hit like, Helpful or Correct depending on the impact of the response


sergiu_panaite
ServiceNow Employee
ServiceNow Employee

Enable 'Enable All' debug mode, load the form and see the output under. You will probably see what is causing the issue.


Disable the debug mode once test is done.


Thanks, when I did that, I actually saw a bunch of ALCs which prevent the WRITE operation unless only at the asset creation time (which still does not make sense to me from usage perspective... maybe they are envisioning some utopia where everything along the asset lifecycle is automated, who knows:)?!)



Anyway, I will end up deactivating these ACLs.


Thanks for the tip!