Interface: IAttachmentEntryProxy¶
A designer-facing interface that provides access to an item of attachment control.
Hierarchy¶
-
IAttachmentEntryProxy
Summary¶
Properties¶
Class Properties¶
Currently none in this class.
Inherited Properties¶
Methods¶
Class Methods¶
Inherited Methods¶
- base64StringToBinary
- binaryToBase64String
- callFunction
- convertFilterCriteriaArrayToJSONString
- convertJSONStringToFilterCriteriaArray
- count
- create
- createFilterCriteria
- createLinkSpecifierProxy
- deleteODataCacheImages
- dismissActivityIndicator
- downloadInProgressForPage
- downloadInProgressForReadLink
- evaluateTargetPath
- evaluateTargetPathForAPI
- executeAction
- formatBase64String
- formatCurrency
- formatDate
- formatDatetime
- formatNumber
- formatPercentage
- formatScientific
- formatTime
- getActionResult
- getAppClientData
- getAppearanceMode
- getAppEventData
- getAppName
- getAvailableThemes
- getBindingObject
- getCircularImage
- getClientData
- getDefinitionValue
- getEventData
- getGlobalDefinition
- getIconTextImage
- getIndex
- getLanguage
- getLogger
- getMobileServiceAppId
- getMobileServiceEndpointUrl
- getName
- getODataCacheImagePath
- getODataProvider
- getPageDefinition
- getPageProxy
- getParent
- getPasscodeSource
- getPendingDownload
- getReadLink
- getRegion
- getRegions
- getSAPPassportHeaderValue
- getSupportedLanguages
- getTheme
- getType
- getUseInAppCamera
- getVersionInfo
- initializeLogger
- isAppInMultiUserMode
- isCurrentPage
- isDemoMode
- isDeviceCompliant
- isMediaLocal
- localizeText
- read
- sendMobileServiceRequest
- sendRequest
- setApplicationIconBadgeNumber
- setDebugSettings
- setLanguage
- setRegion
- setTheme
- setUseInAppCamera
- showActivityIndicator
- updateProgressBanner
Methods¶
createAttachmentEntry¶
▸ createAttachmentEntry(attachmentPath: string, entitySet: string, property: string, readLink: string, service: string, encodeURI?: boolean = true): any
Create an object for attachment entry Note: This function is for iOS & Android only
Parameters:
| Name | Type | Description |
|---|---|---|
| attachmentPath | string | the path for the attachment file |
| entitySet | string | entity set name |
| property | string | the property of the entity set |
| readLink | string | readlink string |
| service | string | service name |
| encodeURI? | boolean = true | whether to prefix the path with 'file://' if it is not already using another URI protocol, default value is true |
Returns: any
an object with all information for the attachment entry or undefined if the attachment is invalid
getParent¶
▸ getParent(): IAttachmentFormCellProxy
This method returns AttachmentFormCell proxy
Overrides IElementProxy.getParent
Returns: IAttachmentFormCellProxy
getValue¶
▸ getValue(): any
Get item value (Read-Only). The value is in accordance with the interface IAttachment definition.
Returns: any
the value of the item
open¶
▸ open(): void
Open the attachment
Returns: void
setValue¶
▸ setValue(value: any, notify?: boolean): any
Set the new value in the item. The value should be generated from: FormCellControlProxy.createAttachmentEntry() or AttachmentEntryProxy.createAttachmentEntry()
Parameters:
| Name | Type | Description |
|---|---|---|
| value | any | value to be set |
| notify? | boolean | whether to triggers the OnValueChange event on the parent control |
Returns: any
this - allows chaining