Contents MDDB Report Viewer Methods Previous Next

_OUTPUT_SETURL_FUNCTION_ Method

Outputs the seturl JavaScript function in the toolbar page

This function is called when either the Rotate button or the Download to Spreadsheet button is pressed.

Syntax

 CALL SEND(OBJID,'_OUTPUT_SETURL_FUNCTION_');

Example

The following output is produced:


function setURL(varName) {
newURL='';
with (window.parent.frames[1]) {
newURL=eval(varName);
}
if (varName == 'downloadURL')
  document.location=newURL;
else if (varName == 'rotateURL')
  window.parent.frames[1].document.location=newURL;
}
function addtofav(varName){
  LinkName=window.document.title;
with (window.parent.table_window) {
linkUrl=eval(varName);
}
  window.external.AddFavorite(linkUrl,LinkName);
}


Contents MDDB Report Viewer Methods Previous Next