Child pages
  • Running servoy_sample_mobile
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Pre run steps:
a) Import the solution servoy_sample_mobile and servoy_sample_mobile_service in developer. These solutions are available as files in your install directory application_server/solutions/examples
b) import servoy_sample_crm and svyCore to easily see changes in sample crm, when synchronising from mobile

Steps to run the solution:
1) make servoy_sample_mobile the active solution
2) export as mobile .war into <servoy7.0install>/application_server/server/webapps (via context menu on active solution)
3) activate the solution servoy_sample_mobile_service
4) open http://localhost:8080/servoy_sample_mobile/index.html in chrome or firefox. IE is not supported at the moment.

You will see some company records displayed after logging in with "demo"/"demo", navigate to contacts> contact, do edit/save

Before performing a mobile "sync" to push data back open (in new tab/browser):http://localhost:8080/servoy-webclient/solutions/solution/servoy_sample_crm?nodebug=true
When now doing a "sync" on mobile any new contact or edit should show in sample crm, also opening multiple mobile clients in different browsers will show changes after sync.

Notes:
a) In some situations if it happens that the new war at point 2 is not seen by tomcat webserver, in that case delete the .war and direcory servoy_sample_mobile in <servoy7.0install>/application_server/server/webapps.
b) When testing with mobile device or from other host then localhost, the mobile solution should be exported/uploaded to phonegap with a different server url, which the device can reach or find. By default the export server url is 127.0.0.1, in many cases this needs to be the real IP or dns name to server where the solution has to retrieve data from.

Other pages
Unknown macro: {list-siblings}
  • No labels