KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

AutoUpdate Method Not Terminating on Dashboard Switch #2457

Closed Wayland Games opened this topic on on Nov 23 - 8 comments

Wayland Games commented on Nov 23

Scenario: Dash 1 contains widgets with autoupdate property set to 60 seconds Dash 2 contains widgets which do not autoupdate.

User visits Dash1 but navigates away prior to 60 seconds and views Dash2.

Autoupdate attempts to refresh current dashboard (dashboard 2) but cannot find the widgets its looking for (as they are incorrect)

Error below, ItemsPurchasedTrend is a widget on Dash1, error is show on Dash 2

Message: Could not find ItemsPurchasedTrend widget["FullFullOrdersCard","SameDayDespatchCard","ShippedTodayCard","TradePicksWaitingCard","OpenPicksCard","OrdersAwaitingPackingCard","OrdersAwaitingAssignmentCard","PriorityPicksWaitingCard","StarPackerCard","StarPickerCard","PackerTodayTable","PickerTodayTable"] Line: 261 File: /var/www/html/waylandbi/vendor/koolreport/dashboard/Dashboard.php Collapse #0: /var/www/html/waylandbi/vendor/koolreport/dashboard/pages/Main.php Line 137 : handle(null) #1: /var/www/html/waylandbi/vendor/koolreport/dashboard/Application.php Line 217 : handle(null) #2: /var/www/html/waylandbi/vendor/koolreport/dashboard/Application.php Line 149 : handle(null) #3: /var/www/html/waylandbi/index.php Line 11 : run(null)

Refreshing Dash2 clears the error and it does not recur, so it seems to be something around the switching active dashboards that's not ending the autoupdate timer.

KoolReport commented on Nov 24

Yes you are right. I have reported to dev.team and this will be fixed in next version.

KoolReport commented on Nov 24

Good news, you can update to 3.3.1 now. Thank you very much.

Wayland Games commented on Nov 24

Brilliant support as ever, thank you!

KoolReport commented on Nov 24

You are welcome :)

Wayland Games commented on Nov 24

Have updated to 3.3.1 and now a dashboard that wasn't erroring bombs out with the following error.

TodayBoard is the dashboard that's inheriting from Dashboard but it appears to be looking for it as a widget.

Error below

Message: Could not find TodayBoard widget["OrderQuantity","OrderValue","StatusQuantity","ShippedTrend","GeoToday","ChannelDonutToday","ItemsManufacturedTrend","ItemsReceivedTrend","ItemsPurchasedTrend"] Line: 261 File: /var/www/html/waylandbi/vendor/koolreport/dashboard/Dashboard.php Collapse #0: /var/www/html/waylandbi/vendor/koolreport/dashboard/pages/Main.php Line 137 : handle(null) #1: /var/www/html/waylandbi/vendor/koolreport/dashboard/Application.php Line 217 : handle(null) #2: /var/www/html/waylandbi/vendor/koolreport/dashboard/Application.php Line 149 : handle(null) #3: /var/www/html/waylandbi/index.php Line 11 : run(null)

KoolReport commented on Nov 24

Please refresh the browser with Ctrl+F5 several time, browser could cache the old js file. Also if you find there is "koolreport_assets" folder generated in your app then remove this folder.

Wayland Games commented on Nov 24

Force refresh resolved, should have checked in incognito mode first, apologies but glad it's resolved!

KoolReport commented on Nov 24

Awesome :)

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
bug
help needed
solved

Dashboard