OK I am new to Orbeon and So far I love it. Was tring to do a few more advanced forms
did a little googling and ran across this http://blog.orbeon.com/2013/03/dropdown-populated-based-on-values-from.html So following this everything works. But when I try to use my forms I get nothing. Example that works: ( using a default form that came with Orbeon) HTTP Service Resource URL: http://localhost:8080/orbeon/exist/rest/db/orbeon/fr/orbeon/contact/data Method: POST Serialization: XML Request BODY: for $c in /form/contact return element item { element label {$c} } Results: <exist:result xmlns:exist="http://exist.sourceforge.net/NS/exist" exist:hits="1" exist:start="1" exist:count="1"> <item> <label> <contact> <first-name>Erik</first-name> <last-name>Bruchez</last-name> [hidden email] <phone>6505555555</phone> </contact> </label> </item> </exist:result> Example: that does not work.( using My form) HTTP Service Resource URL: http://localhost:8080/orbeon/exist/rest/db/orbeon/fr/orbeon/cost/data Method: POST Serialization: XML Request BODY: for $c in /form/cost return element item { element label {$c} } Results <exist:result xmlns:exist="http://exist.sourceforge.net/NS/exist" exist:hits="0" exist:start="1" exist:count="0"/> So I am sure I am missing something fundamental and has not clicked yet. Was hoping someone could point me in the right directions. |
Administrator
|
Hi Marc,
Could you check one of the data.xml files in your http://localhost:8080/orbeon/exist/rest/db/orbeon/fr/orbeon/cost/data and see of you indeed have elements that would be returned by your expression /form/cost/label? If that isn't clear to you, feel free to attach one of those files to your response, and we can have a look at it. Alex On Fri, Apr 24, 2015 at 9:37 AM, marc <[hidden email]> wrote: > OK I am new to Orbeon and So far I love it. Was tring to do a few more > advanced forms > did a little googling and ran across this > > http://blog.orbeon.com/2013/03/dropdown-populated-based-on-values-from.html > > So following this everything works. But when I try to use my forms I get > nothing. > > > Example that works: ( using a default form that came with Orbeon) > > HTTP Service > > Resource URL: > > http://localhost:8080/orbeon/exist/rest/db/orbeon/fr/orbeon/contact/data > > Method: POST > Serialization: XML > > Request BODY: > > for $c in /form/contact return element item { > element label {$c} > } > > Results: > <exist:result xmlns:exist="http://exist.sourceforge.net/NS/exist" > exist:hits="1" exist:start="1" exist:count="1"> > <item> > <label> > <contact> > <first-name>Erik</first-name> > <last-name>Bruchez</last-name> > [hidden email] > <phone>6505555555</phone> > </contact> > </label> > </item> > </exist:result> > > > > Example: that does not work.( using My form) > > HTTP Service > > Resource URL: > > http://localhost:8080/orbeon/exist/rest/db/orbeon/fr/orbeon/cost/data > > Method: POST > Serialization: XML > > Request BODY: > > for $c in /form/cost return element item { > element label {$c} > } > > > Results > <exist:result xmlns:exist="http://exist.sourceforge.net/NS/exist" > exist:hits="0" exist:start="1" exist:count="0"/> > > > So I am sure I am missing something fundamental and has not clicked yet. > Was hoping someone could point me in the right directions. > > > > > > > > -- > View this message in context: http://discuss.orbeon.com/Newbie-to-Orbeon-tp4659845.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 |
Free forum by Nabble | Edit this page |