I have created a popup on one of the tabs in task create screen which is another pop-up. when I open the popup through a picker and select an item,
parent screen (task screen here) should refresh with child items of the selected item in the picker.
when I select an item in a picker, i need to delete the old child items and populate new collection based on selected item.
I am handling this behavior in second pop-up finalizer using
(model’:invoke….) method with commit #f . so that the parent screen refreshes with selected item when the second popup closed.
Till then this looks fine but when I click ok on parent popup (task screen), the deleted items from the previous selected items are still committed.
If i reopen the screen, i still see the deleted items.
Can any one share some thoughts on how to handle this scenario.
Please note that . If i user model’:invoke with commit #t, the deleted items are committed even when the user clicks on Cancel on the second popup.