I have a application process on button Create :-
DECLARE
begin
IF PACKAGENAME.FUNCTIONNAME(PARAMETERS)=1 THEN
apex_application.g_print_success_message := 'Record Already exist for same schedule';
ELSE
INSERT PROCESS
END IF;
END ;
With apex_application.g_print_success_message everything works fine but
if i am using apex_application.g_print_error_message
giving following error
ORA-06550: line 10, column 20: PLS-00302: component 'G_PRINT_ERROR_MESSAGE' must be declared ORA-06550: line 10, column 3: PL/SQL: Statement ignored

Because
apex_application.g_print_error_message is a variable,
but you can't execute it as a "command"
But my question is can we change the background color of apex_application.g_print_success_message
to red not just text ?is it possible .