233
Views
8
Comments
Creating a popup window
Question
Is there any component built into OutSystems that allows me to create a generic popup window?

I watched this training video: https://www.youtube.com/watch?v=tGD2UmwT52c

But that seems to use some sort of global popup template and is only used to edit a table record.

I'd like to just make a generic popup (there would be many, not just one) with anything in it.  My popups would not necessarily be for editing table records, and each would be different (not sure if this is possible with that global template unless I use many IF blocks, which I do not want to do).

Is this possible in OutSystems or do I need to make my own widget for this?
2017-07-05 18-13-21
Tiago Neves
Mike,
The popup window is a webscreen like the others. You can just change the layout to whatever you want.
Edit the screen the same way.
UserImage.jpg
Michael Deroche
How do I choose which screen to show for the popup?  I don't see an option for that in the properties panel:


2017-07-05 18-13-21
Tiago Neves
You have to select a link or button, of which you need to give a name so you can see it to select it.

And it's on that link or button that you choose where to go, by choosing onclick method to navigate and as destination the webscreen.
UserImage.jpg
Michael Deroche
Got it, thanks Tiago!
2017-07-05 18-13-21
Tiago Neves
I forgot... The On Notify on your image is the action you want to run once you close your popup. When you close it, the On Notify will take care of the request.
2020-03-05 15-52-45
André Vieira
Staff
And to trigger that On Notify you must use the Popup_Editor_Notify action.
2011-09-30 16-44-42
João Fernandes
Michael, I don't think you understood the dynamics of how that pop-up component works.
  1. You implement some screen, with the layout and functionality you wish
  2. On another screen you already have, you add a link to this new screen
  3. Next to that link, you add the pop-up widget. That widget will open your new screen inside a pop-up, instead of redirecting the user.
So you don't specify the screen on the pop-up widget properties. What defines what the pop-up will show is the link you've created.
UserImage.jpg
Michael Deroche
Thanks for your assistance everyone!  I got it working--the way I thought it worked was slightly different than how it is implemented.
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.