Forum Discussion
I made some progress by using this variant:
aras.setItemProperty(myDocRelations.node,"mycustomprop","mynewvalue");
This will update the relationship property. But I cannot close the main item anymore after edit. The tab pane will crash and I will get the following error message in the browser debugger:
'factory.js: 74 Uncaught (in promise) CUIError: The command for the command alias 'UnclaimItem' failed. '
A somehow working variant is the following were I immediately save the changed relationship:
aras.setItemProperty(myDocRelations.node,"mycustomprop","mynewvalue");
aras.saveItemEx(relshipNode,false);
But I want to avoid to use the additional 'save' command cause every little editing by the user will be immediately saved which makes using "Discard" impossible.
I assume I have to use these two functions:
relshipNode.setAttribute('isDirty', '1');
relshipNode.setAttribute('action','update');
But I am not sure which target item to address (top item / relationship items / relationship node or all of them). I tried various variants based on existing code samples, but none of them worked and each time the tab pane crashed when I closed the item.
Does anyone has experience with this use case?