_DISPLAY_STATISTIC_VARS_ Method
Outputs the selected statistics to the report table
Syntax
CALL SEND(OBJID,'_DISPLAY_STATISTIC_VARS_',
column-list,
analysis-variable,
_url,
_argument-string,_argument-string2,initial-url,URL, service,background-type,
background-value,title,webcls,dlflag,rowlist);
Required Arguments
- column-list
-
the column list from
the EMDDB_M class.
- analysis-variable
-
the analysis variable
to graph.
- _url
-
the URL of the next
query.
- _argument-string
-
the argument string
for the next query.
- _argument-string2
-
the argument string
for the next query.
- initial-url
-
the URL of the initial
HTML page.
- URL
-
the Application Broker component
of the URL.
- service
-
the Application Broker service.
- background-type
-
the background type
(IMAGE or COLOR). This value is optional.
- background-value
-
the background value.
This value is optional.
- title
-
the HTML page title.
- webcls
-
the WEBEIS class name.
- dlflag
-
a flag that indicates
whether to download the table to a spreadsheet, where 0=output HTML
tags with data values and 1=output data values with spreadsheet delimiters.
This parameter is optional.
- rowlist
-
the rowlist from the
_GET_CLASS_COMBINATIONS_ method. This parameter is optional.
Details
This method outputs
-
a <TH> tag for each statistic
in the column list
-
a selection list of statistics
on the first occurrence of each selected statistic
-
an <A> tag followed by an
<IMAGE> tag for each statistic if the standard GIF graph is
displayed.
Example
call send(emddbmid_,'_GET_CLASS_COMBINATIONS_','COL',collist);
call send(emddbmid_,'_GET_CLASS_COMBINATIONS_','ROW',rowlist);
_url='/cgi-bin/scripts?_PROGRAM=SASHELP.WEBEIS.MDDBRPTS.SCL&_SERVICE=default
&_DEBUG=0&RPTTYPE=1&GRTYPE=BLOCK';
_args='&MDDB=PERMDATA.MAPINFO&METABASE=PERMDATA.MB612&DOWN=Geographic&A=ACTUAL';
_args2='&S0=2&S1=SUM&S2=PCTSUM';
mddblink='DYNAMIC';
url='/cgi-bin/broker';
service='default';
bgtype='color';
bg='yellow';
title='';
webcls='SASHELP.WEBEIS.WEBEIS';
call send(webid,'_DISPLAY_STATISTIC_VARS_',collist,'',_url,_args,
_args2,mddblink,url,service,bgtype,bg,title,webcls,dlflag,rowlist);
The example produces
the following output:
<TH CLASS="statscol" VALIGN=BOTTOM><DIV CLASS="stats">
<SELECT NAME="s" CLASS="statsbox" onChange="submit();">
<OPTION VALUE="SUM" SELECTED>Sum
<OPTION VALUE="PCTSUM">% of Sum
<OPTION VALUE="AVG">Average
<OPTION VALUE="N">Total Count
<OPTION VALUE="PCTN">% of Total #
<OPTION VALUE="MIN">Minimum
<OPTION VALUE="MAX">Maximum
<OPTION VALUE="RANGE">Range
</SELECT>
</DIV>
</TH>
<TH CLASS="statscol" VALIGN=BOTTOM><DIV CLASS="stats">
<SELECT NAME="s" CLASS="statsbox" onChange="submit();">
<OPTION VALUE="SUM">Sum
<OPTION VALUE="PCTSUM" SELECTED>% of Sum
<OPTION VALUE="AVG">Average
<OPTION VALUE="N">Total Count
<OPTION VALUE="PCTN">% of Total #
<OPTION VALUE="MIN">Minimum
<OPTION VALUE="MAX">Maximum
<OPTION VALUE="RANGE">Range
</SELECT>
</DIV>