_OUTPUT_REACHTHRU_URL_FN_ Method
Outputs the RTURL Javascript function that builds
the reach-through to detail URLs
Syntax
CALL SEND(OBJID,'_OUTPUT_REACHTHRU_URL_FN_,service,nextpgm,dataset,bgtype,bg,url);
Required Arguments
- service
-
the Application Broker
service.
- nextpgm
-
the four-level name
of the program to run to display the detail data. The default is SASHELP.WEBEIS.DS2HTM.SCL.
- dataset
-
the name of the data
set that contains the detail data.
- bgtype
-
the background type
(IMAGE, COLOR, or blank).
- bg
-
the background value.
- url
-
the Application Broker
component of the URL.
Example
The following output
is produced:
function rturl(str) {
param=new Object;
param._PROGRAM = "SASHELP.WEBEIS.VARLIST.SCL";
param._SERVICE = "default";
param._DEBUG = "2";
param.MDDB = "SASHELP.PRDMDDB";
param.METABASE = "SASHELP.MBEIS";
param.D = "Geographic";
param.AC = "Product%20Line";
param.V10="0";
param.VA10="0";
param.A = "ACTUAL";
param.S = "SUM";
param.NEXTPGM = "SASHELP.WEBEIS.DS2HTM.SCL";
param.DATASET = "SASHELP.PRDSALE";
param.BGTYPE = "color";
param.BG = "%23FFFFE7";
href = "/cgi-bin/broker?";
for (name in param) { href += name + "=" + param[name] + "&" }
if (str) {href += str}
return href;
}