I have a RTF template with a column EVENT. I want to display the events in the EVENT column as 'event-1", 'event-2', etc... at run time. I tried using the following codes in the text/form field but none are working and instead giving me the same number, example-event -1, event -1, .... and so on. Please help!
CODE 1:
?for-each-group:current-group();./EVENTPT?
xsl:value-of select="position()"/
CODE 2:
?xdoxslt:set_variable($_XDOCTX, 'V_SNO', 1)?
?xdoxslt:get_variable($_XDOCTX, 'V_SNO')?
?xdoxslt:set_variable($_XDOCTX, 'V_SNO', xdoxslt:get_variable($_XDOCTX, 'V_SNO') +1)?
CODE 3:
?xdofx:if "position()" = "last()" then "last()"
else
("position() + 1")
end if?
If there is any other way I can get the sequence number please post your answers.
Thanks in advance.