_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.
Type:Character
nextpgm
the four-level name of the program to run to display the detail data. The default is SASHELP.WEBEIS.DS2HTM.SCL.
Type:Character
dataset
the name of the data set that contains the detail data.
Type:Character
bgtype
the background type (IMAGE, COLOR, or blank).
Type:Character
bg
the background value.
Type:Character
url
the Application Broker component of the URL.
Type:Character

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;
}