Hi Mikko,
One way is create some StaticText via the wizard, and place it inside an <A
HREF= > tag in your HTML template. Here's an e.g. of using static text for the
URL and Description:
<A HREF=**stURL**>**stURLDesc**</A>
Then at runtime, do a setDisplayFieldValue to set the value of these Static Text
with the desired HREF info. Here's some code when theHREF are in a repeated.
In the rpt_onBeforeRowDisplayEvent do this:
// Get handle to repeated
CSpRepeated rp1 = (CSpRepeated) event.getSource();
// Set Static text to create the HREF syntax
rp1.setDisplayFieldValue ("*stURL", new CSpString
("\"" + urlProtocol + "://" + urlHostname + "/" + urlPath + "\""));
rp1.setDisplayFieldValue ("*stURLDesc", new CSpString (desc));
Janet
(Embedded
image moved [EMAIL PROTECTED]
to file: 04/26/99 09:45 AM
pic25989.pcx)
To: [EMAIL PROTECTED]
cc: (bcc: Janet Traub/IS/SSC/THD)
Subject: [ND] How to change href's text dynamically?
Hi,
What is the easiest way to change href's( CSpCommonHref() ) text
dynamically?
Any sample code?
Thank you,
Regards
Mikko
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]
pic25989.pcx