Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
I have a mashup with a button that uses a hidden navigation widget to open a modal child window that is just a confirmation message. When the child window is closed I would like for the parent to also close so the user does not click the button again. Looking for the cleanest way to handle this. Any help would be appreciated
Expression widget that is triggered upon popup closed event
I think you can use window.close()
Thanks for the response! I bound the Expression 'Evaluate' event service to the Navigation widget's PopupClosed event with an Expression of "close()" however that did not close the parent. "window" appears to be a reserved word that gives an error so window.close() doesn't seem to be usable. Any thoughts?
You could try just close()
else you may have to create a custom extension to bring in that script.
Stumbled upon this, thankfully. I had been trying to figure out how to initiate the print dialog (ctrl+p) from an expression widget.
I just tested close() and print() in an expression widget triggered by a button and they seem to work.
Hi PaiChung,
close(); function working when the current tab is triggered from a parent.
If I copy the URL and put into a new window, not working.
Do you have the solution for the same?
Regards,
Janakiraman P
Can you explain this a little better please?
What exactly does it mean to 'copy the url into a new window'?
Please follow the below URL,
Regards,
Janakiraman P