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
How to use Widget_Show
Community
›
Forums
›
Technology & Integration
How to use Widget_Show
New Post
New Post
Mehrdad Aslani
Posted on 2010-08-27
Mehrdad Aslani
Rank: #3821
Posted on 2010-08-27
Hi all,
I used widget_show to make a hidden button visible but it doesn't work; just before the end of an action I used it, giving it the proper id of de command button, but the button stays hidden!
ovatsus
Posted on 2010-08-27
ovatsus
Rank: #24
Posted on 2010-08-27
Solution
Hi,
Can you attach the oml here so we can try to discover the problem?
Solution
Mehrdad Aslani
Posted on 2010-08-27
Mehrdad Aslani
Rank: #3821
Posted on 2010-08-27
Solution
TestWidgetShow.oml
Hi Gustavo,
Attached you'll find an oml where I have simulated the exact situation.
Solution
Hermínio Mira
Posted on 2010-08-27
Hermínio Mira
Rank: #85
Posted on 2010-08-27
Solution
Hi,
The "Widget_Show" and "Widget_Hide" only affect the css style "display", it either turns it to style="display: none;" (invisible but exists in the HTML of the page) or style="display: ;" (visible), on the other hand when you put the attribute "visible = false" it tells the browser not to create that button into the generated HTML and if it doesn't exist it can't be set a style via "Widget_show".
Hope it helps and doesn't increase the confusion, :)
Hermínio Mira
Solution
ovatsus
Posted on 2010-08-27
ovatsus
Rank: #24
Posted on 2010-08-27
Solution
The Container widget has a Display property that maps to the css display property. For other widgets, you'll have to add an extended property named "style" with the value "display: none" if you want to hide it by default and still be able to use Widget_Show and Widget_Hide. We'll update the description of those two RichWidgets actions to make it more clear.
Best Regards,
Gustavo Guerra
Solution
Justin James
mvp_badge
mvp_label
Posted on 2010-10-11
Justin James
mvp_badge
mvp_label
Rank: #4
Posted on 2010-10-11
Solution
I really have to wonder why Widget_Show and Widget_Hide are even needed in their current condition. I can just bind the Display property of a container to a boolean variable, set that value in an AJAX action, and then do AJAX refresh and it works just as well. If all widgets get the Display property, that just makes it easier.
J.Ja
Solution
J.
mvp_badge
mvp_label
Posted on 2010-10-12
J.
mvp_badge
mvp_label
Rank: #7
Posted on 2010-10-12
Solution
Depends.
I don't like the Display-property, because in my experience, when you set it to false, the html will not be there in the source.
This "can" be an issue sometimes.
Solution
Justin James
mvp_badge
mvp_label
Posted on 2010-10-12
Justin James
mvp_badge
mvp_label
Rank: #4
Posted on 2010-10-12
Solution
Joost -
True! But in most cases, that is actually a benefit (reducing page size).
J.Ja
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...