I have this code:
The dmx-on:click
was created using the menus to be sure the code created is correct.
But when I click on this item in the app I get this error message in the console:
What is my problem?
Best wishes,
Antony.
I have this code:
The dmx-on:click
was created using the menus to be sure the code created is correct.
But when I click on this item in the app I get this error message in the console:
What is my problem?
Best wishes,
Antony.
I believe it is telling you that price is not a server connect and thus has no load method. Possible you have something else with id of price that is confusing things?
Thanks for your thoughts Ken!
Well I have just set up the server connect using the menu system, and then added the price.load() function using the user interface too… so as far as the Wappler UI is concerned, it all exists!
So am still feeling rather confused…
Well try giving your server connect components more unique names as you probably have also a price field on the same level and it overwrites your server connect action.
The error is trying to help you. It is saying, Hey, I’m trying to use this method called load on this thing called price. But ya know what, price isn’t a thing that can use the method load, cuz ya know, it’s a string.
So it really seems like you have something on your page that is also called price, and it is probably a string. The server connect can still be setup wrong using the menu system–this really seems to come down to a naming issue. This is something Bubble protected us against, but in Wappler, it is up to us!
Okay, I get it… so it sounds like I just have too many things called price and it is a bit confused… so I need to qualify the price items by renaming them to be things like price_the_server_action, price_the_get_parameter, price_the_variable etc etc…
Thanks Ken!