The code is writen in javascript,you don’t need any SDK to make it work but just comment the code.I think BO use javaBean or servlet to call displayNoDataToFetch function,so you have to comment the body of this function in viewer.js file,Then the function will do nothing.
What i can think of to try to retrieve the unique key in that report and add additional script on the function to disable it only in the report…So basically you have to do a if else
This only affects reports being refreshed through InfoView. I think this is a good idea all the time. Only developers using the WebI panel or DeskI client should need to know there was no data.
It only affects when we open report by clicking on reports name. If we open report being developer(i mean clicking on modify button) we still see pop up saying “No data to retrieve” message if there is no data.
Exactly,when we modify the webi report in java panel,we are using java applet,so we can not do any modifing in this mode because all the editing and viewing things are done in java class.
If you just want to hide the empty message for several special reports,you can add verify codes in the block of displayNoDataToFetch() function,such as
function displayNoDataToFetch(s,cb)
{
if(strDocName=='rpt1'||strDocName=='rpt2'){
//nothing to do
}else{
showAlertDialog("No data to retrieve in "+s,"Retrieving Data",0,cb);
}
}
don’t put more attention on strDocName,it’s a javascript variable that has been defined at the other place and has been initialized with the document name you are viewing.Just use it.
Hello All,
I am assuming this file resides on the server. We work on a multi user environment. How can i make this change effective only for my reports? Is there any way I can make the change on my local client?
Yes I stopped all the services and restrart all the services with the CMS.
It seeems that changes I made do nothing.
I changed the file :
TomCat\businessobjects\enterprise115\desktoplaunch\viewers\cdz_adv\language\fr\scripts\viewer.js (becauce I work with french version).