Hi all!
Xforms and xsltforms are awesome! Thanks for the work on it.
I had a problem using them while creating an application which helps in analyzing the email traffic of employees.
The desired behaviour of the attached form would be:
If I select an employee, only his/her emails are shown.
Bug #1
If I select "employee B" (has 3 emails), after this I select "employee A" (has 2 email summaries), the last email of "employee B" remains in the repeat erroneously.
Bug #2
If I click in the rows of the repeat, the first row is populated by the row I clicked on.
I tested it on Firefox 52 and XSLTForms 1.0 (647). I am a little bit confused. Are these bugs, or I am just missing something with my code? Many thanks!
Here is my code:
<?xmlversion="1.0"encoding="iso-8859-2"?><?xml-stylesheethref="xsltforms/xsltforms.xsl"type="text/xsl"?><?xsltforms-optionsdebug="no"?><h:htmlxmlns:h="http://www.w3.org/1999/xhtml"xmlns="http://www.w3.org/2002/xforms"xmlns:ev="http://www.w3.org/2001/xml-events"><h:head><modelid="model_data"><instanceid="iEmployees"><employeesxmlns=""><employeeid="emp_a"nev="employee A"><emaildate="1 May 2018"subject="1st email to Emp A"></email><emaildate="2 May 2018"subject="2nd email to Emp A"></email></employee><employeeid="emp_b"nev="employee B"><emaildate="1 May 2018"subject="1st email to Emp B"></email><emaildate="2 May 2018"subject="2nd email to Emp B"></email><emaildate="3 May 2018"subject="3rd email to Emp B"></email></employee></employees></instance><instanceid="iSession"><dataxmlns=""><employeeid=""/></data></instance></model></h:head><h:body><select1ref="instance('iSession')/employee/@id"appearance="minimal"><label>Employee:</label><itemsetnodeset="instance('iEmployees')/employee"><labelref="@nev"/><valueref="@id"/></itemset></select1><h:br/><groupref="instance('iEmployees')/employee[@id=instance('iSession')/employee/@id]"><h:table><h:tr><h:th>date</h:th><h:th>subject</h:th></h:tr><repeatnodeset="email[parent::employee[@id=instance('iSession')/employee/@id]]"id="repeatLevel"><h:tr><h:td><inputref="@date"></input></h:td><h:td><inputref="@subject"></input></h:td></h:tr></repeat></h:table></group></h:body></h:html>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all!
Xforms and xsltforms are awesome! Thanks for the work on it.
I had a problem using them while creating an application which helps in analyzing the email traffic of employees.
The desired behaviour of the attached form would be:
If I select an employee, only his/her emails are shown.
Bug #1
If I select "employee B" (has 3 emails), after this I select "employee A" (has 2 email summaries), the last email of "employee B" remains in the repeat erroneously.
Bug #2
If I click in the rows of the repeat, the first row is populated by the row I clicked on.
I tested it on Firefox 52 and XSLTForms 1.0 (647). I am a little bit confused. Are these bugs, or I am just missing something with my code? Many thanks!
Here is my code:
Hi Robert,
This issue has been fixed with rev. 648.
XSLTForms 1.1 has just been uploaded to ease download process.
Thank you for your feedback!
--Alain
Hi Alain,
it works now. Thank you for your quick response!
Robert