Autocomplete with dynamic Resource URI's

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

Autocomplete with dynamic Resource URI's

murkowicz
Hi,

Lets imagine that I have two grids in orbeon form builder :
grid 1 : data dropdown with two labels : feminine names and masculine names.
grid 2 : autocomplete that takes names from the web service as a value.

I have also two web services
service 1 : returns masculine names
service 2 : returns feminine names

Can I bind grid 1 to grid 2 in form builder in the way that will allow autocomplete to return values from service 1 and service 2 depending on what value is chosen in data dropdown ?
Reply | Threaded
Open this post in threaded view
|

Re: Autocomplete with dynamic Resource URI's

murkowicz
I've tried to put
http://localhost:8080/project/service?gender={encode-for-uri($datadropdownvalue)}&query={encode-for-uri($fr-search-value)}
as the Resource URI in the Form Builder. Can someone explain me why such method does not work ?
Reply | Threaded
Open this post in threaded view
|

Re: Autocomplete with dynamic Resource URI's

Alessandro  Vernet
Administrator

Hi,

I image you're using the auto-complete control? In that case you can indeed use {encode-for-uri($fr-search-value)}, but not $datadropdownvalue. What did you expect the latter to return, and what is the use case for this?

Alex

On Nov 18, 2013 10:46 PM, "murkowicz" <[hidden email]> wrote:
I've tried to put
<a href="http://localhost:8080/project/service?gender={encode-for-uri($datadropdownvalue)}&amp;query={encode-for-uri($fr-search-value)}" target="_blank">http://localhost:8080/project/service?gender={encode-for-uri($datadropdownvalue)}&query={encode-for-uri($fr-search-value)}
as the Resource URI in the Form Builder. Can someone explain me why such
method does not work ?

--
View this message in context: http://discuss.orbeon.com/Autocomplete-with-dynamic-Resource-URI-s-tp4657662p4657663.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].

--
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].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Autocomplete with dynamic Resource URI's

Alessandro  Vernet
Administrator
In reply to this post by murkowicz

OK, I see: so you'd like to refer to the value of another control, and pass it to the service. Unfortunately, you cannot refer to the value of another control with $mycontrol in a resource URL.

Instead, if the other control is in the same section write ../mycontrol, and if in a different section ../../mysection/mycontrol (where mysection is the name of that other section). You'll let us know if this works for you.

Alex

On Nov 18, 2013 10:46 PM, "murkowicz" <[hidden email]> wrote:
Hi,

Lets imagine that I have two grids in orbeon form builder :
grid 1 : data dropdown with two labels : feminine names and masculine names.
grid 2 : autocomplete that takes names from the web service as a value.

I have also two web services
service 1 : returns masculine names
service 2 : returns feminine names

Can I bind grid 1 to grid 2 in form builder in the way that will allow
autocomplete to return values from service 1 and service 2 depending on what
value is chosen in data dropdown ?

--
View this message in context: http://discuss.orbeon.com/Autocomplete-with-dynamic-Resource-URI-s-tp4657662.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].

--
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].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Autocomplete with dynamic Resource URI's

murkowicz
Hi Alex, now it works fine. Thanks.