Create a New Mobile App Using the Template App

The Archibus Mobile apps include a Template app. The Template app can be used as the basis for a new mobile appl. It may be easier to create a new app using the Template app than to generate the app files using the Sencha generate app command.

TO create a new app by copying or modifying the Template app.

  1. Create a new folder for your app in the ../schema/ab-products/common/mobile/src folder.
  2. Copy the files from the Template folder to the new app folder
  3. Edit the app.json file.
    1. Modify the id property. Set the id property to a value that uniquely identifies your app.
    2. Set the name property to the name of the new app.
  4. Edit the index.html file.
    1. Set the title attribute to the title of the new app.
    2. Set the start script function parameter to the app id that was used in step 3.1.
  5. Edit the app.js file.
    1. Modify the app path configuration in the Ext.Loader.setPath() function. Set the app path to the folder containing the new app.
    2. Set the name property to the name of the new app.
    3. Modify the launcher() function to launch the new app main view.