Hi Folks,
i am currently building an app with a simple one-to-many relation. Lets asume I have an Item and ItemApprovers.
One Item Approver can have multiple Items to Approve. So Approvers to Items is one-to-many and therefore items to approvers is many-to-one.
In my App I have an ItemGallery and a Approver Assignmant Page. On the ItemGallery i want to unrelate the approver of the item.
I couldn't get this to work.
I can relate the item by
Patch(Items, ItemGallery.Selected, {Approvers:First(Approvers)})
but unrelate by
Patch(Items, ItemGallery.Selected, {Approvers:blank()})
doesn't work.
Also I can't get unrelate() to work. I tried all combinations, but no luck. If I don't get the error that I don't have a table, I'll get the it must be a to-many relation.
Can somebody help me?