Changing input value after Soap request

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Changing input value after Soap request

Patrick Hira
Dear All,

I have created an XForm which triggers a Soap call to a web service after a zipcode and a housenr is filled in. 

The Soap call is triggered. 

Though what I want is a third field to be filled with the response of the web service call.

Now I have downsized my case to just filling a fixed value into a field.

x163572765 is the input box I want to fill
I also created an extra input field and an output field to add the value.

 <xforms:action ev:event="xforms-submit-done"
                    ev:observer="x163572765-retrieveAdres-submission"
                    context="instance('fr-service-response-instance')">
                    <xxforms:variable name="straatnaamResponse" value="test_value"/>

                    <xforms:setvalue ref="instance('fr-form-instance')//input-x163572765"
                        value="$straatnaamResponse"/>

                    <xforms:setvalue ref="instance('fr-form-instance')//x177571588"
                        value="$straatnaamResponse"/>

                    <xforms:setvalue ref="instance('fr-form-instance')//x179246672"
                        value="$straatnaamResponse"/>
</xforms:action>

I don't know what Iam missing. The value of the input field stays empty. 
--

Kind Regards,

Patrick Hira

E: [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].
Reply | Threaded
Open this post in threaded view
|

Re: Changing input value after Soap request

fritz
if test_value is a fixed string value you could try  addind '..',
<xxforms:variable name="straatnaamResponse" value="'test_value'"/>

Fritz