[Top] [Prev] [Next] [Bottom] [Contents]

SaPopulateTable

Populates a Table Element with data. Note: Not all HTML browsers support the table element. HTML Version 3 supports Table Elements; Version 2 does not.

Synopsis

#include "SaRnHtml.h"
void SaPopulateTable(Widget list, 
				XtPointer client_data, 
				SaCallbackStruct *cbs);

Arguments

list
Not used.
client_data
Not used.
cbs
SaCallbackStruct callback structure containing the data.

Return Values

None.

Description

Populates a Table Element with data. When using this call through use of the Object Bind Editor and an HTML template, the template fragment should look like this:

<TABLE BORDER>
<CAPTION>Authors</CAPTION>
##Sa_AuthorTableSite##
</TABLE>
That is, the call assumes that the Table element is declared in the HTML template. This call will fill in the Table Column headers with the column labels returned by the Data Object, and will produce one table row for each row in cbs. Note: It may not make much sense "populating" a table element in a ##Sa_BeginLoop## and ##Sa_EndLoop## section, since this will make a table element of one row for each returned row in cbs.

Example

/*** the following ad-hoc example can be used without templates 
**/
SaCallbackStruct *cbs;
cbs = SaExecSQL("CEZANNE", "pubs2", SGESYBASE, "select * from 
authors");
/***** print html and table headers *****/
SaPopulateTable(NULL, NULL, cbs);
/*** print out end of table and html headers ***/
SaFreeCbs(cbs);
Note: This call is generated automatically by Sapphire/Web through use of the Results Detail Dialog.

See Also



[Top] [Prev] [Next] [Bottom] [Contents]

info@bluestone.com
Copyright © 1997, Bluestone. All rights reserved.