dynamically sorted table

S

SK

I followed the links to create a dynamically sorted table:
http://www.frontpages-web-hosting.net/frontpage.Support/frontpage.hta_7.htm
and
http://www.frontpagemagic.com/DRW/Format/DynamicSorting/Index.asp

I followed the directions to the letter and I get the following error:

Unable to find operator in query string. Query string currently is SELECT
CustomerId, CompanyName, ContactName, ContactTitle FROM Customers ORDER BY
::SortColumn:: ASC

even though I am supplying a valid column name. This is probably related to
the mysterious 817029 error that I have requested help with to no avail.

My earlier post on that problem is here:
http://www.google.com/groups?hl=en&...4EctnmIEHA.2688%40tk2msftngp13.phx.gbl&rnum=3

I think there is an installation problem with Frontpage 2003, since these
examples work for some people and not others.

Just needed to vent. I shouldn't bother with the time-saving DRW, but I
just can't believe that the DRW can't be used for these simple pages.

Sue
 
J

jonathan

I totally agree Sue!!!!!

I have used the DRW to build an asp section to an intranet site as awell as
wanting to update records - and it just f***s everything!

All I get is error after error! FP 2003 needs a re-think Bill! We buy it
and it doesn't work (dreamweaver does!!!!!!!)

Jonathan
 
S

SK

Thanks to everyone who replied. Unfortunately none of the suggestions
helps.

I thought I would post the code here to see if anyone else can run it. If
they can, it points to a FP 2003 installation issue as I suspect. Either
that or it is because I am using a ODBC System DSN to a SQL 2000 database.
Perhaps because I am using FP 2003 on a Windows 2003 Server?

I know ASP, SQL, I just would rather use the product to do its job. Stuff I
know others have used successfully as the product is intended to be used.

I am posting the code. Will try an reinstall FP 2003 this morning, though I
don't think this will fix it.

Thanks for all the suggestions.

Sue
----------------------------------------------------------------------------
-------------------------------------------
<html>

<head>
<% ' FP_ASP -- ASP Automatically generated by a Frontpage Component. Do not
Edit.
FP_CharSet = "windows-1252"
FP_CodePage = 1252 %>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>

<body>

<table width="100%" border="1">
<thead>
<tr>
<th ALIGN="LEFT"><b>CompanyName</b></th>
<th ALIGN="LEFT"><b>ContactName</b></th>
<th ALIGN="LEFT"><b>ContactTitle</b></th>
</tr>
</thead>
<tbody>
<!--webbot bot="DatabaseRegionStart"
s-columnnames="CompanyName,ContactName,ContactTitle"
s-columntypes="202,202,202" s-dataconnection="Database1"
b-tableformat="TRUE" b-menuformat="FALSE" s-menuchoice s-menuvalue
b-tableborder="TRUE" b-tableexpand="TRUE" b-tableheader="TRUE"
b-listlabels="TRUE" b-listseparator="TRUE" i-listformat="0"
b-makeform="FALSE" s-recordsource
s-displaycolumns="CompanyName,ContactName,ContactTitle" s-criteria s-order
s-sql="SELECT CompanyName, ContactName, ContactTitle FROM Customers ORDER
BY ::SortColumn:: ASC" b-procedure="FALSE" clientside suggestedext="asp"
s-defaultfields="SortColumn=CompanyName" s-norecordsfound="No records
returned." i-maxrecords="256" i-groupsize="0" botid="0"
u-dblib="_fpclass/fpdblib.inc" u-dbrgn1="_fpclass/fpdbrgn1.inc"
u-dbrgn2="_fpclass/fpdbrgn2.inc" tag="TBODY" preview="&lt;tr&gt;&lt;td
colspan=64 bgcolor=&quot;#FFFF00&quot; width=&quot;100%&quot;&gt;&lt;font
color=&quot;#000000&quot;&gt;This is the start of a Database Results
region.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;" startspan --><!--#include
file="_fpclass/fpdblib.inc"-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database
Results component on this page is unable to display database content. The
page must have a filename ending in '.asp', and the web must be hosted on a
server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="SELECT CompanyName, ContactName, ContactTitle FROM Customers ORDER
BY ::SortColumn:: ASC"
fp_sDefault="SortColumn=CompanyName"
fp_sNoRecords="<tr><td colspan=3 align=""LEFT"" width=""100%"">No records
returned.</td></tr>"
fp_sDataConn="Database1"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&CompanyName=202&ContactName=202&ContactTitle=202&"
fp_iDisplayCols=3
fp_fCustomQuery=True
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="58127" --><tr>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="CompanyName,ContactName,ContactTitle" s-column="CompanyName"
b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside
b-MenuFormat preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;CompanyName&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
startspan --><%=FP_FieldVal(fp_rs,"CompanyName")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="29451" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="CompanyName,ContactName,ContactTitle" s-column="ContactName"
b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside
b-MenuFormat preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;ContactName&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
startspan --><%=FP_FieldVal(fp_rs,"ContactName")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="29292" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="CompanyName,ContactName,ContactTitle" s-column="ContactTitle"
b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside
b-MenuFormat preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;ContactTitle&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
startspan --><%=FP_FieldVal(fp_rs,"ContactTitle")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="32621" --></td>
</tr>
<!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE"
b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="0"
clientside tag="TBODY" preview="&lt;tr&gt;&lt;td colspan=64
bgcolor=&quot;#FFFF00&quot; width=&quot;100%&quot;&gt;&lt;font
color=&quot;#000000&quot;&gt;This is the end of a Database Results
region.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;" startspan --><!--#include
file="_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="62730" --></tbody>
</table>

</body>

</html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top