PDF and Word docs

User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

PDF and Word docs

Post by mark »

Thanks.

In the search function move the <showform> call to after the <IF $count eq 1> section that sets $indexcount.
jan.punter
Posts: 54
Joined: Thu Jan 16, 2003 9:17 am

PDF and Word docs

Post by jan.punter »

Thanks again Mark, it solved it but it was now changing $indexcount somewhere in <showform>, so before it was showing the listing of documents it changed the indexcount back again to its old value. Below is the code I've used to solve this problem by using a temporary variable and assigning this to indexcount.

<IF $count eq 1>
<SQL "select count(*) ic " $sql></SQL>
<$indexcount=$ic>
</if>
<$totalCount = $indexcount>
<showform refine=y>
<$indexcount = $totalCount>

Thanks again, Jan
Post Reply