Hi,
This is the first time ever posting to this site. Im fairly new with this technology and am in DIRE need for some help here.
I am doing a multirow select statement in the tcl and displaying the results with the <multiple> tag. I am selecting out of a database some country information where country = Country1 or country = Country2 or country = Country3.
lets say for example, I get six results, 2 for each country. What I need to do, is display the country name as a header above each country, then list the countrys results under the header. So, I would have three country headers with 2 results under each header. The problem is... the way I am trying to do this now is I have a current country variable and last country variable. The logic of what I want to do is... only display the current country variable if it is not equal to the last country variable. If the current country is equal to the last country, do not display a header, if the current country is not equal to the last country, then display the header.
so.... through each iteration of the rows in the <multiple> tag, I want to:
<%= [set lastcountry $currentcountry] %>
this code works outside of the <multiple> tag, but when I put it inside the <multiple> tag it is just displaying
= [set lastcountry $currentcountry]
for each iteration inside the loop. Any ideas on what I need to do?