Connectivity MultiValue DBMS

 
 
Nebula Research and Development

Add-On Components for FlashCONNECT cont'd.

Note : These pages are no longer active. Please reset your bookmarks and visit our current Products page.

Sample 1

These HTML templates might be used to create the output shown in Example 1.

This first template is used by all pages for a common look and feel.
master.headfoot.htm
<html>
<head><title>##title##</title></head>
<body>
<center>Big Computer Company</center>
##content##
<center>Have a Nice Day</center>
</body>
</html>

This second template contains HTML sections for sales orders. Note that the major table contains 3 columns for summary information. The last row of the major table is stretched into a single column which contains another table with all of the detail. This is what allows the detail to show 5 columns.:
salesorder1.htm
<!--tablestart-->
<table border=1 bgcolor="#cccccc">
<!--/tablestart-->

<!--summary-->
<tr>
<td colspan=3 align=center>Sales Order</td>
<td>Order ##orderid##</td>
<td>Ship Date : #shipdate##</td>
<td>Order Total : ##total##</td>
</tr>
<tr>
<td colspan=3>
<table> <!-- starting a nested table here for the detail -->
<!--/summary-->

<!--detailheader-->
<tr>
<td>Line#</td>
<td>Prod ID</td>
<td>Description</td>
<td>Qty</td>

<td>Amount</td>
</tr>
<!--/detailheader-->

<!--detailitem-->
<tr>
<td>##line##.</td>
<td>##id##</td>
<td>##desc##</td>
<td>##qty##</td>
<td>##amt##</td>
</tr>
<!--/detailitem-->

<!--tabledone-->
</table> <!-- end of nested table -->
</td>
</tr>
</table>
<!--/tabledone-->

With those templates, the FlashCONNECT developer using BASIC would have code that looks something like this:
call w3HtmlInit("","")
subs = "##title##" : char(253) : "Sales Order"
call w3HtmlHeading("master",subs)
call w3HtmlInsertSection("salesorder1.htm","","tablestart")

Generate.Summary: *
subs = …
call w3HtmlInsertSection("salesorder1.htm",subs,"summary")
call w3HtmlInsertSection("salesorder1.htm","","detailheader")
Generate.Detail: *
for itemnum = 1 to numdetaillines
subs = …
call w3HtmlInsertSection("salesorder1.htm",subs,"detailitem")
next itemnum
call w3HtmlInsertSection("salesorder1.htm","","tabledone")
call w3HtmlFooting("","")
return

 

© 2007 Nebula Research and Development

 
 

Home | About Us | News | FAQ | Products
Services | Articles | Contact Us |Search Site

E-mail for Product and Service inquiries.
Please report site issues to . Thank you!