Warning Message

What I’m trying to do:
When I run my app, I get the below warning message. This just started occurring as of today, without me changing the code.

To be clear, my app is still working, and the warning isn’t causing a problem, I’m just trying to understand whether this is required, or if it’s a best practice.

Warning: User_Form.form_refreshing_data_bindings does not exist. Trying to set the ‘refreshing_data_bindings’ event of self from User_Form.

What I’ve tried and what’s not working:

Code Sample:

# this is a formatted code snippet.
# paste your code between ``` 

Clone link:
share a copy of your app

You are getting that warning because the refresh_data_binding of your form is set in the form properties (see snapshot below), but there is no function with that name defined in the form class.

You can get rid of the warning by clearing the function name from the event definition in the property.
image

As of today Anvil shows a warning for all the events that are defined in the form properties and don’t have a corresponding function. It’s just a warning to help you with the housekeeping, but the app behavior has not changed.

4 Likes

Thanks @stefano.menci

1 Like