Peter Borsje - Wednesday, June 25, 2014 3:37 AM:
Dear community,
I would like that in a certain state a tab and its relationships are not editable.
The relationships in the tab however must be visible.
Previous solutions mentioned in the community like setting tabs invisible or disable tabs will not work for me because I still want to see the relationship items.
I tried to give the relationship itemtype an own permissionset and disabled 'Use Src Access' on the relationship itemtype.
The behaviour on the form was still not what I wanted and not userfriendly. I was still able to add new relationships and could edit existing relationships.
Only when I tried to save the parent Item I got the warning that I did not have permission to save the relationship item.
I just want to have the behavior of the relationship like when the parent item is unlocked.
Who has an idea how to solve this?
DavidSpackman - Friday, June 27, 2014 2:23 AM:
Hi Peter,
Does the user need to be able to open or perform an action on the item? i.e. right click and open the context menu?
If not, then you could use Row Events to stop them from adding, selecting or deleting.
There is probably a better method to do this though...
aponceot - Friday, June 27, 2014 4:28 AM:
Hi Peter,
You can run the following javascript to update the toolbar and force it to think the edit mode is false :
relationships[0].isEditMode = false;
relationships[0].updateToolbar() ;
newcomer - Thursday, July 3, 2014 9:34 AM:
Is there a better way to do this for all tabs besides using the SelectTab function to load each tab and then set the EditMode to false?
I need something like a onAfterTabLoaded event... :/
Is there a way to use the name or the ID of the relationship to set the isEditMode? So instead of using relationships[0].isEditMode = false; I want to do relationships[tabName||tabId].isEditMode = false;