xforms:bind nodeset does not work if you have more than one instance in model

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

xforms:bind nodeset does not work if you have more than one instance in model

vernekap
xforms:bind nodeset does not work if you have more than one instance in model.

I have attached 2 files
datatable.xhtml which comes in sandbox application
and
datatablewith2instances.xhtml : modified slightly to add one more instance in the same model. This instannce is not used anywhere in model or in body. After adding the new instance to model, the xhtml does shows empty tables.

with regards
Pralhad
Reply | Threaded
Open this post in threaded view
|

Re: xforms:bind nodeset does not work if you have more than one instance in model

venkata subrahmanyam
Hi,
When we are having multiple instances in a model we must mention the instance name also when refering in xhtml.

by default it will take the first instnace. but in example it is in seconds instance.
So try to print the controsl using complete path like
<xforms:repeat nodeset="instance('instance')/record">
       <xforms:output ref="AAA"/>
etc..........

</xforms:repeat>