Hi,
in my current project I'm using an XForms instance which is filled with
values from an SQL database.

page-flow.xml:
--------------
<page path-info="/admin/clubs/club"
xforms="/resources/admin/clubs/club/form.xpl" .../>


form.xpl:
---------
<p:processor name="oxf:sql">
   ...
   <sql:query>
      SELECT * FROM clubs
   </sql:query>
   <sql:results>
      <xf:model>
         <xf:instance>
            ...

Everything just works fine, as long as I do a static SQL query. But I
want to pass a request parameter like this: "/admin/clubs/club?id=123".
But this fails: a certain entry in the form (namely "action") is missing
(but it should be there!). For the request input I prepended a generator
like this:

   <p:processor name="oxf:request">
      <p:input name="config">
         <config>
            <include>/request/parameters</include>
         </config>
      </p:input>
      <p:output name="data" id="request"/>
   </p:processor>

   <p:processor name="oxf:sql">
      <p:input name="data" href="#request"/>
      ...
         <sql:query>
            SELECT * FROM clubs
            WHERE id = <sql:param type="xs:string"
                 select="/request/parameters/parameter[name =
'id']/value"/>
            ...

That looks good to me. Why does it fail?
Can anybody help?

Thanks
 ~Dieter



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to