This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I have made a report widget for a simple web-based order system. The report widget lists the latest orders with options to confirm or change delivery times as well as rejecting an order. I would like for the report widget to update when a new order arrives in the DB. Is there any way to get that working? How would I go about it?
In addition, I would like the widget to update only the info needed. As it is now I have to use a return::redirect to backend/backend in order to get an update on the page after a user clicks a button to instantiate an action.
Hope I make sense here, and hope someone has a good solution for me...
as in frontend, you have just to add this in ajax request handler:
$this->vars['var 1'] = val1; // update there variables you need to inject to (_myParial.htm) return [ '#parialID' => $this->makePartial('myPartial') ];
and in widget default view, you have to add: '
Last updated
1-3 of 3