APEX5 UT remote control for collapsible regions
January 21, 2016 at 3:43 pm | Posted in Oracle Developement | Leave a commentIntroduction
A colleque of mine recently had the wish to be able to control the state of a collapsible region using a page item.
This is how a simple report region using the “Collapsible” region template looks like.
We now want to control the state of the region by a page item. For example if the item is NO or 0 then the region should be expanded, if it is YES or 1 then the region should be collapsed.
There are three general options how to do that.
- Simulate the click on the region button
- Dynamically switch css classes
- Set the template option based upon some page item value
I’ll show how to implement all three possibilities.
There is also demo on https://apex.oracle.com/pls/apex/f?p=21878 to show the different options.
Login: guest/information
Option 1: click the button
First we create a page item that should influence the state of our region. I’ve…
View original post 655 more words
Leave a comment