App Builder

Index of ContentsApp globals

Your apps can declare and use their own variables, but App Builder also put available certain global variables to be use along the apps. Below you can found a table with such global variables, ready to be used in every part of your app when you needed. You can use the variable's selector to choose this variables further your own app variables and controls specific variables. All App Builder variables begin with the "App" prefix.

App Builder app variable's selector

Variable name Variable type Variable content
App.ID String Contains the ID of the app that you are defined in designtime
App.Name String Contains the name of the app that you are defined in designtime
App.Version String Contains the version of the app that you are defined in designtime
App.Description String Contains the description of the app that you are defined in designtime
App.AuthorName String Contains the author name of the app that you are defined in designtime
App.AuthorEmail String Contains the author email address of the app that you are defined in designtime
App.AuthorUrl String Contains the author URL address of the app that you are defined in designtime
App.CurrentView String Contains the current app view name, that is, the view which is currently visible to the user.
App.PrevView String Contains the previous view the user want to navigate from. This variable is only properly available in the app's ViewChange event.
App.NextView String Contains the next view the user want to navigate. This variable is only properly available in the app's ViewChange event.
App.DialogView String Contains the current app dialog view name, that is, the view which is currently visible as a dialog view.
App.Fullscreen String Contains "true" if the app is in fullscreen mode and "false" when not. Take a look at the ToggleFullscreen action.
App.Theme String Store the theme name currently stablished in the app. The theme can be one of the included app themes and you can set it by using the SetAppTheme action.
App.Themes Array Store all the included app themes which you include from the app options dialog.
App.Scaled String Store the current app scaled mode. This can be "scaled" or "fixed" and you can change it by using the SetAppScaled action.
App.Online String This variable store "true" if the app is considered online or "false" when not. Take also a look at the Online and Offline app events. This variable apparently do not work in the Cordova platform. If you plain to build your application with Apache Cordova, use the GetNetworkType action and the Network plugin for Apache Cordova.
App.Event String This variable is similar to the views and contorls Event variable and store the event variable for certain application events like KeyUp and KeyDown.
App.ActiveControl String This variable store the active/focused element ID or control name in the application. For example, if the user put the focus in an input named "Input1", this variable store "Input1".
App.LastError String This variable store the latest app Javascript error message or an empty string if not error occurs.
App.IdleIsIdling String This variable can contain "true" or "false", depending if the app is idling or not.
App.IdleIsRunning String This variable can contain "true" or "false", depending if the app idle watcher is running or not.
App.Orientation String Can contain these values: "portrait" or "landscape", depending on the current screen orientation
App.Cordova String This variable contains "true" if our app is running compiled with Apache Cordova, or "false" when not
App.InnerWidth Number Contain the window's width in pixels, NOT including toolbars/scrollbars
App.InnerHeight Number Contain the window's height in pixels, NOT including toolbars/scrollbars
App.OuterWidth Number Contain the window's width in pixels, including toolbars/scrollbars
App.OuterHeight Number Contain the window's height in pixels, including toolbars/scrollbars
App.Year Number 4 digit representation of year (e.g. AD 1 = 0001, AD 2010 = 2010)
App.Month Number Month in year, padded (01-12)
App.Week Number Week of year, padded (00-53). Week 01 is the week with the first Thursday of the year
App.WeekDay Number Day of the week, Sunday is 0, Monday is 1, and so on.
App.Day Number Day in month, padded (01-31)
App.Hour Number Hour in AM/PM, padded (01-12)
App.Hour24 Number Hour in day, padded (00-23)
App.Minutes Number Minute in hour, padded (00-59)
App.Seconds Number Second in minute, padded (00-59)
App.YearShort Number 2 digit representation of year, padded (00-99). (e.g. AD 2001 = 01, AD 2010 = 10)
App.MonthShort Number Month in year (1-12)
App.WeekShort Number Week of year (0-53). Week 1 is the week with the first Thursday of the year
App.DayShort Number Day in month (1-31)
App.HourShort Number Hour in AM/PM, (1-12)
App.Hour24Short Number Hour in day (0-23)
App.MinutesShort Number Minute in hour (0-59)
App.Milliseconds Number Millisecond in second, padded (000-999)
App.Timestamp Number Return the number of milliseconds since 1970/01/01
App.WebExtMessage Mixed This variable store the WebExtension app message already to use inside the app WebExtMessage event. This variable can contains virtually anything, since we are responsible to send a message and therefore to provide the content of the message.