Hi Erik,
thank you! It simply works with '$'-prefix now.

  ~Dieter



  >  Dieter,
  >   
  >   I would like to hear Alex"s confirmation, but I suspect 
  >  that this may be due 
  >   to the way the XForms instances are encoded in URLs. 
  >  Passing a parameter named 
  >   id=123 may be mistakenly interpreted by the XForms 
  >  engine, which modifies your 
  >   instance.
  >   
  >   If this is the case, it is problematic and we will have 
  >  to fix it. In 
  >   principle, if you just do a get on the 
  >  /admin/clubs/club?id=123 anyway, the 
  >   XForms engine should not try to modify the instance. It 
  >  should only try to 
  >   reconstitute an instance when a form is submitted.
  >   
  >   In the meanwhile, can you try to name your parameter $id 
  >  to see if that
  >  
  >   changes the result?
  >   
  >   -Erik
  >   
  >   Dieter Stein wrote:
  >   
  >   > 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