Home Forums Presentation Forms Refresh issue while creating a popup in another popup

Viewing 2 reply threads
  • Author
    Posts
    • #9147
      Ramesh Bungaramesh bunga
      Participant

      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.

       

       

      0
    • #9156
      Olexiy.SvitashevOlexiy.Svitashev
      Participant

      Try the following:

      1. Instead of using (model’:invoke….), use (this’invokeMethod….)
      2. Instead of calling your code from finalize script of the child popup, call it  from the parent popup after the child closes.

      0
    • #9221
      Ramesh Bungaramesh bunga
      Participant

      thank you Olexiy.

      0
Viewing 2 reply threads
  • You must be logged in to reply to this topic.