Platform
Learn
Community
Support
Partner Center
Sign up
or
Log in
logout
Account Settings
Profile
messages
Messages
logout
Logout
Platform
Home
Downloads
IPP
Licensing
Project Sizing
Learn
Training
Documentation
Evaluation Guide
What's New
Community
Home
Forums
Forge
Ideas
Members
Support
Partner Guide
Resources Library
Opportunities
Account Management
Sign up
or
Log in
Home
Forums
Forge
Ideas
Members
Dear ,
What would improve your OutSystems Community experience? Let us know by taking this 2-minute survey.
Pick up the survey
Community
›
Forums
›
Technology & Integration
Button to open PopUp
Community
›
Forums
›
Technology & Integration
Button to open PopUp
New Post
New Post
Alexandre Alves
Posted on 2009-01-22
Alexandre Alves
Rank: #4393
Posted on 2009-01-22
Hello.
I wander if it is possible, in the style guide 4.2, to call a popup from a button.
I only see calling popups from links and I tryed to call it from a button but it always opens in the same page, not in a popup (with both methods, Submit and Ajax).
Thanks in advance.
Tiago Simões
Posted on 2009-01-22
Tiago Simões
Rank: #5
Posted on 2009-01-22
Solution
Hi Alexandre,
Although it is still not possible to use a button to open popups directly there is a workaround:
1 - You will need a link on your page (set it's style to Invisible, but keep the Visible property True)
2 - In the button create an extended property onclick =
"document.getElementById('" + HiddenLink.Id + "').click(); return false;"
Cheers,
Tiago Simões
Solution
Alexandre Alves
Posted on 2009-01-22
Alexandre Alves
Rank: #4393
Posted on 2009-01-22
Solution
Hi Tiago.
Thank you for your answer.
The idea is ok, and I have tryed already. Unfortently the click() event doesn't exist in the link, so it doesn't work.
Do you know any other work around?
Thank you.
Solution
Tiago Simões
Posted on 2009-01-22
Tiago Simões
Rank: #5
Posted on 2009-01-22
Solution
Hi Alexandre,
You are right my code snippet does not work.
You can do another thing, let the button go to an action (with Method=Ajax) and use there the RichWidget's Widget_Click() action to click on the link.
Let me know if that helps.
Cheers,
Tiago Simõe
Solution
Alexandre Alves
Posted on 2009-01-23
Alexandre Alves
Rank: #4393
Posted on 2009-01-23
Solution
Hi Tiago.
Thaks again for your answer.
Once again I tryed your code but unfortently it doesn't work. Like the previous option it opens in the same window, instead of in a popup.
Don't know how to solve it.
Thanks.
Solution
Carlos Monteiro
Posted on 2010-03-22
Carlos Monteiro
Rank: #2229
Posted on 2010-03-22
Solution
I tested the second method and worked perfectly to me
Solution
Daniel Maia
Posted on 2010-03-23
Daniel Maia
Rank: #377
Posted on 2010-03-23
Solution
bntWithLink.oml
hi,
View this sample, hope it will help
Best regards
Daniel Maia
Solution
pedro menezes
Posted on 2014-04-22
pedro menezes
Rank: #1912
Posted on 2014-04-22
Solution
Hello
In Outsystems 8 is it already possible to use a button to open popups directly? Or should I still use this workaround?
Thank you
Best regards
Solution
André Vieira
Posted on 2014-04-22
André Vieira
Rank: #1
Posted on 2014-04-22
Solution
Hi Pedro,
You can use a button with RichWidgets popup editor.
Solution
pedro menezes
Posted on 2014-04-22
pedro menezes
Rank: #1912
Posted on 2014-04-22
Solution
Hi André
So if understand correctly, now it's possible to use the button directly in RichWidget PopUp Editor. There's no need to use an invisible link and WidgetClick (in RichWidgets) as a workaround.
Thank you
Solution
André Vieira
Posted on 2014-04-22
André Vieira
Rank: #1
Posted on 2014-04-22
Solution
Yes Pedro, that's it.
The method for the button or the link must be navigate.
Solution
Adam Elson
Posted on 2014-05-23
Adam Elson
Rank: #1072
Posted on 2014-05-23
Solution
What about if you require some ACTION elements to run before you open your Popup?
I have an autocomplete that I need to retrieve a value from before I open the Popup control - would really prefer to fire all of the above from one 'select' button.
Solution
Quick Reply
attachment
Choose File
No file chosen
Submit
Login to reply
New Post
Available Forums
Technology & Integration
News and Announcements
Forge Discussions
Meta
Community Quick Guides
Usability
Installation Troubleshooting
Personal Environment Troubleshooting
Forum Notifications
Email Digest Settings
Loading...