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

Shahiem
Shahiem

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

me2585
me2585

Hi Shahiem, did you found out why? I'm still searching for an answer.

Shahiem
Shahiem

Hi. Me too, I still don't know how I can fix this. :'(

daftspunky
daftspunky

Has there been a bug logged for this in Github? It may have been fixed in the latest release today.

Daniel81
Daniel81

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.

hambern
hambern

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.

hambern
hambern

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

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