This control allows you to store Note Taker card header and body text.
Deprecated API:Since version 1.32. Deprecated. Standard Fiori technology should be used.
Event Summary
attachmentClick(oControlEvent)The event is fired when a user chooses the attachment download link. deleteNote(oControlEvent)The event is fired when a card needs to be deleted. editNote(oControlEvent)The event is fired when a user chooses the Edit button in the note card. Method Summary
sap.suite.ui.commons.NoteTakerCard.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.suite.ui.commons.NoteTakerCard with name sClassName and enriches it with the information contained in oClassInfo. attachAttachmentClick(oData?, fnFunction, oListener?)Attach event handler fnFunction to the 'attachmentClick' event of this sap.suite.ui.commons.NoteTakerCard. attachDeleteNote(oData?, fnFunction, oListener?)Attach event handler fnFunction to the 'deleteNote' event of this sap.suite.ui.commons.NoteTakerCard. attachEditNote(oData?, fnFunction, oListener?)Attach event handler fnFunction to the 'editNote' event of this sap.suite.ui.commons.NoteTakerCard. detachAttachmentClick(fnFunction, oListener)Detach event handler fnFunction from the 'attachmentClick' event of this sap.suite.ui.commons.NoteTakerCard. detachDeleteNote(fnFunction, oListener)Detach event handler fnFunction from the 'deleteNote' event of this sap.suite.ui.commons.NoteTakerCard. detachEditNote(fnFunction, oListener)Detach event handler fnFunction from the 'editNote' event of this sap.suite.ui.commons.NoteTakerCard. fireDeleteNote(mArguments?)Fire event deleteNote to attached listeners. fireEditNote(mArguments?)Fire event editNote to attached listeners. getUid()Getter for property uid. setBody(sBody)Setter for property body. setHeader(sHeader)Setter for property header. setTags(oTags)Setter for property tags. setUid(sUid)Setter for property uid. addStyleClass, 
allowTextSelection, 
attachBrowserEvent, 
attachValidateFieldGroup, 
checkFieldGroupIds, 
clone, 
detachBrowserEvent, 
detachValidateFieldGroup, 
fireValidateFieldGroup, 
getAccessibilityInfo, 
getBusy, 
getBusyIndicatorDelay, 
getControlsByFieldGroupId, 
getFieldGroupIds, 
getIdForLabel, 
getRenderer, 
getVisible, 
hasStyleClass, 
invalidate, 
isBusy, 
onAfterRendering, 
onBeforeRendering, 
placeAt, 
removeStyleClass, 
rerender, 
setBusy, 
setBusyIndicatorDelay, 
setFieldGroupIds, 
setVisible, 
toggleStyleClass, 
triggerValidateFieldGroup $, 
addCustomData, 
addDependent, 
addEventDelegate, 
applyFocusInfo, 
bindElement, 
data, 
destroy, 
destroyCustomData, 
destroyDependents, 
destroyLayoutData, 
destroyTooltip, 
enhanceAccessibilityState, 
exit, 
findElements, 
fireEvent, 
focus, 
getCustomData, 
getDependents, 
getDomRef, 
getElementBinding, 
getFocusDomRef, 
getFocusInfo, 
getInterface, 
getLayoutData, 
getMetadata, 
getTooltip, 
getTooltip_AsString, 
getTooltip_Text, 
indexOfCustomData, 
indexOfDependent, 
init, 
insertCustomData, 
insertDependent, 
prop, 
removeAllCustomData, 
removeAllDependents, 
removeCustomData, 
removeDependent, 
removeEventDelegate, 
setLayoutData, 
setTooltip, 
toString, 
unbindElement addAggregation, 
addAssociation, 
applySettings, 
attachFormatError, 
attachModelContextChange, 
attachParseError, 
attachValidationError, 
attachValidationSuccess, 
bindAggregation, 
bindContext, 
bindObject, 
bindProperty, 
destroyAggregation, 
detachFormatError, 
detachModelContextChange, 
detachParseError, 
detachValidationError, 
detachValidationSuccess, 
findAggregatedObjects, 
fireFormatError, 
fireModelContextChange, 
fireParseError, 
fireValidationError, 
fireValidationSuccess, 
getAggregation, 
getAssociation, 
getBinding, 
getBindingContext, 
getBindingInfo, 
getBindingPath, 
getEventingParent, 
getId, 
getModel, 
getObjectBinding, 
getOriginInfo, 
getParent, 
getProperty, 
hasModel, 
indexOfAggregation, 
insertAggregation, 
isBound, 
isInvalidateSuppressed, 
isTreeBinding, 
propagateMessages, 
removeAggregation, 
removeAllAggregation, 
removeAllAssociation, 
removeAssociation, 
setAggregation, 
setAssociation, 
setBindingContext, 
setModel, 
setProperty, 
unbindAggregation, 
unbindContext, 
unbindObject, 
unbindProperty, 
validateAggregation, 
validateProperty  Constructor Detail 
 new sap.suite.ui.commons.NoteTakerCard(sId?, mSettings?) 
 Constructor for a new NoteTakerCard. 
 Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. 
 If the name of a setting is ambiguous (e.g. a property has the same name as an event), then the framework assumes property, aggregation, association, event in that order. To override this automatic resolution, one of the prefixes "aggregation:", "association:" or "event:" can be added to the name of the setting (such a prefixed name must be enclosed in single or double quotes). 
 The supported settings are: 
