logo       

Related Msgs: audio.musicbrai...    enbd.general/20...    ietf.idr/2002-0...    java.ant-contri...    gnu.make.genera...    qplus.devel/200...    video.freevo.cv...    os.netbsd.ports...    yellowdog.gener...    xfree86.cvs/200...    search.nutch.us...    freedesktop.xse...    programming.swi...    capabilities.ge...    telephony.pbx.a...    mail.sylpheed.c...    db.firebase.por...    boot-loaders.u-...    recreation.radi...    netbsd.bugs/200...    web.zope.plone....    user-groups.lin...   

Re: Selecting a tab (xforms:case) from instance data: msg#00009

Subject: Re: Selecting a tab (xforms:case) from instance data
Hello Richard,


Richard Steadman wrote:

Hi,

We have a form that has multiple pages controled by tabs like in
the vcard Chiba sample.

I would like to be able to specify in the instance data what tab
should be open when the form is launched.

Any ideas on how this might be accomplished?
vcard is not a good starting point to assomplish this cause it uses the <switch> element for creating 'pages'.

The <case> elements of a <switch> have to be statically authored and the toggle action is the only way to change the selected card but toggle only takes the idref of the target-case as argument - so in consequence there's no way to set the selected <case> dynamically (dependent on values in the instance).

To nevertheless reach your target you've to use groups that you bind to relevant constraints thus being able to switch a group visible or not by setting a value in the instance.

Have a look at the wizard-with-relevant.xhtml sample to get a feeling how to implement dynamic 'pages'. This technique is a bit more complex to implement but offers much more flexibility.

hope this helps,

Joern


Thanks,
Richard Steadman


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Chiba-developer mailing list
Chiba-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/chiba-developer




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Home | blog view | USPTO Patent Archive (NEW!) | advertise | OSDir is an inevitable website. super tiny logo