MOBILE CAMERA SNAP INTO

This action opens a camera on a mobile device that the user logged in from, allows the user to take a photo and then writes the result into the specified Picture attribute of the specified business object. Note that this action can only be used in native mobile applications – it will not work in a browser.

MOBILE CAMERA SNAP INTO AttributeIdentifier()[ WITH StringLiteral() = StringLiteral() (, StringLiteral() = StringLiteral())* ]

where AttributeIdentifier is the identifier of the attribute to write the result into (the attribute must be of the Picture Type).

MOBILE CAMERA SNAP INTO MyObject.MyPictureAttribute 

You can also optionally specify different properties defining how the camera will behave. The following parameters can be used (see more details here: https://github.com/apache/cordova-plugin-camera)

quality number 50 Quality of the saved image, expressed as a range of 0-100, where 100 is typically full resolution with no loss from file compression. (Note that information about the camera's resolution is unavailable.)
allowEdit Boolean true Allow simple editing of image before selection.
encodingType EncodingType JPEG Choose the returned image file's encoding.
targetWidth number Width in pixels to scale image. Must be used withtargetHeight. Aspect ratio remains constant.
targetHeight number Height in pixels to scale image. Must be used withtargetWidth. Aspect ratio remains constant.
correctOrientation Boolean Rotate the image to correct for the orientation of the device during capture.
saveToPhotoAlbum Boolean Save the image to the photo album on the device after capture.
popoverOptions CameraPopoverOptions iOS-only options that specify popover location in iPad.
cameraDirection Direction BACK Choose the camera to use (front- or back-facing).

For example:

MOBILE CAMERA SNAP INTO MyObject.MyPictureAttribute WITH 
    'targetWidth'='100',
    'targetHeight'='100',
    'cameraDirection'='1',
    'allowEdit'='false' 
  • Last modified: 2023/05/09 01:40