This discussion is archived
7 Replies Latest reply: Jul 16, 2013 6:58 AM by ec71f398-80d8-45e8-aa4d-2f8c2ef1fbca RSS

Automatic "Clear my Selections" (script provided)

767676 Newbie
Currently Being Moderated
Hi everyone,

I didn't find anything useful on the Internet apart from creating a "Clear my Selections" button (not so friendly for the user): using jQuery I've been able to create a small script that enables you to automatically clear the selections of a dashboard if you're coming from a dashboard that is not itself (otherwise it'll refresh continously). Here you can find the script:

<script src="yourserver\jquery-1.4.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
     $(document).ready(function() {     
          var r = document.referrer;
          if(r != "http://yourserver/analytics/saw.dll?Dashboard")
               return PersonalizationEditor.removeDefaultSelection(false);

Just add it in a Text dashboard object and remember to use the "HTML content" flag!

Hope this helps someone who had similar issues.


Edited by: Alberto Vaghi on 29-giu-2010 8.32

Edited by: Alberto Vaghi on 29-giu-2010 8.32