• <GetStart>
  • CSPro User's Guide
    • The CSPro System
    • Data Dictionary Module
    • The CSPro Language
      • Introduction to CSPro Language
      • Data Requirements
      • CSPro Program Structure
      • Programming Standards
      • Code Folding
      • Debugging CSPro Applications
      • Declaration Section
        • Compiler Mode
        • Variables
        • Alias Statement
        • User-Defined Functions
        • Array Object
        • Audio Object
        • Case Object
        • Document Object
        • File Object
        • Freq Object
        • Geometry Object
        • HashMap Object
        • Image Object
        • List Object
        • Map Object
        • Pff Object
        • SystemApp Object
        • ValueSet Object
      • Procedural Sections
      • Logic
      • Language Elements
    • Data Entry Module
    • Batch Editing Applications
    • Tabulation Applications
    • Data Sources
    • CSPro Statements and Functions
    • Templated Reporting System
    • HTML and JavaScript Integration
    • Action Invoker
    • Appendix
  • <CSEntry>
  • <CSBatch>
  • <CSTab>
  • <DataViewer>
  • <TextView>
  • <TblView>
  • <CSFreq>
  • <CSDeploy>
  • <CSPack>
  • <CSDiff>
  • <CSConcat>
  • <Excel2CSPro>
  • <CSExport>
  • <CSIndex>
  • <CSReFmt>
  • <CSSort>
  • <ParadataConcat>
  • <ParadataViewer>
  • <CSCode>
  • <CSDocument>
  • <CSView>
  • <CSWeb>

SystemApp Object

In logic, a SystemApp is an object that contains information about the parameters to be used when calling a system application. A system application is an application that is loaded on a device and is generally not part of the CSPro suite of applications and tools. On Android, the SystemApp object also stores any information that resulted from the running of the system application.
Functionality
A SystemApp is a CSPro logic object and the following functions can be called via dot notation:
FunctionDescription
clearClears any stored arguments.
execExecutes the system application.
getResultGets a result returned from the system application.
setArgumentStores the argument for use when executing the system application.
 
getLabelReturns the symbol's label.
getNameReturns the symbol's name.
getJsonReturns the symbol's metadata and value represented in JSON.
getValueJsonReturns the symbol's value represented in JSON.
updateValueFromJsonModifies the symbol based on a JSON representation of the value.
Assignments
When a SystemApp is used as an argument to a user-defined function, it is passed by reference.
Example
// play the training video in Windows Media Player
SystemApp windows_media_player;
windows_media_player.
setArgument(pathconcat("../Videos/Census Training.mp4"));
windows_media_player.
exec("wmplayer.exe");
See also: System Action Invoker Namespace, ExecSystem Function (Desktop), ExecSystem Function (Mobile), View Function