A is for APEX and Accordion

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

16 Comments:

  1. Patrick Wolf said...
    Carl, nice accordion example! I like the clickable one more, because the other one is to hectic when you just move your mouse around.

    Patrick
    John Scott said...
    Yeah I agree, very nice example. A nice addition to the mouseover one would be a delay (e.g. 500ms) so that it doesn't automatically expand until you leave your cursor over it for that period of time.
    pay per head service said...
    I really enjoy reading the post, thanks for sharing I really like it, I already bookmarked it, thank you guys.
    Anonymous said...
    Good job. Thanks for sharing such a good post.
    click here
    Anonymous said...
    Healthybodyinc phytoceramide said...
    Yep My partner and i acknowledge, comfortable illustration. A good improvement on the mouseover just one would be a wait (e. h. 500ms) in order that it does not automatically grow until you abandon the cursor in excess of this with the period of time.Healthybodyinc phytoceramide
    karya ismail said...
    Anda mencari produk Furniture Jepara dengan desain minimalis ataupun klasik asli mebel jepara dengan harga murah. kami menyediakan berbagai tipe atau model produk Mebel Jepara terutama dengan menggunakan material kayu jati. Disni saya menjual produk produk mebel mulai dari kursi tamu minimalis meja makan jati tempat tidur dan sebagainya. Untuk indormasi lebih lanjut anda bisa langsung menuju katalog website kami.
    Produk produk yang kami tawarkan mempunyai kualitas tinggi dan kami menawarkannya dengan harga yang cukup terjangkau, tentunya kualitas produk tersebut akan kami jaga. Produk Furniture Minimalis selalu banyak diminati oleh banyak konsumen baik itu dari dalam maupundari luar negri. Banyak sekali turis turis asing berbondong bondong ke jepara dengan tujuan yang sama seperti anda yaitu untuk mencari produk Kursi Tamu.
    Kami Cv. Karya Priboemi Jepara sebagai produksen furniture memberikan anda kemudahan untuk berbelanja produk furniture jepara dengan aman melalui transaksi online, kami menyediakan berbagai model di dalam katalog website kami. Anda cukup duduk santai di ruamh, kami kerjakan produk pesanan anda dan tentunya kami akan memberikan garansi jika produk tidak sampai ke tangan anda ataupun produk Furniture Jepara yang anda pesan, kami proses dengan sangat terkontrol, baik itu dalam hal pemilihan kayu, proses kontruksi, pahatan ukir hingga proses finishing. Oleh karena itu kami sebagai perusahaan Furniture Jati selalu mengutamakan kualitas produk serta ramah kepada anda.
    Jepara memang dikenal sudah sejak lama sebagai kota industri Furniture Jepara terbesar oleh beberapa negara. Kota Jepara sendiri selalu menjadi langganan aktif dalam setiap pengadaan pameran furniture Furniture Jati.
    Banyak sekali produk produk yang di tawarkan satunya yang menjadi produk unggulan mebel jepara yaitu Kursi Tamu Jati yang sangat cantik dengan keaslian ukiran khas mebel jepara yang meja makan, set meja makan dan banyak lainnya.
    Oleh karena itu mulai dari lima tahun terakhir kami sudah mengembangkan untuk pembelian produk furniture dengan menawarkannya di Toko Furniture Online yang sudah furniture tersebut diatas tadi di katalog produk kami tersebut disini Furniture jepara Online banyak sekali yang dapat anda Furniture Jati secara online dengan Jadi apabila anda ada keluhan saat bertransaksi Furniture Online dengan kami, jaminan keamanan 100% di toko kami Toko Mebel Online produk produk kami berkualitas karena dikerjakan Tempat Tidur Jati kami sudah mulai membuka pemesanan dengan anda cukup dengan santai diruamh, anda tinggal menyodorkan bagaimana produk Tips Furniture
    jati jepara said...
    Pusat bufet jati menjual berbagai macam produk furniture jepara murah

    terlengkap dan terpercaya produk kami seperti jual sangkar burung . Tidak hanya itu kami melayani

    perbaikan laptop anda yang rusak lagsung saja ke servis laptop semarang siap

    membantu anda dan bulu perindu pengasihan dapat membantu masalah asmara anda. kami juga melayani jual hijab terbaru.
    Sheetal Roy said...
    jessica gill said...
    drana said...
    Ludhiana call girls The town Ludhiana may be their state Punjab money. It's one of the most beautiful city in the India. The town includes a great populace and also the huge numbers of people continue travelling to time to the town for that numerous reasons from time. The Ludhiana escorts have now been an established participant in engaging the service customers along with the main appeal from the country's various regions. You will get anything you want. There are lots of various platforms of entry on consideration of the improvement that is great observed within the current period. All of the services are often available online from any area.
    Karan Gupta said...
    Conduct and the mindset of the escorts in Chandigarh is extremely useful motivating and co-operative. They fulfill the sex hunger of the clients in the best method that is possible. The escort, who you select will give a new method of sex to you. But, you have to be careful about any of it. Lots of people opine that it's a method to possess intercourse using the escort. But, there's nothing beats that.
    Chandigarh escorts
    Chandigarh escort
    escort in Chandigarh
    escorts in Chandigarh
    Chandigarh escorts service
    Chandigarh escort service
    Chandigarh Independent escorts
    Independent escorts in Chandigarh
    Chandigarh female escorts
    call girls in Chandigarh
    Chandigarh call girls
    Chandigarh female escorts
    Chandigarh vip escorts
    sandali khan said...
    Hot Teen Companions using purity encounter that is adorable really wants to fuck a Teenager Companion that is sexy in
    Chandigarh escorts views the Teenager Companions web site to find out more.
    Chandigarh Call-Girls, the absolute most searchable Companions regarding males Chandigarh College Women, they most possess some sensation which makes these warm in mattress plus since they're therefore significantly attractive, begin to see the University Women class for information.
    Mahesh Gulati said...
    Got Bored with cheap escorts in Chandigarh?? Meet real high class independent escort girl Chandigarh. Independent Escort in Chandigarh Both incall and outcall escort service available, whatsapp me and book me now by mail.
    fanni said...
    An agency that's great could make certain you have real events which are pleasant utilizing the girl. The girl will probably be charming visible, wise, spectacular and attractive. Ergo, you are particular to enjoy a wise and fascinating dialogue utilizing the girl. Search for obtaining an call girl in Chandigarh that is appropriate just for licensed agencies. Companions in be generalized. They offer providers basing concerning the requirements of the clients.
    kingescorts said...
    We are frequently as well as you while you need to fulfill with this specific escorts it often does not undoubtedly issue.You simply need certainly to fulfill them-and you'll absolutely drop in love that is large. Why don’t possess an excellent period utilizing the attractive chandigarh escorts? We provide a-team of experts who are in a situation make it possible for one properly need the very best choice and to evaluate by everything you create. Your girls likewise talk adept Hindi and Language; they truly are in a situation to work with the town is found out about by you for anyone who is clear in Chandigarh. You simply need certainly to enroll your name and we shall ensure that you're encountering particular.

Post a Comment