Changing datasource for service
I created another data collection in my database and would like to know how to implement the new collection and remove the current collection without losing the app functionality.
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
I created another data collection in my database and would like to know how to implement the new collection and remove the current collection without losing the app functionality.
Add a new service to the page, map it, and then remove the other service.
i am just afraid everything will be lost when I see this message before deleting the old datasource service. Also it is now named restservice 3 instead of 2:
Selected component has dependent content:
Event: Load; owner: Results; action: Invoke service
Event: Page show; owner: Results; action: Invoke service
Do you really want to remove it with all dependent data?
The service is invoked on two events: page load and page show. If you remove the service from the page, those events will also be deleted (as there is no service to invoke now).
It works! Thanks,
...but now since the order is different that it was before, the no results component is not working, i.e. when I scan a barcode that is not in the db, nothing happens. I need the alert javascript popup indicating 'no products found...'
You can change action invocation order by clicking the up/down arrows.