Edit readonly fields of a base table in extended tables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2012 08:39 AM
Hi,
I have a different kind of requirement from what is discussed in these forums.
There is a read only field (called u_solution_id ) defined in cmdb_ci table. There are many more tables that are extended from this base table. But just for one of the extended table, we need this field to be editable. I have tried these options, but nothing seems to work.
1) Client script: Added g_form.setReadonly('u_solution_id',false); for the extended table.
2) UI Policies
3) Created a sys_dictionary and sys_documentation entries with exactly the same data as in the parent table, but set Read-only option to false.
Looks like a read-only field cannot be edited in the extended table. Can anyone let me know how to achieve this (to edit a read only field from base table).
Regards,
Prav

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2012 09:00 AM
I would look at access controls. It could be being set read only a number of ways, but it's probably through a security rule, so you can add an ACL to the extended table to allow access.
http://wiki.servicenow.com/index.php?title=Using_Access_Control_Rules
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2012 02:28 AM
Thanks Brad. I tried to configure Access Control Rules so that everyone is allowed to edit this field, but still no success.
I guess the issue is not with the security, as the field is greyed out (as with other read-only fields). So somehow this field is set with read only access before even being considered for security.
Thanks,
Prav

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2012 08:02 AM
The first step would be to find out what is making it read only before you can make it editable. The following can make a field read only:
Server Side
ACLs -> Right click on the field and select show security rules and you will see all acls that apply to that field.
Dictionary Entry -> Make sure read only is not checked on the dictionary entry
Data policies -> Look at the data policies applied to the cmdb, if any
Client Side
Client Scripts
UI Policies
One thing to do would be to try to edit it from the list view. If you can, then it's probably client side, but if you can't it's more likely to be server side.