[Top] [Prev] [Next] [Bottom]
[Contents]
SaPopulateMasterDetail
Populates data in a "group by" manner.
#include "SaRnHtml.h"
void SaPopulateMasterDetail(Widget list,
XtPointer client_data, SaCallbackStruct *cbs);
Arguments
- list
- Not used.
- client_data
- Typecast to int, specifies which column to group by.
- cbs
SaCallbackStruct
callback structure containing the data.
Return Values
None.
The client_data is typecast to an integer and used to determine column to group by. You should use an order by clause on this column in your Stored Procedure or DSQL Object. The remaining columns are used to display for the user. The group by column does appear with the other columns, but as a separate line of text when its value is changed. Its format is:
<BR><H2>column name : value</H2><BR>
Example
/*** the following 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 ***/
SaPopulateMasterDetail(NULL, (void*)6, cbs);
/*** calls to complete the HTML context ***/
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.