45.26 GET_PLSQL_EXPRESSION_RESULT Function
This function executes a PL/SQL expression and returns a result. This function also performs the binding of any bind variables in the provided PL/SQL expression. This function is usually used for plug-in attributes of type PL/SQL expression.
Syntax
APEX_PLUGIN_UTIL.GET_PLSQL_EXPRESSION_RESULT (
p_plsql_expression IN VARCHAR2,
p_auto_bind_items IN BOOLEAN DEFAULT TRUE,
p_bind_list IN t_bind_list DEFAULT c_empty_bind_list )
RETURN VARCHAR2;
Parameters
Parameter | Description |
---|---|
p_plsql_expression_result |
A PL/SQL expression that returns a string. |
p_auto_bind_items |
Whether to auto-bind APEX items (page and application items). |
p_bind_list |
Additional bind variables to be used for the SQL query. |
Return
Return | Description |
---|---|
VARCHAR2 |
String result value returned by the PL/SQL Expression. |
Example
This example executes and returns the result of the PL/SQL expression which is specified in attribute_03
of an item type plug-in attribute of type PL/SQL Expression
.
l_result := apex_plugin_util.get_plsql_expression_result (
p_plsql_expression => p_item.attribute_03 );
Parent topic: APEX_PLUGIN_UTIL