I had someone internal at Oracle ask for an Accordion widget in APEX. I figured everybody else code use something like this so I figured I'd build out an example in the standard place.
I think the best and easiest way to do this is to base it on a Report Row Template.
There are some caveats to this example.
The first being that #REGION_STATIC_ID# isn't properly substituted in a Report Row Template, I put it in anyway since at some point it will be. All you have to do is surround the report with element with an id or give the report itself an id , this actually isn't a bad idea as I figure most people will only want one of these per page.
The second is if you put multiple accordions on a page the row id has to be unique which is pretty easy to do in the SQL statement.
The accordian can be instatied on page load like this
pAccordian = new Accordion('accordion',true);
The first parameter is the id for the surrounding element.
The second parameter chooses between firing onmouse over (true) or onclick (false).
So here you go,
http://apex.oracle.com/pls/otn/f?p=11933:130
Enjoy
Subscribe to:
Post Comments (Atom)

Patrick