-
X.dbFormTemplate
I recently installed the latest eval. of ASPdb and everything
works, with the exception of dbFormTemplet
I created at 2 field Access Database for simple testing purposes.
The following is my code:
ASP Page:
<Center>
<%
Set X=Server.CreateObject("Asp.DB"
X.dbmdb=Server.MapPath("names.mdb"
X.dbUnit= 1
X.dbMode="dual-horiz"
X.dbSQL = "Select * from names"
X.dbImageDir="..images"
X.DbGridInc="10"
X.dbGridDisplayFlds="1,2"
X.dbFormDisplayFlds="1,2"
X.dbNavigation="top"
X.dbNavigationItem="update,add,delete"
X.dbNavigationIcon="std"
X.dbFormTemplate="displayform.htm"
X.ASPdb
%>
</center>
Display Form:
<TABLE border=2>
<TR>
<TD align=right bgcolor="#FFFF00"><b>First Name</b></TD><TD bgcolor="#FFFF00">[[fname]]</TD>
<TD align=right bgcolor="#00FFFF"><b>Last Name</b></TD><TD bgcolor="#00FFFF"><font face="Abadi MT Condensed">[[lname]] </font></TD>
</TR>
</table>
Is there something I am doing wrong ?
If I run the code without Referencing the Display Form, everything
works fine.
If I use the x.dbformtemplet line of code, all I get is the Grid.
-
X.dbFormTemplate (reply)
try again.. the template is fuuly releae intot eh eval version several days ago..
FK
------------
bob at 5/4/01 8:29:23 PM
I recently installed the latest eval. of ASPdb and everything
works, with the exception of dbFormTemplet
I created at 2 field Access Database for simple testing purposes.
The following is my code:
ASP Page:
<Center>
<%
Set X=Server.CreateObject("Asp.DB"
X.dbmdb=Server.MapPath("names.mdb"
X.dbUnit= 1
X.dbMode="dual-horiz"
X.dbSQL = "Select * from names"
X.dbImageDir="..images"
X.DbGridInc="10"
X.dbGridDisplayFlds="1,2"
X.dbFormDisplayFlds="1,2"
X.dbNavigation="top"
X.dbNavigationItem="update,add,delete"
X.dbNavigationIcon="std"
X.dbFormTemplate="displayform.htm"
X.ASPdb
%>
</center>
Display Form:
<TABLE border=2>
<TR>
<TD align=right bgcolor="#FFFF00"><b>First Name</b></TD><TD bgcolor="#FFFF00">[[fname]]</TD>
<TD align=right bgcolor="#00FFFF"><b>Last Name</b></TD><TD bgcolor="#00FFFF"><font face="Abadi MT Condensed">[[lname]] </font></TD>
</TR>
</table>
Is there something I am doing wrong ?
If I run the code without Referencing the Display Form, everything
works fine.
If I use the x.dbformtemplet line of code, all I get is the Grid.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|