How to make an embedded list read only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2016 07:51 AM
Hello Experts,
I have a requirement to make an embedded list read only on a form. The list control of the embedded list does not have options to make it read only. And cannot use ACLs on the table b/c it is suppose to be just for viewing purpose.
I have a UI policy that show/hides the list, is it possible to modify this code to make it read only when it is visible at specified states?
function onCondition() {
var list = $$('div[tab_caption="Processes"]')[0];
if(list.hasClassName('embedded')){
list.hide();
}
}
function onCondition() {
var list = $$('div[tab_caption="Processes]')[0];
if(list.hasClassName('embedded')){
list.show();
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2016 08:24 AM
Sorry I did not understand this part "cannot use ACLs on the table b/c it is suppose to be just for viewing purpose" ?
You can update acl for create,write and delete to allow only admins to do those operations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2016 08:32 AM
So this table is on the demand form as a related list, as well as the embedded list. The related list 'processes' is broken into different stages of the workflow to enter 'processes' for different states 'process 1', 'process 2', etc. The 'processes' related list shows all phases, however, The embedded list shows these as read only per phase to make a selection to approve a process. I cannot limit it to just admin, b/c the groups have to be able to add/modify processes. I do not want the related list to be read only, 'Related' list will be configured by roles/groups. I just want the embedded list of the 'processes' to be read only. Does that make sense?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2016 08:42 AM
Yes , it makes total sense
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2016 09:15 AM
So any ideas?