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

SaPopHorzHotList

Populates an Anchor with display data and arguments for primary key(s).

Synopsis

#include \Q\QSaRnHtml.h''
void SaPopHorzHotList(Widget list, 
					XtPointer client_data, 
					SaCallbackStruct *cbs);

Arguments

list
Not used.
client_data
Typecast to int, specifies how many primary key columns to use.
cbs
SaCallbackStruct callback structure containing the data.

Return Values

None.

Description

Populates an Anchor with display data and arguments for primary keys. The client_data is typecast to an integer and used to determine how many primary keys are to be put into the HREF dynamically. These are used as input arguments to the bound Anchor bloc k. The remaining columns are used to display to the user. An Anchor is created for each row returned. All Anchors are displayed on one line. The primary key(s) must be the first in order. If the Stored Procedure or DSQL Object does not do this for you, you can order the columns by using the Results Detail Dialog. The following fragment shows how to use this call:

##Sa_Authors##<A HREF="http://cezanne/cgi-
bin//popcall.cgi?FNC=authors__Asamp_html">TEMP</A>
Note: The HREF has already been bound as an Activator. The data site, Authors, should be populated with this function. TEMP will be replaced with the display columns enclosed in square brackets. The prime key column(s) are appended to the HREF and will be processed as Arguments by the cgi. This is done for each row.

Example

/** this ad-hoc example can be used without templates **/
SaCallbackStruct *cbs;
cbs = SaExecSQL("CEZANNE", "pubs2", SGESYBASE, 
						"select * from authors");
/*** calls to set the beginning HTML context ***/
SaPopHorzHotList(NULL, NULL, cbs);
/*** calls to complete the HTML context ***/
SaFreeCbs(cbs);
Note: This call is generated automatically using the Results Detail Dialog.

See Also



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

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