Quantcast
Channel: VMware Communities : All Content - VMware Services Software Solutions
Viewing all articles
Browse latest Browse all 497

Stopping Browse List Automatic Refresh

$
0
0

Hi fellas,

 

Some of you may remember the possibility to disable automatic refresh in VSM Full Client browse lists. Just by opening the list Columns configuration window and unselecting the checkbox "Auto Refresh". Easily.

Why would you ever need that? That's why. In case if the list is long enough to scroll and you are reviewing its items one by one by selecting and opening them, but right after the automatic refresh moment you will lose the current (active) record. Trust me, this is really annoying.

Unfortunately it was possible until the release of VSM v9.1 only. After implementation of the more advanced list columns configuration the checkbox "Auto Refresh" has been removed. I don't know why, but it's gone.

 

Since then we have had constant complaints from our system users, especially from Service Desk staff, that it is not possible to stop that annoying auto refresh anymore. But we couldn't to disable the automatic refresh for all users - in general auto refresh is really ok for other users to see the current list updated.

 

So I have decided to make a customization to return this feature back what actually was not a really difficult task to do - just some simple changes in the client app templates and scripts only.

Sharing the concept of my workaround if someone is interested:

 

1. Browse list htm template(-s) [InWorkLoadBrowse.htm, InCallSearchBrowse.htm, InRequestSearchBrowse.htm, etc.] and custom style definition in Infra90.css:

     * Custom two states button to disable/enable automatic refresh:

<input type="button" name="Z_BTN_AUTO_REFRESH_SWITCH" onClick="return z_SwitchAutoRefresh()" title="Disable Auto Refresh" class="z_AutoRefresh_Disable" tabindex="100">

 

.z_AutoRefresh_Disable {background-image: url('z_refresh_dis_16.png');}
.z_AutoRefresh_Enable {background-image: url('z_refresh_enb_16.png');}

    

     So the extra button may look like this:

Untitled.png

 

     * Reference to the custom script file (if does not exist already). Something like:

<script language="javascript" src="Custom_InBrowseCommon.js"></script>

 

     * Changing the list refresh event function to a custom one:

<script language="javascript" for="TABLE" event="eRefresh()">z_CustomRefresh(false)</script>

 

2. The button state variable and custom functions to run or skip the list refresh in the custom script file:

var z_auto_refresh_disabled = 0;
function z_SwitchAutoRefresh(){  /*  Invert button state variable value  Change button title text  Change button image  */
}
function z_CustomRefresh(param){  if(!z_auto_refresh_disabled || z_auto_refresh_disabled==0){    Refresh(param);  }
}

 

That's it. Recycle IIS App pool, clear client app cache, enjoy. Really simple, but really effective.

Be aware that this is not a complete solution, only a concept (part of the script is missing). If you need any details just tell me.

Regs, Gytis


Viewing all articles
Browse latest Browse all 497

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>