Some Assets Are Showing Fields Read Only When They Shouldn't

johnfeist
Mega Sage
Mega Sage

I have a group of computers in alm_hardware that are In Stock | New where the State, Substate and Stockroom are presented as read only.  For all others that are In Stock | New, those fields are showing up as updateable which is the appropriate behavior.  I've gone through all the ui_policies and client scripts for alm_asset and alm_hardware and cannot find anywhere that these are being set to read only.  The only clue that I've gotten is from Watch which has a message "Unable to set security read-only field's read-only state to false".

 

Does anybody have any idea what is going on?

Hope that helps.

:{)

Helpful and Correct tags are appreciated and help others to find information faster
1 ACCEPTED SOLUTION

johnfeist
Mega Sage
Mega Sage

We recently started a Buy and Hold arrangement with our hardware vendor.  All the machines in question were in their stockroom in our instance.  When they were being shipped and showed as state of In Transit, the Active Transfer Order field (active_to) was set t true.  It turns out that there are write ACLs on the fields that were set to read only that require that field to be false.  A quick fix script later and everything is working.

Hope that helps.

:{)

Helpful and Correct tags are appreciated and help others to find information faster

View solution in original post

3 REPLIES 3

Amit Gujarathi
Giga Sage
Giga Sage

Hi @johnfeist ,
I trust you are doing great.

Based on this information, it appears that there might be some issue with the Watch module's configuration or security settings. I would recommend looking into the Watch module's settings and configurations to ensure that it is not causing the unexpected behavior with the read-only fields. Additionally, you can review any other modules or plugins that might be affecting the behavior of these fields.

If you have access to the codebase, you can also examine any customizations or modifications made to the "alm_hardware" table or related scripts to see if there are any explicit instructions to set these fields as read-only.

It's also worth mentioning that reaching out to the ServiceNow community or support forums can be helpful in such situations, as other users may have encountered similar issues and can provide additional insights or solutions.


Was this answer helpful?


Please consider marking it correct or helpful.


Your feedback helps us improve!


Thank you!


Regards,


Amit Gujrathi



johnfeist
Mega Sage
Mega Sage

We recently started a Buy and Hold arrangement with our hardware vendor.  All the machines in question were in their stockroom in our instance.  When they were being shipped and showed as state of In Transit, the Active Transfer Order field (active_to) was set t true.  It turns out that there are write ACLs on the fields that were set to read only that require that field to be false.  A quick fix script later and everything is working.

Hope that helps.

:{)

Helpful and Correct tags are appreciated and help others to find information faster

AyanshN
Tera Contributor

Hi Thanks for sharing your insight. I need your help to understand the behaviour of parent field  in asset table ,why we are keeping this as read-only. Is there any solid reason behind this ? or we can check while adding the child asset .