Exporting/importing parameters

Unwired Accelerator enables you to export parameters defined for an application as an XML document, and import them. This provides an alternative way to edit parameter definitions for an application, rather than through the usual user interface.

As well as including all the currently defined parameters for an application, the XML document also (for Web element applications) contains “potential” parameters – that is, CGI parameters that are present in HTTP requests but have not so far been selected for inclusion as exposed parameters. These are included in the document, but commented out using XML-style comments. It is then a simple task to expose these as external parameters, by un-commenting the ones that are required.

The same approach can be taken with @OP tags that have not yet been exposed as external parameters – the XML document includes them within XML-style comments as well.

StepsExporting application parameters

  1. In Mobile Web Studio, select Build | Applications | Approved.

  2. Select an application in the right pane, and right click.

  3. Select Export/Import Params from the pop-up menu.

  4. On Export/Import Parameters, type the file name, including the XML extension.

  5. Click Export, and OK to confirm. The XML file is saved in %SYBASE%\tomcat\webapps\onepage.

StepsImporting application parameters

  1. In Mobile Web Studio, select Build | Applications | Approved.

  2. Select an application in the right pane, and right click.

  3. Select Export/Import Params from the pop-up menu.

  4. On Export/Import Parameters, type the file name, including the XML extension.

  5. Click Import, and OK to confirm.