This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

EgerStudio
EgerStudio

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...

jvanremoortere
jvanremoortere

A lot of views but no reactions... Got this fixed?

ridwan.taza34462
ridwan.taza34462

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: '

<?= $this->makePartial('myPartial', ['var1' => $var1]) ?>
`

Last updated

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.