11.01.2013 Views

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SET_ALERT_PROPERTY built-in<br />

Description<br />

Changes the message text for an existing alert.<br />

Syntax<br />

SET_ALERT_PROPERTY<br />

(alert_id ALERT,<br />

property NUMBER,<br />

message VARCHAR2);<br />

SET_ALERT_PROPERTY<br />

(alert_name VARCHAR2,<br />

property NUMBER,<br />

message VARCHAR2);<br />

Built-in Type unrestricted procedure<br />

Enter Query Mode yes<br />

Parameters<br />

alert_id Specifies the unique ID (data type ALERT) that <strong>Form</strong> <strong>Builder</strong> assigns to the<br />

alert when it is created. Return the ID to an appropriately typed variable.<br />

alert_name Specifies the VARCHAR2 name of the alert.<br />

property Specifies the specific alert property you are setting:<br />

ALERT_MESSAGE_TEXT Specifies that you are setting the text of the<br />

alert message.<br />

TITLE Specifies the title of the alert. Overrides the value specified in<br />

<strong>Form</strong> <strong>Builder</strong> unless the property value is NULL.<br />

message Specifies the message that is to replace the current alert message. Pass the<br />

message as a string enclosed in single quotes, as a variable, or in a<br />

string/variable construction.<br />

SET_ALERT_PROPERTY restrictions<br />

If the message text exceeds 200 characters, it will be truncated.<br />

SET_ALERT_PROPERTY examples<br />

/*<br />

** Built-in: SET_ALERT_PROPERTY<br />

** Example: Places the error message into a user-defined alert<br />

** named ’My_Error_Alert’ and displays the alert.<br />

** trigger: On-Error<br />

*/<br />

DECLARE<br />

err_txt VARCHAR2(80) := Error_Text;<br />

al_id Alert;<br />

al_button Number;<br />

359

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!