Thread: [Xsltforms-support] Error in select1 with itemset loaded in submission on event
Brought to you by:
alain-couthures
From: Javier D. <jd...@tc...> - 2012-04-16 23:50:13
|
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 ************************************************************************************************************************************************ *La información contenida en este mensaje de correo electrónico es confidencial y puede revestir el carácter de reservada. * *Está dirigida exclusivamente a la persona destinataria. * *El acceso o cualquier uso por parte de cualquier otra persona de este mensaje no están autorizados y pueden ser ilegales.* *Si no es Ud. la persona destinataria, le rogamos que proceda a borrarlo. * *The information in this e-mail is confidential and may be legally privileged. * *It is intended solely for the addressee. * *Access or any use by any other person to this Internet e-mail is not authorised and may be unlawful. * *If you are not the intended recipient, please delete this e-mail. * ************************************************************************************************************************************************ |
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 > > |
From: Alain C. <ala...@ag...> - 2012-04-18 06:00:26
|
Hello Javier, It works if you associate the send action to xforms-model-construct-done instead. With xforms-ready, those select controls are first out of range and the node values are erased (which is an XSLTForms issue...). Thank you for your feedbacks! -Alain Le 17/04/2012 23:09, Javier Díaz a écrit : > Hello Alain, > > thank you for your help. > > Changing it, select works and you can select any value from itemset, > but default values are not chosen as default in select: > > <EQUIPO xmlns=""> > <TARJETA> > *<MODELO>371111</MODELO>* > </TARJETA> > <TARJETA> > *<MODELO>371110</MODELO>* > </TARJETA> > </EQUIPO> > > Best Regards, > Javier |