I have a admin dashboard that I replicated for 2 sites. I just changed a field’s name and deleted one on the duplicated database.
Then I copied the dmx folders and admin dashboard folders to the new site. I changed the connection name and refreshed the database in the connection settings screen. I then opened the insert record action step and refreshed the database/table.
It is not refreshing and still picks up the old fields with the deleted one showing and the one with the changed name also still shows old name.
Is there a place in Wappler I can delete the cached db information? Or am I forced to recreate the whole dashboard again?
Marcel, I have found that, when I modify Server Action Steps, the JSON within the resulting PHP file will not update accordingly. I have found that the easiest approach is to delete the original and redo the steps. Alternatively, create new steps that mirror the old ones but with a different name. Do remember to change the data source under App Connect.
Maybe, if we can find a pattern when the update does not happen correctly, we can report a bug, but until then, just try to cope.
I have had the same problem when copying a php file, some data stays the same despite changing it in the wappler UI. So I end up always have to manually recreate the server action.
Guys, I need the exact steps with screenshots showing what are you exactly doing, deleting and changing, to be able to tell you what you are doing wrong.
I have had the same problem a few times and now I’m writing it down here since this is where I ended up on those occasions…
The only steps needed in the above post is:
Open the associated server connect action file.
Enter the query builder for each query in the action file and press refresh and ok.
Save the action file and it should now be updated.
To verify; open the action file in the code editor and check that the json output section has been updated.
It would of course be very nice if this refresh business would occur automatically, but I guess there’s some logical reason why it doesn’t?
I would be even nicer if one could refresh all or selected server actions at once by pressing the refresh button in the workflow tab. As of now it is not very clear what all the different refresh buttons in the Wappler GUI 5.4.1 actually refreshes?