Hi !
I have a strange behavior (at least it's strange to me) on one of my SmartForms (4.6.11).
Briefly, here's my goal :
I have a list view, displaying some smartbox values that are bound to a request. User can't edit the rows, nor add or remove them directly. The view has a button which clears the rows, and opens a subview. The subview is merely a CheckBoxList, in which the user checks the item he wants, and when he submits, all the checked items are passed to the parent liste view.
When submitting the form, a rule executes the Create method for all items that have been added, and Delete for all items that have been removed from the list view.
The "Create" part works well, but I can't get it to work as intended when I update.
The save rule is very simple :
- Delete all items removed from the list view (i.e. all items that were present when the form loaded, but removed by the "Clear" when I click my button)
- Create all items added to the list view (i.e. all items I checked in my subview)
But the actual behavior simply ignores all items that were removed. Same thing with a Foreach Loop bound to the "Removed" rows.
Is it normal, that "Clear" doesn't seem to mark the rows as "removed" ?
How could I workaround this issue ?
Hope that was clear enough. Any lead greatly appreciated :)
Regards