oracle APEX:apex_application.g_print_error_message 问题
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5141039/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
APEX: apex_application.g_print_error_message problem
提问by macwadu
When i'm using this command
当我使用这个命令时
apex_application.g_print_success_message := '<span style="color:GREEN">Message</span>';
apex_application.g_print_success_message := '<span style="color:GREEN">Message</span>';
to show success message is works fine
显示成功信息工作正常
but when i used the error command apex_application.g_print_error_message
it gives me this error, anyone can help-me
但是当我使用错误命令时,apex_application.g_print_error_message
它给了我这个错误,任何人都可以帮助我
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
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
采纳答案by Tony Andrews
apex_application.g_print_error_message
is a variable, so you can set it to a value like '<span style="color:GREEN">Message</span>' but you can't executeit as a "command".
apex_application.g_print_error_message
是一个变量,因此您可以将其设置为“<span style="color:GREEN">Message</span>”之类的值,但您不能将其作为“命令”执行。
回答by CatSleeping
No apex_application.g_print_error_message
is available, only apex_application.g_print_success_message
is.
没有apex_application.g_print_error_message
可用,只有apex_application.g_print_success_message
是。
Can try apex_error
package. See Using APEX_ERROR to manage custom error messages.
可以试试apex_error
包。请参阅使用 APEX_ERROR 管理自定义错误消息。