APEX中的PREPARE_URL函数;链接模式对话框 [英] PREPARE_URL Function in APEX; Linking a modal dialog

查看:179
本文介绍了APEX中的PREPARE_URL函数;链接模式对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在APEX(版本:18.1.0.00.45)中使用模式对话框时遇到问题.我试图在HTML中创建一个链接按钮,作为静态内容"的一部分,最终导致以下问题:

I have an issue using modal dialogs in APEX (version: 18.1.0.00.45). I am trying to create a link button in HTML as a part of the "Static Content" and ended up with following:

<button type="button" onclick="window.location.href='f?p=200:3:&APP_SESSION.::::P3_VALUE1,P3_VALUE2,P3_VALUE3:2,&P2_OUTPUT.,17';">Text</button>.

在普通页面上也可以正常工作.但是,使用模式对话框时,出现以下错误:

It works just fine with normal pages. But with modal dialog I get a following error:

应用程序200对话框第3页无法成功播放. 确保第3页上使用的模板的类型为对话框页" 并定义了相应的代码以初始化,关闭和取消 JavaScript对话框.

Application 200 Dialog page 3 can not be played back successfully. Make sure that the template used on page 3 has the type "dialog page" and the corresponding code is defined to initialize, close and cancel the JavaScript dialog.

此页面的安全性与其他页面上的定义相同.

Security of this page is defined in the same way as on other pages.

据我所知,有可能使用PREPARE_URL函数.但是我不知道如何用HTML做到这一点.

As far as I know there is a possibility to use PREPARE_URL Function. But I have no idea how to do it in HTML.

推荐答案

这是我为这个问题添加了书签的答案,尽管在蓝色的月亮中只需要使用一次即可. https://community.oracle.com/thread/4034653

This is the answer I have bookmarked for this problem, though only need it once in a blue moon. https://community.oracle.com/thread/4034653

它基本上是在渲染时生成链接,但它完全取决于您要如何使用它.

It basically generates the link on render, but it depends exactly how you want to use it.

这篇关于APEX中的PREPARE_URL函数;链接模式对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