:: Forum >> Version 1 >>

Link on a column with querystring based on another column from xml data

hi,

I want to display on the 2nd col of my grid (5 columns), a link (template) like href is:
http://www.mysite.com/?id=XXX

with XXX is data from first col

my xml data is:
...
<
data>
  <
id>12345</id>
  <
text>my text</text>
  ...
</
data>
...
 
Thanks for your help.
Lionel.
Lionel
Thursday, June 16, 2005
Here is the solution :

var link = new Active.Templates.Link
link.setAttribute("href", function() { 
    var 
text this.getDataProperty("value",0);
    return 
text
}); 

obj.setColumnTemplate(link1);
 
Lionel
Thursday, June 16, 2005



This topic is archived.

Back to support forum

Forum search