
Originally Posted by
neilw
That is always helpful.
All I can think in this case is that you didn't save the template to a template page. Meaning, you needed to:
1) Go to "Templates"
2) Click "New page"
3) Paste in TSTable
4) Save
That is the only way it will be properly saved "as a template". When you go to "Templates", do you see TSTable in the list? If so, and you still get the error, then definitely post back with more info.
Hello, I'm having the same problem as Jonverve. Mine also works when I put all of the code in the same page as my table. My code is also stored in the templates area and the template shows up in my Insert Template tool drop-down. I've included my source text:
Code:
<h1>Table Test</h1>
<pre class="script">
TSTable();
stolenvehicles.table("SELECT top 25 Color1 as Color, YR as Year, Make, Model,
Lic_Plate as License, Location, convert(varchar,RPT_Date,1) as Date FROM stolens
where recovered=0 order by rpt_date desc") </pre>
Also, when I have the code in the same page, the text of the column titles have a border around them, which looks very odd as it is inside the border the cell of the table and it goes right through the sort button...