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

# SQL-031: clsApplicationCode

Updates an existing application code record in `BUSONLINE_APPS_CODE`. Note: the SQL text references `:ApplicaitonPath` (typo — missing 'p') while `BeforeUpdate` binds the correctly-named `ApplicationPath` parameter.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:Code` | Input | String** | 5 | WHERE key bound from `MyCriteria.Code`. |
| `:ApplicationPath` | Input | String** | 65 | Application path bound from `ApplicationPath`. |
| `:ActiveFlag` | Input | String** | 5 | Active status bound from `IsActive.ToY_N_String`. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [BUSONLINE_APPS_CODE](../database-tables.md#busonline-apps-code) | UPDATE | `CODE_DESCR`, `ACTIVE_CODE` (WHERE `CODE`) |

## Sample SQL

```sql
Update BUSONLINE_APPS_CODE
Set CODE_DESCR = :ApplicaitonPath,
    ACTIVE_CODE = :ActiveFlag
Where CODE = :Code
```

## Operations and processes
- [Application code scoping](../operations/application-code-scoping.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\clsApplicationCode.vb`
