---
title: "SQL-034: clsMenuItem"
summary: Update statement for clsMenuItem.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Menu
reference_type: package
---

# SQL-034: clsMenuItem

Updates an existing menu item record in `MENU_ITEM`. `UPDATE_DATE` is set to `SYSDATE`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-034 |
| **Operation type** | Update |
| **Execution method** | Inline SQL |
| **Database** | Oracle |
| **Schema** | `[unqualified]**` |
| **Command type** | Text |
| **Business object** | `clsMenuItem` |
| **Criteria property** | `UpdateSQL` |
| **Lifecycle method** | `BeforeUpdate` / `AfterUpdate` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:MenuPageSeqNum` | Input | Decimal** | N/A | Parent page FK bound from `MenuPageSeqNum`. |
| `:MenuCategoryCode` | Input | String** | 5 | Category code bound from `MenuCategoryCode`. |
| `:VisibleFlag` | Input | String** | 1 | Visibility flag bound from `IsVisible.ToY_N_String`. |
| `:PageOrder` | Input | Decimal** | N/A | Display order bound from `PageOrder`. |
| `:ToolTip` | Input | String** | 1000 | Tooltip text bound from `m_ToolTip`. |
| `:UserId` | Input | String** | 30 | Update user bound from `DataPortalInfo.UserID`. |
| `:MenuItemSeqNum` | Input | Decimal** | N/A | WHERE key bound from `MyCriteria.MenuItemSeqNum`. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [MENU_ITEM](../database-tables.md#menu-item) | UPDATE | `MENU_PAGE_SEQ_NUM`, `MENU_CATEGORY_CODE`, `TOOL_TIP_TXT`, `VISIBLE_FLAG`, `PAGE_ORDER_NUM`, `UPDATE_DATE`, `UPDATE_USER` (WHERE `MENU_ITEM_SEQ_NUM`) |

## Sample SQL

```sql
Update MENU_ITEM
Set MENU_PAGE_SEQ_NUM = :MenuPageSeqNum,
    MENU_CATEGORY_CODE = :MenuCategoryCode,
    TOOL_TIP_TXT = :ToolTip,
    VISIBLE_FLAG = :VisibleFlag,
    PAGE_ORDER_NUM = :PageOrder,
    UPDATE_DATE = SYSDATE,
    UPDATE_USER = :UserId
Where MENU_ITEM.MENU_ITEM_SEQ_NUM = :MenuItemSeqNum
```

## Operations and processes
- [Menu tree construction](../operations/menu-tree-construction.md)


## Business rules
- [BR-MNU-02: DML row-count enforcement](../business-rules.md#br-mnu-02-dml-row-count-enforcement)


> **Note:** Statements marked with `*` were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with `**` could not be confirmed; treat as unknown until verified.

## Sources
- `Business\SAIF.Business.Menu\clsMenuItem.vb`
