Web+ Tutorial

Previous

  Contents  

Next

Lesson 6.3 - Printing query results in tabular format

Description
Prints information from a query in tabular format.
Syntax
<webPrintTable [QUERY=QueryName] [FILE=FileName]
    [DELIMITER=DelimiterString] [MAXROWS=MaximunNumberOfRows] [COLSPACING=NumberOfColumns] [COLHEADERS] [HEADERLINES=NumberOfLines] [HTMLTABLE [WIDTHSTYLE={Percent|Pixel}]]>
    ...
</webPrintTable>
<webPrintTableCol HEADERS=HeaderName [WIDTH=ColumnWidth]
    [ALIGN={Left|Center|Right}] TEXT=#Text#>

Agument
/tutorial/argument/arg29.wml
Example
<WebDBQuery Name="View1" DataSource="AddressBK"
    SQL=" Select * From Addresses">

<WebPrintTable Query="View1" HTMLTable border>
<WebPrintTableCol Header="First Name" Width=25 Align=Left Text=#FirstName#>
<WebPrintTableCol Header="Last Name" Width=25 Align=Left Text=#LastName#>
<WebPrintTableCol Header="NickName" Width=25 Align=Center Text=#NickName#>
<WebPrintTableCol Header="Work Phone" Width=20 Align=Center Text=#WorkPhone#>
</WebPrintTable>

Exercise
This example is for your reference. You can try it on your own system.

You can try out some Web+ code of your own here.

Previous

  Contents  

Next

 

Copyright © 2009 Webplus, Inc. (talentsoft). All Rights Reserved.
webmaster@webplus.com