Child pages
  • Running servoy_sample_mobile

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
h5. Pre run steps:

# Import the solutions for the sample [samples:Mobile CRM Sample]\\
 which means importing servoy_sample_mobile and servoy_sample_mobile_service. These solutions are available as files in your install directory application_server/solutions/examples
# In order to easily see changes in [samples:Sample CRM] when synchronising from mobile, doalso import servoy_sample_crm and svyCore.

h5. Steps to run the solution:

# Make servoy_sample_mobile the active solution
# Export as mobile .war into <servoy7.0install>\{servoy7.0install}/application_server/server/webapps (via context menu on active solution)
# Activate the solution servoy_sample_mobile_service
# Open [http://localhost:8080/servoy_sample_mobile/index.html] in chromeGoogle Chrome or firefoxFireFox. Internet IEExplorer is not supported at the moment.

You will see some company records displayed after After logging in with "demo"/"demo", navigate some company records are displayed.&nbsp;Navigate to contacts>contacts >  contact, do and perform an edit/save.

Before performing a mobile "sync" to push data back to openthe (inserver, newopen tab/browser):[http://localhost:8080/servoy-webclient/solutions/solution/servoy_sample_crm?nodebug=true]
When now doing a&nbsp;in a new browser tab.
Now when performing the "sync" from the onMobile mobilesolution any new contact or edit should show in sample crm, also opening multiple mobile clients in different browsers will show changes after syncSample CRM.

Notes:
# In some situations if it happens that the new WAR warexport atfrom point 2 is not seen by tomcatserver. webserver, in thatIn this case delete the .warWAR and direcory servoy_sample_mobile in <servoy7install>from \{servoy7install}/application_server/server/webapps and export the WAR again.
# 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 the Mobile solution form another machine/device as where the Servoy Developer is running, the Server URL setting in the Mobile solution Export wizard should be set to an IP of the machine that runs Servoy Developer AND that can be accessed from the machine/device on which the Mobile solution will be run. By default the Server URL is set to 127.0.0.1, which refers to the local machine.

h5. Other pages
{list-siblings}