[Top] [Prev] [Next] [Bottom]
[Contents]
SaPopulateOptionSelect
Populates option items with data.
#include \Q\QSaRnHtml.h''
void SaPopulateOptionSelect(Widget list, XtPointer
client_data, SaCallbackStruct
*cbs);
Arguments
- list
- Not used.
- client_data
- pointer to selected option.
- cbs
- SaCallbackStruct callback structure containing the data.
Return Values
None.
Populates option items with data. When using this call through use of the Object Bind Editor and an HTML template, the template fragment should look like this:
<SELECT NAME=''Authors''>
##Sa_authors##
</SELECT>
This call assumes that the select has been declared in the HTML template. This will produce one list item for each row in cbs. If zero rows are returned an empty list item will be generated. If more than one column is bound to the site, then each row will consist of columns concatenated. The columns are aligned by padding with spaces. They will only look aligned to the user if the list item is within <PRE> </PRE>
tags. Also, the value retrieved and the value seen by the user are the same.
/** this ad-hoc example can be used without templates **/
SaCallbackStruct *cbs;
cbs = SaExecSQL("CEZANNE", "pubs2", SGESYBASE,
"select * from authors");
/***** print html, select, and option item headers *****/
SaPopulateOptionSelect(NULL, NULL, cbs);
/*** print out end of select, option item 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.