Re: xforms:setvalue from XPL pipeline on xxforms:instance value

Posted by Olivier Thery on
URL: https://discuss.orbeon.com/xforms-setvalue-from-XPL-pipeline-on-xxforms-instance-value-tp3018569p3024637.html

Hi Erik,

The instance 'ConversionRate-step' is in the same model as other instances and submission.
The submission 'ConversionRate-submission' calls an XPL pipeline, which fires a oxf:xforms-submission
in which there is the setvalue for the instance 'ConversionRate-step' .

Olivier

<xforms:model id="main-model">
		
	<!-- Instance with query parameters for calling the webservice -->
            <xforms:instance id="params">
	  <xi:include href="input:instance" xxi:omit-xml-base="true"/>
            </xforms:instance>
			
            <!-- Instance with response from the webservice -->
	<xforms:instance id="ConversionRate-response">
                <dummy/>
            </xforms:instance>
			
	<!-- Instance with response from the webservice -->
	<xforms:instance id="ConversionRate-step">
                <result>
		<step/>
	</result>
            </xforms:instance>
			
	<!-- Submission to our service that calls conversion rate webservice -->
	<xforms:submission ref="instance('params')" replace="instance"    instance="ConversionRateresponse"
                id="ConversionRate-submission" validate="false" method="post"
                resource="/currency-converter/services/ConversionRate"
                xxforms:show-progress="true"/>		
				
	</xforms:model>