Dynamic population of dropdowns one dependent on another

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Dynamic population of dropdowns one dependent on another

avishekdas
Hi, 
I am pretty new to xforms and Orbeon. 
I’m running a separate deployment where I have my own Java webapp and use the Orbeon XForms engine.  Therefore, my XForms is wrapped in a JSP. 
I have 2 dropdowns implemented using below format - 

<form-runner:databound-select1 ref="Tenant" appearance="minimal" resource="http://localhost:8080/ExecuteSQLRest/rest/service1/">
 <xf:label>Tenant</xf:label>
 <xf:itemset nodeset="/Rows/Row">
 <xf:label ref="@label" />
 <xf:value ref="@value" />
 </xf:itemset>
</form-runner:databound-select1>

xf implies xforms 

Now, the use case requires that I call service 1 and get values for dropdown 1 and when user selects a value in dropdown 1 webservice 2 needs to be invoked passing value of dropdown 1 and fetch values for dropdown 2. Or in other words when onchage/event="xxforms-value-changed" we should call rest service 2 and populate values in dropdown 2. 

Please help me with a pointer to any pre-existing example or any idea on how this can be implemented the above scenario. 
Thanks. - Avishek

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Dynamic population of dropdowns one dependent on another

Arjun
please refer to the link below and check whether it helps in some or other way to solve your Usecase
http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/databound-select1

Regards,
Arjun
Reply | Threaded
Open this post in threaded view
|

Re: Dynamic population of dropdowns one dependent on another

avishekdas
That worked!
I missed the databound-select1 in model!
Thanks Naga!

On Thursday, 3 July 2014 16:08:52 UTC+5:30, nagarjuna balaji wrote:
please refer to the link below and check whether it helps in some or other
way to solve your Usecase
<a href="http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/databound-select1" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwiki.orbeon.com%2Fforms%2Fdoc%2Fdeveloper-guide%2Fxbl-components%2Fdatabound-select1\46sa\75D\46sntz\0751\46usg\75AFQjCNGJRf3TMzhQFigeDu_GPRZetonIxw';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwiki.orbeon.com%2Fforms%2Fdoc%2Fdeveloper-guide%2Fxbl-components%2Fdatabound-select1\46sa\75D\46sntz\0751\46usg\75AFQjCNGJRf3TMzhQFigeDu_GPRZetonIxw';return true;">http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/databound-select1

Regards,
Arjun

--
View this message in context: <a href="http://discuss.orbeon.com/Dynamic-population-of-dropdowns-one-dependent-on-another-tp4658582p4658606.html" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fdiscuss.orbeon.com%2FDynamic-population-of-dropdowns-one-dependent-on-another-tp4658582p4658606.html\46sa\75D\46sntz\0751\46usg\75AFQjCNFKnB_IZVRcZpjWkKA2LWx76mPcPg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fdiscuss.orbeon.com%2FDynamic-population-of-dropdowns-one-dependent-on-another-tp4658582p4658606.html\46sa\75D\46sntz\0751\46usg\75AFQjCNFKnB_IZVRcZpjWkKA2LWx76mPcPg';return true;">http://discuss.orbeon.com/Dynamic-population-of-dropdowns-one-dependent-on-another-tp4658582p4658606.html
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].