DavidStubblefield
Posts: 0
Joined: Fri Apr 27, 2012 8:03 pm

How to know on main page when popup is closed?

I have a list with a label containing a status. On click, user gets a popup where they can change the status value. After the update, I close the popup. Now the user is back as the original page, but the status value needs to be updated. How can I do this? Easiest method would be some type of event that knows when the popup is close so I can re-run the service, but I could also just get the new value from local storage. My problem is, on my original page, I don't know when that popup was closed in order to do my update.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How to know on main page when popup is closed?

Update the value just when you close the popup (right before it, for example). This way you don't need to listen to any events.

DavidStubblefield
Posts: 0
Joined: Fri Apr 27, 2012 8:03 pm

How to know on main page when popup is closed?

The listitem is not available when I am in the popup, it is on the original page. Nor is the service available on the original page. Are you saying I could update using Javascript (ran from the popup and update item on the original page)?

DavidStubblefield
Posts: 0
Joined: Fri Apr 27, 2012 8:03 pm

How to know on main page when popup is closed?

I just figured it out. I can run a custom javascript and execute the service (while still on the popup) that is on the original page. Since the service is connected to the list, it refreshes.

Return to “Issues”