- Properties 
- Aggregations 
- Associations 
- Events - editNote : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
- deleteNote : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
- attachmentClick : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
 
Parameters:
| {string} | sId? | id for the new control, generated automatically if no id is given | 
| {object} | mSettings? | initial settings for the new control | 
- Deprecated:
-  Since version 1.32. Deprecated. Standard Fiori technology should be used. 
 Event Detail 
 attachmentClick(oControlEvent)
 The event is fired when a user chooses the attachment download link. 
Parameters:
| {sap.ui.base.Event} | oControlEvent |  | 
| {sap.ui.base.EventProvider} | oControlEvent.getSource |  | 
| {object} | oControlEvent.getParameters |  | 
| {string} | oControlEvent.getParameters.uid | A unique ID that was set by an application developer. | 
| {string} | oControlEvent.getParameters.url | The address of the file attached to the card. | 
| {string} | oControlEvent.getParameters.filename | The name of the file attached to the card. | 
 deleteNote(oControlEvent)
 The event is fired when a card needs to be deleted. This event is needed for the Note Taker control. 
Parameters:
| {sap.ui.base.Event} | oControlEvent |  | 
| {sap.ui.base.EventProvider} | oControlEvent.getSource |  | 
| {object} | oControlEvent.getParameters |  | 
| {string} | oControlEvent.getParameters.cardId | The HTML ID of a card that needs to be deleted. | 
| {string} | oControlEvent.getParameters.title | The title of the card to be deleted. | 
| {string} | oControlEvent.getParameters.body | The text of the card to be deleted. | 
| {string} | oControlEvent.getParameters.timestamp | The timestamp of the card to be deleted. | 
| {string} | oControlEvent.getParameters.uid | A unique ID that was set by an application developer. | 
| {boolean} | oControlEvent.getParameters.thumbUp | Indicates positive information for the deleted card. | 
| {boolean} | oControlEvent.getParameters.thumbDown | Indicates negative information for the deleted card. | 
 editNote(oControlEvent)
 The event is fired when a user chooses the Edit button in the note card. 
Parameters:
| {sap.ui.base.Event} | oControlEvent |  | 
| {sap.ui.base.EventProvider} | oControlEvent.getSource |  | 
| {object} | oControlEvent.getParameters |  | 
| {string} | oControlEvent.getParameters.title | The title of edited card. | 
| {string} | oControlEvent.getParameters.body | A new text of the edited card. | 
| {string} | oControlEvent.getParameters.timestamp | A new timestamp of the edited card. | 
| {string} | oControlEvent.getParameters.uid | A unique ID that was set by an application developer. | 
| {boolean} | oControlEvent.getParameters.thumbUp | Indicates positive information for the edited card. | 
| {boolean} | oControlEvent.getParameters.thumbDown | Indicates negative information for the edited card. | 
| {object} | oControlEvent.getParameters.tags | Updated array of the String type tags applied to the card during editing. | 
 Method Detail 
 sap.suite.ui.commons.NoteTakerCard.extend(sClassName, oClassInfo?, FNMetaImpl?): function
 Creates a new subclass of class sap.suite.ui.commons.NoteTakerCard with name 
sClassName and enriches it with the information contained in 
oClassInfo. 
oClassInfo might contain the same kind of informations as described in Element.extend. 
Parameters:
| {string} | sClassName | name of the class to be created | 
| {object} | oClassInfo? | object literal with informations about the class | 
| {function} | FNMetaImpl? | constructor function for the metadata object. If not given, it defaults to sap.ui.core.ElementMetadata. | 
Returns:
| {function} | the created class / constructor function | 
 Returns a metadata object for class sap.suite.ui.commons.NoteTakerCard. 
