Contents MDDB Report Viewer Methods Previous Next
 

_OUTPUT_REACHTHRU_URL_FN_ Method

Outputs the RTURL Javascript function that builds the reachthru to detail URLs.

Syntax

  CALL SEND(OBJID,'_OUTPUT_REACHTHRU_URL_FN_,service,nextpgm,dataset,bgtype,bg,url);     
    

Where... Is Type... And Contains...
service C the broker service that is being used.
nextpgm C the 4-level name of the program to run to display the detail data. The default is SASHELP.WEBEIS.DS2HTM.SCL.
dataset C the name of the data set that contains the detail data.
bgtype C the background type (IMAGE, COLOR, or blank).
bg C the background value.
url C the Broker component of the URL.

Example

The following example illustrates the output produced by this method:

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

Contents MDDB Report Viewer Methods Previous Next