_OUTPUT_SPREADSHEET_BUTTON_ Method
Outputs the Download to Spreadsheet button as an image
Syntax
CALL SEND(OBJID,'_OUTPUT_SPREADSHEET_BUTTON_',
vrflag,
url,
service,
grphvar,
grphstat,grphdown,grphtype, bgtype,bg,title,webcls);
Required Arguments
- vrflag
-
a flag indicating that
the View Report button was pressed.
- url
-
the Application Broker
path.
- service
-
the Application Broker
service.
- grphvar
-
the analysis variable
to graph.
- grphstat
-
the statistic to graph.
- grphdown
-
the down dimension
variable to graph.
- grphtype
-
the graph type.
- background-type
-
the background type
(IMAGE or COLOR). This parameter is optional.
- background-value
-
the background value.
This parameter is optional.
- title
-
the title. This parameter
is optional.
- webcls
-
the WEBEIS class name
(for subclassing).
Example
The following example
code illustrates the use of this method:
vrflag-=1;
url='/cgi-bin/broker';
service='default';
grphvar='ACTUAL';
grphstat='SUM';
grphdown='COUNTRY';
grphtype='VBAR';
bgtype='COLOR';
bg='YELLOW';
title=' ';
webcls=' ';
call send (webid,'_OUTPUT_SPREADSHEET_BUTTON_',vrflag,url,service,grphvar,
grphstat,grphdown,grphtype,bgtype,bg,title,webcls);
The following output
is produced:
<A HREF="/cgi-test-bin/broker/prdmddb.csv?_service=default&_debug=0
&_program=sashelp.webeis.oprpt.scl&SPDSHT=X&mddb=SASHELP.PRDMDDB&metabase
=SASHELP.MBEIS&D=Geographic&AC=Product%20Line&A=ACTUAL&S=SUM&ST=1&GL=1
&DC=1&ACB=1&DP=1&_SAVEAS=prdmddb.csv" TARGET="_self"><IMG CLASS="imgdown"
SRC="/my_images/btn_xls.gif"ALT="Download to Spreadsheet" BORDER=0></A>