Returns:
 Attach event handler 
fnFunction to the 'attachmentClick' event of this 
sap.suite.ui.commons.NoteTakerCard.
. When called, the context of the event handler (its 
this) will be bound to 
oListener if specified otherwise to this sap.suite.ui.commons.NoteTakerCard.
 itself.  The event is fired when a user chooses the attachment download link. 
Parameters:
| {object} | oData? | An application specific payload object, that will be passed to the event handler along with the event object when firing the event. | 
| {function} | fnFunction | The function to call, when the event occurs. | 
| {object} | oListener? | Context object to call the event handler with. Defaults to this sap.suite.ui.commons.NoteTakerCard.itself.
 | 
Returns:
 Attach event handler 
fnFunction to the 'deleteNote' event of this 
sap.suite.ui.commons.NoteTakerCard.
. When called, the context of the event handler (its 
this) will be bound to 
oListener if specified otherwise to this sap.suite.ui.commons.NoteTakerCard.
 itself.  The event is fired when a card needs to be deleted. This event is needed for the Note Taker control. 
Parameters:
| {object} | oData? | An application specific payload object, that will be passed to the event handler along with the event object when firing the event. | 
| {function} | fnFunction | The function to call, when the event occurs. | 
| {object} | oListener? | Context object to call the event handler with. Defaults to this sap.suite.ui.commons.NoteTakerCard.itself.
 | 
Returns:
 Attach event handler 
fnFunction to the 'editNote' event of this 
sap.suite.ui.commons.NoteTakerCard.
. When called, the context of the event handler (its 
this) will be bound to 
oListener if specified otherwise to this sap.suite.ui.commons.NoteTakerCard.
 itself.  The event is fired when a user chooses the Edit button in the note card. 
Parameters:
| {object} | oData? | An application specific payload object, that will be passed to the event handler along with the event object when firing the event. | 
| {function} | fnFunction | The function to call, when the event occurs. | 
| {object} | oListener? | Context object to call the event handler with. Defaults to this sap.suite.ui.commons.NoteTakerCard.itself.
 | 
Returns:
 Detach event handler 
fnFunction from the 'attachmentClick' event of this 
sap.suite.ui.commons.NoteTakerCard. 
 The passed function and listener object must match the ones used for event registration. 
Parameters:
| {function} | fnFunction | The function to call, when the event occurs. | 
| {object} | oListener | Context object on which the given function had to be called. | 
Returns:
 Detach event handler 
fnFunction from the 'deleteNote' event of this 
sap.suite.ui.commons.NoteTakerCard. 
 The passed function and listener object must match the ones used for event registration. 
Parameters:
| {function} | fnFunction | The function to call, when the event occurs. | 
| {object} | oListener | Context object on which the given function had to be called. | 
Returns:
 Detach event handler 
fnFunction from the 'editNote' event of this 
sap.suite.ui.commons.NoteTakerCard. 
 The passed function and listener object must match the ones used for event registration. 
Parameters:
| {function} | fnFunction | The function to call, when the event occurs. | 
| {object} | oListener | Context object on which the given function had to be called. | 
Returns:
 Fire event attachmentClick to attached listeners. 
 Expects following event parameters: 
- 'uid' of type stringA unique ID that was set by an application developer.
- 'url' of type stringThe address of the file attached to the card.
- 'filename' of type stringThe name of the file attached to the card.
Parameters:
| {Map} | mArguments? | the arguments to pass along with the event. | 
Returns:
 Fire event deleteNote to attached listeners. 
 Expects following event parameters: 
- 'cardId' of type stringThe HTML ID of a card that needs to be deleted.
- 'title' of type stringThe title of the card to be deleted.
- 'body' of type stringThe text of the card to be deleted.
- 'timestamp' of type stringThe timestamp of the card to be deleted.
- 'uid' of type stringA unique ID that was set by an application developer.
- 'thumbUp' of type booleanIndicates positive information for the deleted card.
- 'thumbDown' of type booleanIndicates negative information for the deleted card.
Parameters:
| {Map} | mArguments? | the arguments to pass along with the event. | 
Returns:
 Fire event editNote to attached listeners. 
 Expects following event parameters: 
