[Solved] Repeat control with select-box contents auto-filled from PostgreSQL db

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

[Solved] Repeat control with select-box contents auto-filled from PostgreSQL db

jarod73
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Repeat control with select-box contents auto-filled from PostgreSQL db

Alessandro  Vernet
Administrator
Hi Carmine,

In that dialog you took a screenshot of, the "Resource URL" needs to really be a URL. It's not an XPath expression. This is most likely why this this feature doesn't work for you.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Repeat control with select-box contents auto-filled from PostgreSQL db

jarod73
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Repeat control with select-box contents auto-filled from PostgreSQL db

Alessandro  Vernet
Administrator
Hi Carmine,

I'm glad that solved, at least partially, the issue you were having with the dynamic dropdown. Now for that other issue you mentioned, if you can't figure it out, you'll need to share more information about it with us if you need help with it (and as usual, a minimal example that shows the problem makes it easier to see what is wrong).

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Repeat control with select-box contents auto-filled from PostgreSQL db

jarod73
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Repeat control with select-box contents auto-filled from PostgreSQL db

Alessandro  Vernet
Administrator
Hi Carmine,

You're saying that you'd like to use the value of the dropdown (select1) when calling a service, and that this dropdown is in a repeat. This doesn't work because, if you have multiple iterations to your repeat, and thus potentially multiple values for that dropdown, which one should be passed?

Say you want to pass the value of the first dropdown in the repeat. You can do this creating a hidden output control outside of the repeat that take value of the first dropdown in the repeat. For instance, the calculated value for that control will be: /form/person/phone[1]/number. Then in your action, you pass the value of that hidden control.

And you can see this in action in this form: passing-first-value-in-repeat.xhtml

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Repeat control with select-box contents auto-filled from PostgreSQL db

jarod73
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Repeat control with select-box contents auto-filled from PostgreSQL db

Alessandro  Vernet
Administrator
Hi Carmine,

Excellent, and thanks for the update.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet