Creating file applications

Unwired Accelerator lets you create applications that are based on files. The file must contain data arranged in a format that can be mapped to grid data (see “Using grid rules” for information about grid rules, for example:

Using either file type, you can create an application element that uses the grid-rule functionality of Unwired Accelerator.

NoteUA uses the uploaded copy of the file, not the copy that is local to the browser. In other words, changes to the original file have no impact on the application created from the uploaded file. To have the changes take effect, you must upload the application again.

For Excel spreadsheets, you can capture data from the Excel file, choose the Excel sheet from the available list of sheets, and define grid rules on the captured data. Keep in mind the following:

The following capabilities are not supported:

NoteThe excelfilelimit property in the global.properties.xml file specifies the maximum file size allowed in KBs. If you have problems capturing an Excel spreadsheet, you may need to increase the file size from the default of 200 MBs to a larger size.

StepsCreating a file element using an Excel spreadsheet

You can create file elements using an Excel spreadsheet.

  1. Log in to Web Studio, select Build Applications, select New from the Application Manager Status menu, then click New to launch Application Builder.

  2. Click the arrow to the right of the Add button and select File Element. You see the New File Element window, which allows you to identify the file to upload from your local machine to the Unwired Accelerator server.

  3. Complete the File Element Definition options:

  4. Click Preview to see the result. Click Next.

  5. In the Define window, define the record layout and specify a record header. See “Defining record layout”. Click Next.

  6. In the Filter window, specify filter rules to select only the relevant data from the element. See “Adding filter rules”. Click Next.

  7. In the Preview window, enter a name for the file element, and click Finish.

  8. In the Application Builder, click Save. See “Saving applications”.

StepsCreating a file element from a delimited file

You can create file elements using files that use commas, tabs, semi-colons, colons, or spaces to separate data.

  1. Log in to Web Studio, select Build Applications, select New from the Application Manager Status menu, then click New to launch Application Builder.

  2. Click the arrow to the right of the Add button and select File Element. You see the New File Element window, which allows you to identify the file to upload from your local machine to the Unwired Accelerator server.

  3. Complete the File Element Definition options:

  4. Click Preview to see the result.

  5. Click Next.

  6. In the Define window, define the record layout and specify a record header. See “Defining record layout”. Click Next.

  7. In the Filter window, specify filter rules to select only the relevant data from the element. See “Adding filter rules”. Click Next.

  8. In the Preview window, enter a name for the file element, and click Finish.

  9. In the Application Builder, click Save. See “Saving applications”.