#include "SaRnHtml.h"
void SaPopulateTableAll(Widget list, XtPointer client_data, SaCallbackStruct *cbs);
##Sa_AuthorTableSite##This call does not assume 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
. The client_data should be a pointer to a string which is used as the table element's caption.
##Sa_BeginLoop##
and ##Sa_EndLoop##
section, since this will make a table element of one row for each returned row in cbs
. This would not give the desired appearance. There would be one Table per row instead of all rows in one Table.
/*** the following ad-hoc example can be used without
templates **/
SaCallbackStruct *cbs;
cbs = SaExecSQL("CEZANNE", "pubs2", SGESYBASE, "select * from authors");
/***** print html headers *****/
SaPopulateTableAll(NULL, "Authors Info", cbs);
/*** print out end of html headers ***/
SaFreeCbs(cbs);