EFTPopup reason-code selection¶
This operation renders a generic reason-code selection popup and returns the chosen code to the hosting page; it performs no delegated data access of its own.
| Field | Value |
|---|---|
| Operation ID | OP-2 |
| Trigger | Hosting page sets Active = True, DDLSource (a caller-supplied list), TitleText, DDLDescription, optional DefaultCode. |
| Inputs | DDLSource, TitleText, DDLDescription, DefaultCode |
| Outputs | ConfirmAction(Confirm, NotifyEventArgs) |
| Primary components | EFTPopup.CreateChildControls, EFTPopup.LoadCodeTables, EFTPopup.SaveButtonClick, EFTPopup.CancelButtonClick |
| Entry point | SAIF.Presentation.Web.Controls.PopUps.Infragistics111\EFTPopup.vb |
Steps¶
CreateChildControls()parses the ASCX, findslblErrorMsg/lblTitleBar/lblDDLDescr/ddlReason, wiresddlReasonIndexChanged,cmdSave.Click → SaveButtonClick,cmdCancel.Click → CancelButtonClick, then callsLoadCodeTables().LoadCodeTables()bindsddlReasonfrom the caller-suppliedDDLSourceand selectsDefaultCodeif set, else the first item (and stores that as the newDefaultCode).- On dropdown change, the
DefaultCodeview-state value is updated to the newly selected value. Render()(whenActive) sets label texts fromTitleText/ErrorMsg/DDLDescription, positions the popup, re-enables Save/Cancel, renders, and focusesddlReason(orControlWithFocus) viaigedit_getById/document.getElementById.- On Save (
SaveButtonClick): - Calls the no-op
EditNotifyControls()validation, which always returnsTrue— no actual validation logic is implemented*. - Raises
ConfirmAction(True, New NotifyEventArgs(ddlReason.SelectedValue)). - On Cancel (
CancelButtonClick): - Raises
ConfirmAction(False, ...)with the current selection. - Calls
ResetControls()(clearsErrorMsg/ControlWithFocus).
Process flow¶
The following diagram visualizes the reason-code selection flow.
flowchart TD
Start([Hosting page sets Active = True, DDLSource]) --> Create[CreateChildControls parses ASCX]
Create --> Load[LoadCodeTables binds ddlReason]
Load --> Render[Render popup, focus dropdown]
Render --> Action{Save or Cancel}
Action -->|Save| Validate[EditNotifyControls no-op, always True]
Validate --> Confirm([ConfirmAction True with NotifyEventArgs])
Action -->|Cancel| Reset[ResetControls]
Reset --> Cancel([ConfirmAction False])
Failure and edge-case behavior¶
EditNotifyControls()is a no-op validation stub that always returnsTrue— unclear whether this is intentional (validation deferred to hosting page) or an incomplete implementation**.
Related documentation¶
Sources¶
SAIF.Presentation.Web.Controls.PopUps.Infragistics111\EFTPopup.vbSAIF.Presentation.Web.Controls.PopUps.Infragistics111\EFTPopup.ascx