Wiki

Clone wiki

javarosa / GetFormsFeature

Get New Forms feature

From Direct URL

BR

''Overview''

This feature allows users to query a remote server for a list of available forms, select from this list and download the form. Forms are automatically written to the RMS and displayed in the forms list on the device. BR Currently the functionality works with the CLForms project, so this would be a good project to use as an example implementation. If you wish to use it in your project, in addition to adding the relevant activities to the workflow, you must note that the feature only works under the client-server setup described below... BR

''Actvities''

The relevant activities for this feature are: BR

  • DisplayFormsHttpActivity
  • GetFormHttpActivity
  • GetFormListHttpActivity BR

''Client-server setup''

The mobile client makes a GET request to a url with the user name as a parameter (e.g !http://myserver.com/getmyform.php?user=foo) BR The server responds with a list of forms based on your permissions, in an xml stream with the following structure:

<forms>
 <form url=http://myform.xhtml>myformname</form>
 <form url=http://myotherform.xhtml>myotherformname</form>
</forms>

BR The DisplayFormsHttpActivity parses this stream and extracts the form name to display, as well as the url from the url parameter. The url is then passed to the GetFormHttpActivity which then downloads the form. BR

From Bluetooth Peer

BR

From File system

BR

Browsing URL with evGetMe

BR

Updated