Altova MobileTogether Designer

Properties of \$Options

Home Prev Top Next

The $Options object can take the properties listed below. The values of most of these properties are usually provided in the Generate Program Code Wizard, and are described there. The object's properties can be accessed by using the . operator. Some SPL template usage examples are given below.

 

<data

  android:scheme="[=$Options.schemeForRunSolutionUrl]"

  android:host="[=$Options.hostForRunSolutionUrl]"/>

 

 

@Override

public boolean GetServerUsesSsl()

  {

      return [if $Options.isUseSSL = 1]true[else]false[endif];

  }

 

 

Workflow-related properties

The following workflow-related properties are available:

 

workflowKey: returns the workflow key. Example: $Options.workflowKey returns the workflow key. Every time program code is generated and the associated workflow is deployed to the server, both are assigned the same unique workflow key. An appstore app will be able to access this workflow only if it has the same key as the workflow. See the final Deploy Design screen of the Generate Prgram Code process for details.

deploymentPath: returns the path of the deployed workflow. Example: $Options.deploymentPath returns the workflow path on MobileTogether Server. Example of a workflow path: /Public/DateTime/.

 

General properties

The values of these properties are provided in Screen 1 of the Generate Program Code Wizard.

 

isTrialRunOnClientBuild

appName

visibleAppName

appVersion

hostForRunSolutionUrl

schemeForRunSolutionUrl

 

User interface properties

The values of these properties are provided in Screen 2 of the Generate Program Code Wizard.

 

splashScreenPortraitFilePath

splashScreenLandscapeFilePath

launcherIconFilePath

aboutLegal

aboutCopyRight

 

Server properties

The values of several of these properties are provided in Screen 3 of the Generate Program Code Wizard.

 

serverAddress

serverPort

isServerAccessAlwaysAnonymous

isUseSSL

isUsesZebraScanner

isUsesdatalogicScanner

isUsesZebraMobileCoputer

 

Properties about user and app privileges

The values of these properties are provided in Screen 4 of the Generate Program Code Wizard.

 

mayResetPersistentData

isAllowSMS

isAllowTelephoneCall

isAllowCamera

isAllowLocationAccess

isAllowBluetooth

isAllowExternalStorageAccess

isAllowiCloudAccess

isAllowAudioRecording

isAllowPhotoGalleryAccess

 

Android and iOS properties

The values of these properties are provided in Screens 7 and 8 of the Generate Program Code Wizard.

 

targetDirectoryAndroid

androidPackageName

androidPackageDir

androidRoundLauncherIconFilePath

androidAdaptiveLauncherIconForegroundFilePath

isAndroidAdaptiveLauncherIconBackgroundColor

androidAdaptiveLauncherIconBackgroundFilePath

androidAdaptiveLauncherIconBackgroundColor

targetDirectoryIOS

iosBundleIdentifierPrefix

iosLauncherIconBackground

 

Windows App properties

The values of these properties are provided in Screens 9 and 10 of the Generate Program Code Wizard.

 

windowsAppCompanyName

windowsPhoneCompanyName

windowsCompanyPublisherID

targetDirectoryWindowsApp

windowsAppCompanyProductID

targetDirectoryWindowsPhone

windowsPhoneCompanyProductID

inputParameters (variable string in the form "par1=value1;par2=value2")

 

© 2018-2024 Altova GmbH