Home Service Manager Portal Feature Requests
We appreciate you taking the time to vote and add your suggestions to make our products awesome! Your request will be submitted to the community for review and inclusion into the backlog.

We recommend reviewing what is submitted before posting, in case your idea has already been submitted by another community member. If it has been submitted, vote for that existing feature request (by clicking the up arrow) to increase its opportunity of being added to Cireson solutions.

For more information around feature requests in the Cireson Community click here.
Options

Add auto-refresh to dashboard widgets

Leigh_KildayLeigh_Kilday Member Ninja IT Monkey ✭✭✭✭

Like the standard grid views, it would be ideal if the widgets could auto-refresh. I'm using a SQL Table Widget to pull WI data with custom fields. It's limiting without auto-refresh.

27 votes

Submitted · Last Updated

Comments

  • Options
    Mikhail_ScherbakovMikhail_Scherbakov Customer Adept IT Monkey ✭✭
    We also really need this functionality!
  • Options
    Vladimir_BudyakVladimir_Budyak Customer IT Monkey ✭
    edited November 2017
    Hi guys!
    Try this code in custom.js

    (function() {
    	$(document).ready(function () {
    		var url = window.location.href;
    		if(url.indexOf("/Page/") === -1){return;}
    		var mainPageNode = document.getElementById('main_wrapper');
    		var observer = new MutationObserver(function(mutations) {
    			var Element = $(".dashboard");
    			if (Element.length > 0) {
    				Action();
    				observer.disconnect();
                }
            });
    		var observerConfig = { attributes: true, childList: true, subtree: true, characterData: true };
            observer.observe(mainPageNode, observerConfig);
    	});
        var Action = function() {
    		console.log("In action");
    		var timerRefresh = 30000;
            $(function () {
                window.setInterval(function () {
    				console.log("Refresh");
    				$('[ng-click="reload()"]').click();
                }, timerRefresh);
            });
    	}
    })();<br>
  • Options
    Geoff_RossGeoff_Ross Cireson Consultant O.G.
    @Vladimir_Budyak
    Not tested but looks great. Very nice work!
    Just edited your post to say to add to custom.js, not css but very cool customisation.
  • Options
    Vladimir_BudyakVladimir_Budyak Customer IT Monkey ✭
    @Geoff_Ross
    Thanks!
    Yes, of course JS.

    Geof, tell me please how I can use a widget method of reload data instead of my workaround?
    $('[ng-click="reload()"]').click();


  • Options
    Geoff_RossGeoff_Ross Cireson Consultant O.G.

    I think this would work very nicely as a new widget type that can be put on any page and have the refresh interval as a setting.

    Anyone think that would be interesting?

  • Options
    Simon_ZeinhoferSimon_Zeinhofer Customer Ninja IT Monkey ✭✭✭✭

    I think that would be amazing!

  • Options
    Sean_TerrySean_Terry Customer Advanced IT Monkey ✭✭✭
    edited February 2023

    I think we need this, particularly for tables where staff want to manage tickets on custom pages. In this case I would settle for them being consistent with the refresh settings in the portal admin section.

  • Options
    Sean_TerrySean_Terry Customer Advanced IT Monkey ✭✭✭

    @Geoff_Ross This would be great. We would like to have custom pages but the refresh is an issue. For example, there are some old Microsoft promoted views on the portal that we would like to replace them. We have SQL tables. The feedback is that they are great but its just the refresh isn't quite working in our environment.

    Is this any chance that this would become a new widget?

  • Options
    Simon_ZeinhoferSimon_Zeinhofer Customer Ninja IT Monkey ✭✭✭✭

    @Geoff_Ross Wanted to ask how the status is on this one :)

  • Options
    Simon_ZeinhoferSimon_Zeinhofer Customer Ninja IT Monkey ✭✭✭✭

    @Geoff_Ross Any update on the possibilities for using that as an add in?

Sign In or Register to comment.