Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Changing datasource for service

Add a new service to the page, map it, and then remove the other service.

Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

Changing datasource for 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?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Changing datasource for service

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

Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

Changing datasource for service

Here is what I have so far. See screenshot:

Image

Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

Changing datasource for service

It works! Thanks,

Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

Changing datasource for service

...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...'

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Changing datasource for service

You can change action invocation order by clicking the up/down arrows.

Return to “Issues”