-
level 2 custom template example
A lot of you folks are playing with the templates now. Hope you like it. Majority are still in the level 1 form/filter/edit replacement templates in which the field tags [[fieldname]] are corresponding to the ones in the Grid/Form. Pretty soon you'll start to desing your own template from scratch. The following is an example (CaseStudy 47 - New) as a reference.
File=C47.asp
<%
Set X=Server.CreateObject("AspDB.Y2K"
X.dbQuickProps="1;NWIND;Employees;dual-horiz;4;std;/images/;ACCESS;9;;;false;false"
X.dbDisplayLookUpList="(;|)ReportsTo||SELECT EmployeeID, FirstName & ' ' & Lastname as Name FROM Employees"
'Make id as currency
X.dbMagicCell="EmployeeID,,format=[currency]"
X.dbExportFlds="0,1,2,16"
X.dbOptions="ExportMagic=true"
X.ASpdbY2k
X.ASPdbSendTemplate("CustomTemplate.htm"
%>
File=CustomTemplate.htm
<Center><H3>Custom Template Demo</H3></Center>
EmployeeID: [[ASPdb_1_EmployeeID:S]]<BR>
LastName:[[ASPdb_1_LastName:S]]<BR>
FirstName:[[ASpdb_1_FirstName:S]]<BR>
ReportsTo:[[ASPdb_1_ReportsTo:S]]
Noticed that all the Magic and Lookup filters are honored !!!
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
|
|