Dynamic Tabbed Panel creation

Is there anyway to have a Tabbed Panel on an xPage where I get to set the tabs (and selected tab) upon page load based on an array retrieved form an @DbLookup?

TIA

Mike

Subject: Dynamic tabbed tables

Mike, I’ve done something like this, although didn’t set the selected tab. I ended up using “dijit.layout.TabContainer” & “dijit.layout.ContentPane” & coding the whole mess in a computed field (set as HTML with NO ID & “disableTheme” = true) in Javascript. As a learning challenge, I also did this in a Repeat but it was so convoluted (I have a tabbed panel within a tabbed panel) I threw it away.

So it can be done & I can post some code snippets if you find you need some help.

Subject: repeats

To be honest, I would suggest using a repeat is the easiest way to go. Yes, it takes a bit of getting your head around but once you have it becomes invaluable. You can use dojo or look up other javascript frameworks, I’ve been using jquery a lot which has loads of different possibilities.

I’ve been doing similar things (not actual tabbed tables, but for example accordion style collapsible views/menus) which all use the same principle.