This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hi,
How can you use an ajax handler in a report widget? When I hit the form button, I get this error.:
A widget with the class name "" has not bound
Do you guys have any idea how I can fix this?
Thanky you :)
Has there been a bug logged for this in Github? It may have been fixed in the latest release today.
Does anyone have a solution to this? Have tried using the component method of using data-request="{{ __SELF__}}::onSubmit"
in my form in the _widget.htm
but nothing seems to happen.
How do you use an AJAX handler from within a Report Widget? Where do the post()
values get posted too? Have tried retrieving them in my Report Widget ReportWidgetBase
file, but no dice.
Anyone knows yet. The $this->getEventHandler('onUpdateData')
works well. But just for one single widget at the time it seems. If I have two reportWidgets with ajax handlers on the dashboard only the latest one works.
Found it. You have to make sure to set protected $defaultAlias = 'author_plugin_widget';
And it must be an unique alias. Otherwise it will default to "widget". And then you can have only one at the time.
Last updated
1-7 of 7