Hi
The following is the part of my codes .
<xforms:send submission="enquiry"/>
…
This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Kevin,
It depends what build of OPS you are using. With the latest nightly builds, xforms:output in your xforms:label should work. Before referring to "name" as you do, first try something like <xforms:output value="'This is my test value'"/> to see if xforms:output is being interpreted. -Erik Zhou, Kevin wrote: > > > Hi > Who can give me some tips on how to generate the links with a dynamic > label ? Is it possible in OPS? Or acturally it's alternative between > xform or xslt. If do ,please give me the idea about it! > > The following is the part of my codes . > <xforms:repeat nodeset="instance('instance')/items/contact" > id="contactRepeat"> > ….. > <xforms:trigger appearance="xxforms:link"> > <xforms:label> > <!-- > how to fill here with the data from database? ,my code > is <xforms:output ref="name"/> > but it does not work ,so could you give me the way to > resolve it out .thanks a lot. > --> > </xforms:label> > <xforms:action ev:event="DOMActivate"> > <xforms:setvalue ref="instance('instance')/form/id" > value="instance('instance')/items/contact[index('contactRepeat')]/id"/> > > <xforms:send submission="enquiry"/> > </xforms:action> > > … > </xforms:repeat> > Cheers > *Kevin* > > > > *This email and any attached files are confidential and copyright > protected. If you are not the addressee, any dissemination of this > communication is strictly prohibited. Unless otherwise expressly agreed > in writing, nothing stated in this communication shall be legally > binding.* <http://www.blackspider.com/> > > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by Zhou, Kevin
you can use a ref attribute for xforms:label and reference an element or attribute in an xforms:model xml instance, for example
<xforms:label ref='instance('triggers")/trigger1/label'/> >>> [hidden email] 07/26/06 3:20 PM >>> Hi Who can give me some tips on how to generate the links with a dynamic label ? Is it possible in OPS? Or acturally it's alternative between xform or xslt. If do ,please give me the idea about it! The following is the part of my codes . <xforms:repeat nodeset="instance('instance')/items/contact" id="contactRepeat"> ..... <xforms:trigger appearance="xxforms:link"> <xforms:label> <!-- how to fill here with the data from database? ,my code is <xforms:output ref="name"/> but it does not work ,so could you give me the way to resolve it out .thanks a lot. --> </xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:setvalue ref="instance('instance')/form/id" value="instance('instance')/items/contact[index('contactRepeat')]/id"/> <xforms:send submission="enquiry"/> </xforms:action> ... </xforms:repeat> Cheers Kevin This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. -- This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by Zhou, Kevin
<xforms:label ref="name"/>
Should work
Ryan
Puddephatt
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |