英文:
Oracle Apex Do not close dialog after button is pressed
问题
我有一个弹出窗口,有两个按钮。
更新
更新为空
停用
之前,“更新”用于将对话框中的文本项更新为网格。因此,当单击“更新”时,对话框关闭。
“更新为空”用于将项目的值设置为null。单击此按钮将更新为null并关闭对话框。
“停用”按钮用于停用对话框中的复选框。单击该按钮也会关闭对话框。
现在,要求是仅当按下“更新”和“更新为空”按钮时对话框才能关闭。当按下“停用”按钮时,它不应关闭。
目前,“停用”按钮的属性如下:
操作:提交页面
执行验证:是
并在处理中,将值设置为:P1_Checkbox 到 'N'。
最后还有一个关闭对话框的过程。
英文:
I have a pop-up with 2 buttons.
Update
Update to null
Deactivate
Earlier, Update was used to update the text item in the dialog to grid. So when Update is clicked dialog closes.
Update to null is used to set the value of item to null. When this button is clicked it updates to null and closes dialog.
Deactivate button was to deactivate a checkbox in the dialog. When the button was clicked it'd close the dialog too.
Now , the requirement is, the dialog should close only when Update and Update to null buttons are pressed. When Deactivate button is pressed, it shouldn't close.
Currently, Deactivate button properties are:
Action: Submit Page
Execute Validations: yes
And in processing, set value :P1_Checkbox to 'N'.
There's also a Close dialog process at the end.
答案1
得分: 1
The dialog is closed because by the "Close Dialog" page process. You could put a server side condition of type "REQUEST is contained in value" with value "UPDATE,UPDATE_TO_NULL". That way the close dialog process will only be fired when either of those buttons are clicked.
The "REQUEST" value on submit of the page is the Name of the button. In my example above I'm assuming the button with label "Update" has name "UPDATE" and the button with label "Update to NULL" has name "UPDATE_TO_NULL"。
英文:
The dialog is closed because by the "Close Dialog" page process. You could put a server side condition of type "REQUEST is contained in value" with value "UPDATE,UPDATE_TO_NULL". That way the close dialog process will only be fired when either of those buttons are clicked.
The "REQUEST" value on submit of the page is the Name of the button. In my example above I'm assuming the button with label "Update" has name "UPDATE" and the button with label "Update to NULL" has name "UPDATE_TO_NULL"
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论