Contents MDDB Report Viewer Methods Previous Next

_OUTPUT_DIMBTN_URL_FN_ Method

Outputs the dimbtnurl JavaScript function in the Dimensions and Options toolbar page

The dimbtnurl function is called when the Dimensions button is pressed.

Syntax

 CALL SEND(OBJID,'_OUTPUT_DIMBTN_URL_FN_',url);

The following output is produced:

function dimbtnurl() {
   with (window.parent.main.document.options) {
      var limit = elements.length;
      href = "/cgi-bin/broker?_PROGRAM=SASHELP.WEBEIS.LAYOUT.SCL";
      for (i=0; i<limit; i++) {
         if (elements[i].value != "") {
            if (elements[i].name == "_PROGRAM" || elements[i].name == "VIEW") 
               continue;
            var thisvar=elements[i].name.toUpperCase();
            if (thisvar == "SV") {
               var sellength = elements[i].options.length;
               var numselected = 0;
               for (j=0; j<sellength; j++) {
                  if (elements[i].options[j].selected) {
                     numselected++;
                     if (numselected == 1) {
                        href += "&" + elements[i].name + "=" + elements[i].options[j].value;
                     }
                     href += "&" + elements[i].name + eval(numselected) + "=" + elements[i].options[j].value;
                  }
               }
               if (numselected > 0) {
                  href += "&" + elements[i].name + "0=" + eval(numselected);
               }
            }
            else {
               href += "&" + elements[i].name + "=" + elements[i].value;
            }
         }
      }
   }
   return href;
}

Contents MDDB Report Viewer Methods Previous Next