Skip to main content
Skip table of contents

Note

Overview

Custom control for quick notes for entities.

This control allows users to capture plain text notes about specific entities (or children of the entity class) from a portlet.

Example

The following example is taken from "QuickNoteDetail" layout belonging to the "EntityNotes" portlet.
The control invokes the "addQuickNote" UI event, with the note passed in as the "parameter" argument.
The desired behavior for clicking on the "Save" button is implemented in the UI event.
Typically, the notes control is configured along with a List control to show the created notes.

Metadata configuration

XML
      <CustomView head="true" name="ctrlNote" type="md:Note">
         <Models>
            <Instance name="entity" value="(@)"/>
         </Models>
         <Configuration>
            <Properties actionCaption=""IDS_SUBMIT"" feedbackCaption=""ids.md.savedNote"" model="entity" textCaption=""idsc.QuickNote.controlHint""/>
         </Configuration>
      </CustomView>

"addQuickNote" UI event

XML
      <UIAction event="addQuickNote">
         <Script><![CDATA[(define act (message (: :class "Act") (: entity (@ model item)) (: note parameter)))
(@ invoke : act'createQuickNote)]]></Script>
      </UIAction>


The following image shows an example of the control's instantiation, marked by the black rectangle over the screen capture.

Explanation




JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.