Profiles

Mobile App Development Profiles

Profile file is JSON based configuration file for each mobile application to support the process of generation HTML (views) and JavaScript (controllers) files for given app. It is important for developer working with JForms. Defining the profile they can decide which dispatcher (and thus what metadata) is used to generate the app.

The profile files are placed in /XT/aperio/development/profiles folder.

To add new profile just create JSON file with suitable elements and put it into folder where other profiles reside.

Setup on UIServer

List of active profiles (profile names comma separated) may be set in UI server configuration panel at XT Admin:

Application profiles setup example

The list can correspond with the profiles in the folder where the profile files reside:

Profile folder content example

To make it running use apply option or restart XTUI Server:

Apply option on XTUI Server

Reference

The top level element is an array with profile entities.

Entity is an object which holds the following elements (attributes):

  • app - path to folder where mobile applicate resides (where is app.json file located)
  • mod - path to application module (look at Modules to find more about modules)

“app” and “mod” attributes are used interchangeably. The path can be absolute or relative to folder were mobile applications reside.

  • environment - object which represents the environment to generate entire app or its part which resides in the module
    • dispatcher - name of XT dispatcher
    • params - object to hold additional parameters sent to dispatcher
      • companyCode - company code, e.g. DV

Example content of profile file:

[
	{
		"app": "C:\\XT\\aperio\\apps\\mobApp1",
		"environment": {
			"dispatcher": "DC1_11",
			"params": {
				"companyCode": "DV"
			}
		}
	},
    {
		"mod": "C:\\XT\\aperio\\apps\\mobApp1\\mods\11_50",
		"environment": {
			"dispatcher": "DC1_1150",
			"params": {
				"companyCode": "DV"
			}
		}
	}
]