How do I find out what mypopupID is?
I am using this code
system.perspective.openPopup('myPopupId', 'folder/myView', position = {'left':100,'top':100})
How do I find out what mypopupID is?
I am using this code
system.perspective.openPopup('myPopupId', 'folder/myView', position = {'left':100,'top':100})
If you’re opening a popup, you decide on an ID. It’s only useful if you want to programatically close the popup later.
Ahh, Ok I get it, thanks for the quick response.
You can pass the id into the popup as a parameter, then if you want to close the popup from a component event action such as a popup action or script, you can reference the parameter when you need to know the id.
in scripting it would look like this (assuming you named the parameter “id”:
system.perspective.closePopup(self.view.params.id)