Alex
After I obtain my new instance data from the web service call into the backend system, I use the following processor to update the instance data. (or I that is what I meant it to do) as the next step in the pipeline.
<p:processor name="oxf:xupdate" >
<p:input name="data" href="#data_instance" />
</p:input>
<p:input name="new" href="#data_ws"/>
<p:input name="config">
<xu:modifications>
<xu:variable name="newIns" select="document('#new')"/>
<xu:update select="/instance/document/event/eventnumber">
<xu:value-of select="$newIns/event/eventnumber"/>
</xu:update>
<xu:update select="/instance/document/event/eventdescription">
<xu:value-of select="$newIns/event/eventdescription"/>
</xu:update>
</xu:modifications>
</p:input>
<p:output name="data" id="data_output" />
</p:processor>
<p:processor name="oxf:identity">
<p:input name="data" href="#data_output" />
<p:output name="data" ref="data"/>
</p:processor>
Thanks,
Brian Bacsu
| Alessandro Vernet <avernet @orbeon.com> Sent by: orbeon-user-admin 11/22/2004 01:31 PM
|
To: [EMAIL PROTECTED] cc: Subject: Re: [orbeon-user] RE: Issue obtaining Instance data from form |
Brian Bacsu wrote:
> I am having a problem updating the Instance data from a submitted form.
> The action item it setting properly (using <xforms:setvalue>), but none
> of the other data seems to be updating into the Instance data , when it
> arrives in the xpl model file. After the form is submitted, the instance
> data is updated through a web service call, and then the same form is
> displayed again, with this new data. The form is displayed, but without
> the updated data. I must be missing something about how the Instance
> data is updated, in both directions.
Brian,
I am missing some information here to really answer your question. You
are saying that you update the instance with a Web service call, and
that the UI still displays data from the "old" instance. Can you tell
me how you update the instance, based on the document returned by the
Web service?
Alex
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user
