====== How to set an auto refresh of your dashboard in Webi 4.2 ====== Source : [[https://support.need4viz.com/kb/faq.php?id=72|Support Need4Viz — KB #72]] — Category : 1. Webi as a Dashboard ==== Symptom ==== * You want to auto refresh your dashboard. With this feature, for instance, you can set your report in fullscreen mode (with N4V Fullscreen component) and display it on a TV in your office. ==== Reason and Prerequisites ==== **Environment:** * SAP BusinessObjects 4.2 * N4V All versions ==== Resolution ==== There is no setting in Webi to automatically refresh a report in version 4.2 (an option exists only in Webi 4.3). There is a sample of Webi extension that can be activated in 4.2 (see the How to page here : [[https://blogs.sap.com/2018/06/19/auto-refresh-webi-report-every-n-seconds/|https://blogs.sap.com/2018/06/19/auto-refresh-webi-report-every-n-seconds/]] ). Another way is to follow the below steps. The workflow to realise this auto validation is the following : - In your report, insert a blank cell with the following content : //**%%[image: image]%%**// - This script will refresh the report each **10000** milliseconds (10sec). - Validate the formula and, in the Format Cell, change the Display setting to read content as "HTML" : %%[image: image]%% - %%In the CMC, through Applications / Web Intelligence / Properties, enable the Javascript elements :%% %%[image: image]%% Now when you open your report, it will automatically refresh every 10 seconds. ==== Now we can enhance this feature ! ==== By addind a N4V component, you can customize this feature to make the delay of refresh variable and set by the user. - %%Create a Webi variable called "Delay" (for instance) and set with ="0" content :%% %%[image: image]%% - Insert in your report a Simple Slider with the following input parameters (this will generate a slider from 0 to 120 with a step of 10 and send the selected value in the Delay variable) : %%[image: image]%% - Now update the script cell previously created to auto refresh the report with this content : %%[image: image]%% - %%This script will trigger the auto refresh every N seconds (content of the Delay variable) only if the Delay is >= to 10 seconds. You can update the settings (min/max/step) of the N4V slider according to the script values as you which.%% - The result should be : %%[image: image]%% and your report will automatically refresh every N seconds.