Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] Close SectionExpandable widget after action

$
0
0
Hello Carlos,

I'm not entirely sure if I managed to replicate what you are trying to do, but here is an example on how you can do it (sorry for the big reply, but it was the best way to show you everything):

  • I created a new page, with a SectionExpandable (containing a TableRecord) and with a container (also containing a TableRecord inside it (See image below)
  • The SectionExpandable has the property IsExpanded = False, and the container ("MySecondList") has the Display property defined with a variable. This variable (ShowSecondList), has a default value = False
  • I added 2 buttons: the first Button (ShowSecondList) will toggle the Container, and the second (Hide List) will close the container and the SectionExpandable


  • Now, each buttons calls a different action.
  • The ShowSecondList action will set the variable "ShowSecondList" = true, and will do an ajax refresh to the container itself.
  • The HideList action will set the variable "ShowSecondList" = false, will do an ajax refresh to the second list container, and another one to the SectionExandable, so that you can close it.


This would be the final result of this implementation:

http://screencast.com/t/Xf6YthUD

Hope this answers your questions, and please let us know if you need more help.

Cheers,
Samuel Jesus

Viewing all articles
Browse latest Browse all 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>