• <GetStart>
  • CSPro User's Guide
    • The CSPro System
    • Data Dictionary Module
    • The CSPro Language
    • Data Entry Module
      • Introduction to Data Entry
      • Data Entry Application
      • Data Entry Editing
      • CAPI Data Entry
        • Introduction to CAPI
        • CAPI Features
        • Capture Types
        • Multimedia
          • Multimedia Features
          • Media Store
          • Camera
          • Signature
        • CAPI Strategies
        • How to ...
      • Network Data Entry
      • Android Data Entry
    • 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>

Camera

Feature Upgrade: Starting with CSPro 7.7, you should no longer use the execsystem method of taking photos, as it may soon be removed from CSPro. To replicate the behavior of the execsystem function call, use the image.takePhoto function.
Passing the camera command to execsystem opens the camera widget on mobile devices. The camera UI includes two options:
  • Flip camera icon: Tap to toggle between the front and rear-facing camera.
  • Camera icon: Tap to take the photo.
When using execsystem to launch the camera, you can include an optional text string that will appear on the mobile device's screen while the camera is active. The string will not be saved to the actual image file. Specify the text by following the image filename with a "|" and the overlay text.
Examples
execsystem("camera:" + pathconcat(Application, "photo.jpg"));

execsystem("camera:evaluation.png|Take a photo of your evaluation form.");
See also: Multimedia Features, ExecSystem Function (Mobile), Image.captureSignature Function