Re: [Xsltforms-support] Error in select1 with itemset loaded in submission on event
Brought to you by:
alain-couthures
From: Alain C. <ala...@ag...> - 2012-04-17 19:47:00
|
Hello Javier, There is a mismatch with models because the submission is not defined in the same model as the replaced instance. I have to check the Recommendation. Could please try again with this: <xf:model id="TIPOS"> <xf:instance id="tipos-tarjetas"> <data xmlns=""> <TIPO_TARJETA> <IDELEMENTO>0</IDELEMENTO> <ETIQUETA>Seleccione...</ETIQUETA> </TIPO_TARJETA> </data> </xf:instance> <xf:submission id="getData" resource="data.xml" instance="tipos-tarjetas" method="get" mode="synchronous" replace="instance" serialization="none"> </xf:submission> <xf:action ev:event="xforms-ready"> <xf:send submission="getData"/> </xf:action> </xf:model> Thank you for your feedbacks! -Alain Le 17/04/2012 01:48, Javier Díaz a écrit : > Hello, > > we have an strange error with last version of xsltforms. Last version I > have checked it works ok is r372 and partially in r489. > > I send you a test case, if we are doing something wrong, please let us know. > > In the test case we have some data in a instance, and we have inside a > repeat node a select of this data whose itemset points to another > instance. This instance data is updated when "xforms-ready" event is > fired. Data from select it isn't updated when new data is loaded (it > works in r372 and r489, but doesn't in newer versions). Newer items > created after loading new data are ok. Also, we have in test case a > button to add new items that works in r372 and r537 but it dowesn't in > r489 (as it works in last revision it doesn't matter). > > Best Regards, > Javier > > |