Full name
David Dow
Submitted by David on Thu, 11/15/2012 - 14:53
Forums

Hi,

Is it possible to have variable markers or are they only static / hardcoded ?

Regards,
David.

Niels Liisberg

Fri, 11/16/2012 - 13:26

HI David;

Exelent question - and the answer is yes:) If you just have ther marker name in a variable - it works:

 

markerName = 'myMarker';

SetMarker(markerName: '123');

 

Also you can build arrays like that:

 

for i = 1 to 10;

  setMarker('arr'+ %char(i): 'value');

endfor;

 

 

Niels,

How would I place the markers in the HTML ?

For example if a have a table with a variable number of rows, how do I set a different marker name on each row ?

Can I do <%$ <%=markerVar%> %> ?

Regards,
David.