Help on link

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Help on link

Zhou, Kevin
Help on link

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.



--
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
Reply | Threaded
Open this post in threaded view
|

Re: Help on link

Erik Bruchez
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
Reply | Threaded
Open this post in threaded view
|

Re: Help on link

Tanya Gray (Oxford)
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
Reply | Threaded
Open this post in threaded view
|

RE: Help on link

Ryan Puddephatt
In reply to this post by Zhou, Kevin
Help on link
<xforms:label ref="name"/>
 
Should work
 

Ryan Puddephatt
Software Engineer
 

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

 


From: Zhou, Kevin [mailto:[hidden email]]
Sent: 26 July 2006 15:20
To: [hidden email]
Subject: [ops-users] Help on link



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.



--
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