Handle menu icon and Enter-key actions¶
Route clicks on the favourites-configuration icon, the hidden default-submit button, and the Enter-key link button to the correct event. This operation is implemented by SAIFMenu.MenuImage_Click, SAIFMenu.m_EnterControl_Click.
| Field | Value |
|---|---|
| Operation ID | OP-MENU-010 |
| Trigger | SAIFMenu.MenuImage_Click (icon clicks) and m_EnterControl_Click (hidden EC LinkButton postback). |
| Inputs | Clicked control identity; current ContextValue. |
| Outputs | MenuNavigate("MenuCache", "frmFavoriteMaint.aspx"); DefaultOnSubmit(); MenuNavigate("ContextValue", "ENTER"). |
| Primary components | SAIFMenu.MenuImage_Click, SAIFMenu.m_EnterControl_Click |
| Entry point | SAIF.Presentation.Web.Controls.V2.Menu/SAIFMenu.vb |
Steps¶
imgFavoriteConfigraisesMenuNavigate("MenuCache", "frmFavoriteMaint.aspx"). Enforces BR-MENU-049.imgDefaultOnSubmitraisesDefaultOnSubmit()so the host page can define Enter-key behaviour without triggering favourites maintenance. Enforces BR-MENU-050.- The hidden
EClink button stores the context value in session and raisesMenuNavigate("ContextValue", "ENTER"). Enforces BR-MENU-051.
Process flow¶
The following diagram visualizes this operation's control flow.
flowchart TD
Start(["SAIFMenu.MenuImage_Click / m_EnterControl_Click"]) --> Which{Which control?}
Which -->|imgFavoriteConfig| Fav(["Raise MenuNavigate("MenuCache", "frmFavoriteMaint.aspx")"])
Which -->|imgDefaultOnSubmit| Default(["Raise DefaultOnSubmit()"])
Which -->|Hidden EC link button| Store["Store context value in session"]
Store --> RaiseEnter(["Raise MenuNavigate("ContextValue", "ENTER")"])
Failure and edge-case behavior¶
- No exceptional failure paths beyond those noted in the steps above.
Related documentation¶
Sources¶
SAIF.Presentation.Web.Controls.V2.Menu/SAIFMenu.vb