Use this procedure to update a translatable text message for the specified application.
Note:
This procedure is available in Application Express release 4.2.3 and later.
Syntax
APEX_LANG.UPDATE_MESSAGE ( p_id IN NUMBER, p_message_text IN VARCHAR2 )
Parameters
Table 21-8 UPDATE_MESSAGE Parameters
| Parameter | Description | 
|---|---|
| 
 
  | 
 The ID of the text message.  | 
| 
 
  | 
 The new text for the translatable text message.  | 
Example
The following example demonstrates an update of an existing translatable text message.
begin
    --
    -- If running from SQL*Plus, we need to set the environment
    -- for the Application Express workspace associated with this schema. The
    -- call to apex_util.set_security_group_id is not necessary if
    -- you're running within the context of the App Builder
    -- or an Application Express application.
    --
    for c1 in (select workspace_id
                 from apex_workspaces) loop
        apex_util.set_security_group_id( c1.workspace_id );
        exit;
    end loop;
    -- Locate the ID of the specific message and update it with the new text
    for c1 in (select translation_entry_id
                 from apex_application_translations
                where application_id = 63969
                  and translatable_message = 'TOTAL_COST'
                  and language_code = 'ja') loop
        apex_lang.update_message(
            p_id => c1.translation_entry_id,
            p_message_text => 'The total cost is: %0');
        commit;
        exit;
    end loop;
end;
/
Parent topic: APEX_LANG