NotifyPopup notify-task capture¶
This operation captures a Notify ID, Notify Date, and Notify Text for a Task/Notify entry, enforcing required-field and date validation before confirming the entry to the hosting page.
| Field | Value |
|---|---|
| Operation ID | OP-4 |
| Trigger | Hosting page sets Active = True, TitleText, optional prior field values. |
| Inputs | TitleText, ControlWithFocus, prior txtNotifyID/wdteNotifyDate/txtNotifyText values |
| Outputs | ConfirmAction(Confirm, NotifyEventArgs) |
| Primary components | NotifyPopup.CreateChildControls, NotifyPopup.EditNotifyControls, NotifyPopup.SaveButtonClick, NotifyPopup.CancelButtonClick |
| Entry point | SAIF.Presentation.Web.Controls.PopUps.Infragistics111\NotifyPopup.vb |
Steps¶
CreateChildControls()parsesNotifyPopup.ascx, resolvestxtNotifyID,wdteNotifyDate(InfragisticsWebDateTimeEdit),txtNotifyText,lblErrorMsg,lblTitleBar; wires Save/Cancel handlers.Render()sets title/error labels, wires anonblurontxtNotifyIDto call the clientSetNotifyDateDefault()helper, positions the popup, enables buttons, renders, and focusesControlWithFocus(default"txtNotifyID").- On Save,
EditNotifyControls()enforces (BR-POPUP-003): - Notify ID required (
MSG_ENTER_VALID_NOTIFY_ID). - If ID present, a valid (non-
MinValue) Notify Date is required (MSG_ENTER_VALID_NOTIFY_DATE). - The Notify Date cannot be before today (
MSG_NOTIFY_DATE_PRIOR_TO_TODAY). - If valid, raises
ConfirmAction(True, New NotifyEventArgs(id, date, text)). - On Cancel, raises
ConfirmAction(False, ...)with current values then callsResetControls()(clears all fields andErrorMsg).
Process flow¶
The following diagram visualizes the notify-task capture flow.
flowchart TD
Start([Hosting page sets Active = True]) --> Create[CreateChildControls parses ASCX]
Create --> Render[Render popup, focus ControlWithFocus]
Render --> Action{Save or Cancel}
Action -->|Save| Validate{EditNotifyControls valid?}
Validate -->|Yes| Confirm([ConfirmAction True with NotifyEventArgs])
Validate -->|No| Error([ErrorMsg set, focus offending field])
Action -->|Cancel| Reset[ResetControls]
Reset --> Cancel([ConfirmAction False])
Failure and edge-case behavior¶
- Missing Notify ID, missing/invalid Notify Date, or a past-dated Notify Date each block confirmation and set
ErrorMsg/ControlWithFocusto the offending field (BR-POPUP-003).
Related documentation¶
Sources¶
SAIF.Presentation.Web.Controls.PopUps.Infragistics111\NotifyPopup.vbSAIF.Presentation.Web.Controls.PopUps.Infragistics111\NotifyPopup.ascx