1 person found this helpful
If you don't need to keep working on the same instance of your pop up you could use the creationComplete event and pop different instances every time, with PopUpManager.createPopUp() and PopUpManager.closePopUp().
If you need to keep working on the same instance, you could use a setter for the ID you pass to the pop up, and trigger the data instanciation in it.
Thanks, I found where I went wrong... the removePopUp was porperly called from my code; I tried a createPopUp, but stored it in a local value, and reused it... Now I realy use a new instance and it works on the creationComplete...
However, if I would like to use the same instance, and add it with 'addPopUp', should I still remove it?, and on which event I can best trigger the instantiation : I would like to instantiate the values when the popup is displayed, I don't want to add a button 'update the data'...?
I'm not familiar with the pop up events, but maybe the show event could do it (not sure if it's dispatched for pop ups though).
If there's no event just do it manually (and not with a button). Create a method instantiate() in your pop up, and call it just after the PopUpManager.addPopUp() call.