Script Methods for Images
The following methods are specific to image fields. For methods common to all fields, see Script Methods for Fields and Script Methods for Field Formats.
Tip: If using these script methods in a business rule, select the Rhino script engine.
Image Field
|
Method |
Return value |
Description |
Example |
|---|---|---|---|
|
getType() or type |
"image" |
The type of the field |
var type = Image.type; |
|
isMaintainAspectRatio() or maintainAspectRatio |
Boolean |
Retrieves the value for specifying whether the image should maintain the aspect ratio |
var ar = Image.maintainAspectRatio; |
|
setMaintainAspectRatio(boolean) |
none |
Sets whether to maintain aspect ratio or not. |
Image.maintainAspectRatio = false; |