Oracle Forms Developer 6i:在 ENTER_QUERY 模式后 EXECUTE_QUERY 不起作用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17387073/
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
Oracle Forms Developer 6i: EXECUTE_QUERY do not working after ENTER_QUERY Mode
提问by Iqbal Hossain
I have 2 data block 'Employee' as master and 'Employee_Details' as details and 1 control block for navigation. I have used my menu and usually the default developer toolbar was not appeared. So I place a Enter-Query button to serve the purpose. I used when-button-pressed trigger.
我有 2 个数据块 'Employee' 作为主数据块,'Employee_Details' 作为详细信息和 1 个用于导航的控制块。我使用了我的菜单,通常没有出现默认的开发人员工具栏。所以我放置了一个 Enter-Query 按钮来达到这个目的。我使用了按下按钮时的触发器。
GO_BLOCK('EMPLOYEE');
IF :System.Mode = 'NORMAL' THEN
Enter_Query;
ELSE
EXECUTE_QUERY;
END IF;
In first trigger the Form goes to Enter-Query Mode. But when I pressed for Execute_Query it does not work. Rather it shows in status bar to press F8 to do query and Ctrl+q for cancel. I tried it to place the code in different button but not working. I do not want to press F8 for execute query. Why my button code not working for Executing Query? Have you any solution?
在第一次触发时,表单进入输入查询模式。但是当我按下 Execute_Query 时它不起作用。而是显示在状态栏中按 F8 进行查询,按 Ctrl+q 取消。我尝试将代码放在不同的按钮中但不起作用。我不想按 F8 执行查询。为什么我的按钮代码不能用于执行查询?你有什么解决办法吗?
采纳答案by nightfox79
The problem probably is that there are a few options with your trigger. One of them is if it will fire when in enter query mode. Because you are in enter-query mode right now this switch should be true. Then it will work.
问题可能是您的触发器有几个选项。其中之一是在进入查询模式时是否会触发。因为您现在处于输入查询模式,所以这个开关应该是真的。然后它会起作用。
The default for the switch is false, so no trigger will fire in enter-query mode.
开关的默认值为 false,因此在输入查询模式下不会触发触发器。