- 'title' of type stringThe title of edited card.
- 'body' of type stringA new text of the edited card.
- 'timestamp' of type stringA new timestamp of the edited card.
- 'uid' of type stringA unique ID that was set by an application developer.
- 'thumbUp' of type booleanIndicates positive information for the edited card.
- 'thumbDown' of type booleanIndicates negative information for the edited card.
- 'tags' of type objectUpdated array of the String type tags applied to the card during editing.
Parameters:
| {Map} | mArguments? | the arguments to pass along with the event. | 
Returns:
 getAllTags(): object
 Getter for property 
allTags. Contains an array of the String type tags available for selection during the card update. 
 Default value is []
Returns:
| {object} | the value of property allTags | 
 getAttachmentFilename(): string
 Getter for property 
attachmentFilename. Stores the name of the file attached to the card. 
 Default value is empty/undefined
Returns:
| {string} | the value of property attachmentFilename | 
 getAttachmentUrl(): string
 Getter for property 
attachmentUrl. Stores the address of the file attached to the card. 
 Default value is empty/undefined
Returns:
| {string} | the value of property attachmentUrl | 
 getBody(): string
 Getter for property 
body. Stores the Note Taker card body text. 
 Default value is empty/undefined
Returns:
| {string} | the value of property body | 
 getHeader(): string
 Getter for property 
header. Stores the Note Taker card header. 
 Default value is empty/undefined
Returns:
| {string} | the value of property header | 
 getIsFiltered(): boolean
 Getter for property 
isFiltered. Shows whether the note card is hidden by the applied filter. 
 Default value is false
Returns:
| {boolean} | the value of property isFiltered | 
 getTags(): object
 Getter for property 
tags. Contains an array of the String type tags applied to the current card. 
 Default value is []
Returns:
| {object} | the value of property tags | 
 getThumbDown(): boolean
 Getter for property 
thumbDown. Indicates negative information for the card. 
 Default value is empty/undefined
Returns:
| {boolean} | the value of property thumbDown | 
 getThumbUp(): boolean
 Getter for property 
thumbUp. Indicates positive information for the card. 
 Default value is empty/undefined
Returns:
| {boolean} | the value of property thumbUp | 
 getTimestamp(): object
 Getter for property 
timestamp. Stores a timestamp of the Note Taker card. 
 Default value is new Date()
Returns:
| {object} | the value of property timestamp | 
 getUid(): string
 Getter for property 
uid. The card ID. This property should be set by an application developer. 
 Default value is empty/undefined
Returns:
| {string} | the value of property uid | 
 getViewAllTrigger(): int
 Getter for property 
viewAllTrigger. The View All link appears in the Note Taker card if a body text length exceeds the specified value. 
 Default value is 1800
Returns:
| {int} | the value of property viewAllTrigger | 
 Setter for property 
allTags. 
 Default value is []
Parameters:
| {object} | oAllTags | new value for property allTags | 
Returns:
 Setter for property 
attachmentFilename. 
 Default value is empty/undefined
Parameters:
| {string} | sAttachmentFilename | new value for property attachmentFilename | 
Returns:
 Setter for property 
attachmentUrl. 
 Default value is empty/undefined
Parameters:
| {string} | sAttachmentUrl | new value for property attachmentUrl | 
Returns:
 Setter for property 
body. 
 Default value is empty/undefined
Parameters:
| {string} | sBody | new value for property body | 
Returns:
 Setter for property 
header. 
 Default value is empty/undefined
Parameters:
| {string} | sHeader | new value for property header | 
Returns:
 Setter for property 
isFiltered. 
 Default value is false
Parameters:
| {boolean} | bIsFiltered | new value for property isFiltered | 
Returns:
 Setter for property 
tags. 
 Default value is []
Parameters:
| {object} | oTags | new value for property tags | 
Returns:
 Setter for property 
thumbDown. 
 Default value is empty/undefined
Parameters:
| {boolean} | bThumbDown | new value for property thumbDown | 
Returns:
 Setter for property 
thumbUp. 
 Default value is empty/undefined
Parameters:
| {boolean} | bThumbUp | new value for property thumbUp | 
Returns:
 Setter for property 
timestamp. 
 Default value is new Date()
Parameters:
| {object} | oTimestamp | new value for property timestamp | 
Returns:
 Setter for property 
uid. 
 Default value is empty/undefined
Parameters:
| {string} | sUid | new value for property uid | 
Returns:
 Setter for property 
viewAllTrigger. 
 Default value is 1800
Parameters:
| {int} | iViewAllTrigger | new value for property viewAllTrigger | 
Returns: