- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2018 05:54 AM
I have one requirement i have 3 tables 1.CI Structure 2. CI Structure - Attribute 3.CI Structure - Class
2 and 3 table is the extends to the 1 table. Now requirement is i have a Name is a field that is in parent that field extends to 2 and 3 table now i want that field read only in 2 and 3 table not in table 1 what is the way
is it possible to dictionary overrides.what was the best way
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2018 06:22 AM
You shouldn't check 'Read only' on the dictionary entry itself. Instead, you need to go to the related lists at the bottom of that form and add a new 'Dictionary override' record for the extended table you want the field to be read only for. You should see the option on that form. If that doesn't work, please post a screenshot of where you're trying to set the field read only.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2018 05:56 AM
Dictionary override with the 'Read only' checkbox is probably the simplest option. You could also use an ACL on each extended table for that field.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2018 06:09 AM
Please mark my answer as correct if I've answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2018 05:12 AM
Hello Mark,
Can you please help me the below thing what is the script for this requirement
To fill all the read only fields for CI Structure – Class write a “before” business rule which runs on insert and update (to fill all the field best way is to use JavaScript in business rule)
Requirement 1:
- The business rule should only run if field “Table Name” changes
- The read only field should be filled with information from selected value in field “Table name” (you must select the referenced table entry to get the information)
- Field “Name” should be filled with the “label” from selected Table
- Field “OOTB” should be set to true if selected table is an out of the box table and to false if the selected table is not an out of the box table. (For this you can check if name value of table starts with “u_” or not)
- Field “Technical Name” should be filled with the “name” from selected Table
- Field “Parent Class” should be filled with the “super_class” from selected Table
- Field “Parent Class Technical” should be filled with the “super_class.name” (dotwalking) from selected Table
- Field “Create Date” should be filled with the “sys_created_on” from selected Table
Requirement 2:
- To fill all the read only fields for CI Structure – Attribute write a “before” business rule which runs on insert and update (to fill all the field best way is to use JavaScript in business rule)
- The business rule should only run if field “Field” changes
- The read only field should be filled with information from selected value in field “Field” (you must select the specific dictionary entry for field to get the information)
- Field “Name” should be filled with combination of Table Name.Field name (eg: u_cmdb_sap_system.description)
- Field “OOTB” should be set to true if selected field is an out of the box field and to false if the selected field is not an out of the box field (For this you can check if element value of dictionary starts with “u_” or not)
- Field “Technical Name” should be filled with the “element” from selected Dictionary
- Field “Type” should be filled with the “internal_type” from selected Dictionary
- Field “Length” should be filled with the “max_length” from selected Dictionary
- Field “Default” should be filled with the “default_value” from selected Dictionary
- Field “Inherit” should be filled with true if the field is inherited from super class and should set to false if the field is not inherited from superclass
- Field “Field Definition Class” should be filled with the label of class where the field is defined
- Field “Field Definition Class Technical” should be filled with the database name of class where the field is defined
- Field “Create Date” should be filled with the “sys_created_on” from selected Dictionary
- Field “Function Field” should be filled with the “function_field” from selected Dictionary
- Field “Read only” should be filled with the “read_only” from selected Dictionary
- Field “Mandatory” should be filled with the “manadatory” from selected Dictionary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2018 06:17 AM
when i check box is check the Read only the parent table Name also it will shows read only.can you please tell me the way i want read only in 2 and 3 table name field