PolicyActivityPopup note capture¶
This operation captures a Category/Type (with a free-form override) and note text for a Policy Activity note, and offers an optional Save-and-Email confirmation path.
| Field | Value |
|---|---|
| Operation ID | OP-5 |
| Trigger | Hosting page sets Active, TaskID, NoteCategoryCode/Descr, MemoTypeCodes collection. |
| Inputs | TaskID, NoteCategoryCode, NoteCategoryDescr, NoteText, MemoTypeCodes |
| Outputs | ConfirmAction(Confirm, PolicyNoteEventArgs) |
| Primary components | PolicyActivityPopup.CreateChildControls, PolicyActivityPopup.RaiseCallbackEvent, PolicyActivityPopup.GetCallbackResult, PolicyActivityPopup.SaveButtonClick, PolicyActivityPopup.SaveEmailButtonClick |
| Entry point | SAIF.Presentation.Web.Controls.PopUps.Infragistics111\PolicyActivityPopup.vb |
Steps¶
CreateChildControls()parses the ASCX, resolves title/category labels, and (ifActive) bindsddlTypefrom the caller-suppliedMemoTypeCodescollection; wires a client callback (GetCallbackEventReference) so that changing the Type dropdown invokesCheckForFreeFormclient-side and posts the selected code back throughICallbackEventHandler.RaiseCallbackEvent(eventArgument)stores the posted type code intoNoteTypeCode;GetCallbackResult()returns it back to the client script.- Client-side
CheckForFreeFormshows/hides a "Freeform" text box when the special type code"FF"is selected. Render()populatestxtNoteTextfromNoteText, positions the popup, sets the category description label, enables the Type dropdown, and focusesddlType.- On Save (
SaveButtonClick) or Save-and-Email (SaveEmailButtonClick): - Reads the free-form text (if present) or the dropdown's display text as
typeText. - Raises
ConfirmAction(True, New PolicyNoteEventArgs(TaskID, NoteCategoryCode, typeText, noteText, sendEmail))—sendEmailisTrueonly for the Save-and-Email path. - On Cancel, raises
ConfirmAction(False, New PolicyNoteEventArgs(TaskID, "", "", "", False)).
Process flow¶
The following diagram visualizes the policy-activity note capture flow.
flowchart TD
Start([Hosting page sets Active = True]) --> Create[CreateChildControls binds MemoTypeCodes]
Create --> Type{User changes Type dropdown}
Type -->|FF selected| FreeForm[Show Freeform text box via CheckForFreeForm callback]
Type -->|Other| Render[Render popup]
FreeForm --> Render
Render --> Action{Save, Save+Email, or Cancel}
Action -->|Save| Confirm([ConfirmAction True, sendEmail = False])
Action -->|Save+Email| ConfirmEmail([ConfirmAction True, sendEmail = True])
Action -->|Cancel| Cancel([ConfirmAction False, empty args])
Failure and edge-case behavior¶
- No explicit validation is performed on the note text or type selection beyond the free-form toggle before raising
ConfirmAction*.
Related documentation¶
Sources¶
SAIF.Presentation.Web.Controls.PopUps.Infragistics111\PolicyActivityPopup.vbSAIF.Presentation.Web.Controls.PopUps.Infragistics111\PolicyActivityPopup.ascx