Skip to content

SQL-037: Update a group membership

This statement is the UpdateSQL implementation of clsMenuSecurityUser.Criteria, executed from BeforeUpdate against MENU_SECURITY_USER. Update a group membership.

Classification

Field Value
SQL ID SQL-037
Operation type Update
Execution method Inline SQL
Database Oracle
Schema [unqualified]**
Command type Text
Business object clsMenuSecurityUser
Criteria property UpdateSQL
Lifecycle method BeforeUpdate

Parameters

Parameter Direction Type Max length Description
:SecurityGroupTxt Input String 255 Security-group name
:MenuUser Input String 30 Menu user account name
:MenuUserID Input String 11 Employee ID stored alongside the membership
:MenuSecurityUserSeq Input Decimal N/A Membership row key

Tables

Table Access Columns used
MENU_SECURITY_USER UPDATE SECURITY_GROUP_TXT, MENU_USER, MENU_USER_EMPLID (SET); MENU_SECURITY_USER_SEQ_NUM (WHERE)

Sample SQL

-- Update a group membership
Update
  MENU_SECURITY_USER
Set
  SECURITY_GROUP_TXT = :SecurityGroupTxt,
  MENU_USER = :MenuUser,
  MENU_USER_EMPLID = :MenuUserID
Where
  MENU_SECURITY_USER.MENU_SECURITY_USER_SEQ_NUM = :MenuSecurityUserSeq

Operations and processes

Business rules

Note: Statements marked with ** could not be confirmed; treat as unknown until verified.

Sources

  • SAIF.Business.Menu/clsMenuSecurityUser.vb