Alessandro Vernet wrote:

--- David Sinclair <[EMAIL PROTECTED]> wrote:


When in an xforms:repeat, is there a way to do a setvalue to the index of the current row (in a similar way that an xforms:delete can). I want to do something like:
<xforms:setvalue nodeset="/form/ui/delete-index">index('documentSet'')</xforms:setvalue>



Yes, try:

   <xforms:setvalue nodeset="/form/ui/delete-index"
       value="index('documentSet')"/>

The content of the "value" attribute is an XPath expression.

Alex



In a similar vein, I also want the label for an action to be based on the docset. At the moment I have something like:

<xforms:repeat nodeset="/form/document/pea/attachedDocuments/document
[category='costings-document']" id="docSet">


<xforms:submit xxforms:appearance="link">
<xforms:label>View</xforms:label>
<xforms:setvalue ref="/form/ui/action">view-document</xforms:setvalue>
<xforms:setvalue ref="/form/ui/view-document-index" value="index('docSet')"/>
</xforms:submit> </xforms:repeat>


But I really want the label to be the name of the document ... the xpath would be something like: /form/document/pea/attachedDocuments/document[category='costings-document'][indewx('docSet')]/displayname

Is this possible?

David.

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
orbeon-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/orbeon-user




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
orbeon-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to