Hi,
We are having troubles with the repeat grid with the select-boxes which contents are auto-filled from the external sources by means of REST APIs. Select boxes are "chained" in terms that the contents of the next select box depend on the selection in the previous one, the list being auto-generated from a REST API request to an external source which uses the value from the previous select box as a key. Say for an "sb-02" select box in a column 2, the URL for the REST API is parametrized by the value from the first select box "sb-01", using the following XPath: instance('fr-form-instance')/section-1/grid-2[index('grid-2-grid-repeat')]/sb-01 It all works fine as long as there is only one row in a grid. Once the next row is added, and another value is selected in the first select box of the second row, the list of values for the second select box is auto-generated for both row 2 and row 1! Here's a picture of the repeat grid with the select boxes, just to make it clear what I am talking about: https://skitch.com/revrom/em1bd/select-boxes-in-repeat-grid-rest-auto-filled-problem Could you tell how it is possible to overcome the problem? Thank you in advance! |
Could someone at least indicate whether this problem is solvable in the short term or we need to look for a workaround?
We have a production problem and need to resolve it ASAP. Thanks again, Roman |
Administrator
|
Roman,
It's hard to tell from a screenshot. Can you send code instead? -Erik On Thu, Aug 9, 2012 at 4:01 PM, roman <[hidden email]> wrote: > Could someone at least indicate whether this problem is solvable in the short > term or we need to look for a workaround? > We have a production problem and need to resolve it ASAP. > > Thanks again, > > Roman > > > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Repeat-control-with-select-box-contents-auto-filled-from-external-sources-tp4655603p4655611.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Hi Erik,
Thanks for taking your time to answer me. I've sent you an email with the source code of the form, the subject line being the name of the topic. We are running the Orbeon Forms Milestone 4.m7 (orbeon-4.0.0.m7.201207162324-PE) Best regards, Roman |
Hi Erik,
Have you had any chance to look at the code I sent to you? Meanwhile an issue has passed across which somehow resembles me the problem I reported: http://orbeon-forms-ops-users.24843.n4.nabble.com/fr-repeat-copying-records-instead-of-creating-new-records-td4655608.html Thanks, Roman |
Administrator
|
Roman,
I just had a look and I think you've simply hit a limitation of the current away services and actions work with repeats, more specifically how selection control items are handled upon action completion. The way things work right now is that Form Runner updates the control's resources. However, there is only one set of resources for a given control, so one itemset, even though that control might be repeated. However, you might be able to use instead of the "Dynamic Data Dropdown" component. To be fair, we are not sure we are going to keep it in Form Builder for 4.0, because the user interface to set it up is not perfect. The difference is that you configure this control via the control properties instead of using actions and services. You set the URL from which to load the data, and set XPath expressions that determine the items based on the data returned by the URL. The URL is an AVT, so we can contain nested XPath expressions. This allows making dependent dropdowns like you want to do. See: http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/databound-select1 -Erik On Wed, Aug 15, 2012 at 1:36 AM, roman <[hidden email]> wrote: > Hi Erik, > > Have you had any chance to look at the code I sent to you? Meanwhile an > issue has passed across which somehow resembles me the problem I reported: > > http://orbeon-forms-ops-users.24843.n4.nabble.com/fr-repeat-copying-records-instead-of-creating-new-records-td4655608.html > > Thanks, > Roman > > > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Repeat-control-with-select-box-contents-auto-filled-from-external-sources-tp4655603p4655632.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Hi Erik,
Thank you so much for your support, we implemented everything as you suggested and it's working properly and as expected now! Very, very much appreciated, thank you again! With kind regards, Roman |
Administrator
|
Roman,
Great, we definitely appreciate the positive feedback! -Erik On Tue, Aug 21, 2012 at 3:01 PM, roman <[hidden email]> wrote: > Hi Erik, > > Thank you so much for your support, we implemented everything as you > suggested and it's working properly and as expected now! > > Very, very much appreciated, thank you again! > > With kind regards, > Roman > > > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Repeat-control-with-select-box-contents-auto-filled-from-external-sources-tp4655603p4655654.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |