如何在 Oracle APEX 中创建提交按钮模板?

发布于 2024-08-11 06:23:35 字数 241 浏览 2 评论 0原文

我正在尝试为 Oracle APEX 中的按钮创建模板,但我似乎无法访问适当的替换字符串以使其正常工作。对于非模板化按钮,APEX 似乎为调用 doSubmit('buttonName') 的 onclick 事件插入了一个处理程序,不幸的是,当我去创建模板时,我似乎可以访问的唯一替换字符串是#LINK#、#LABEL#、#BUTTON_ATTRIBUTES# 和 #BUTTON_ID#。如何获取按钮名称以使 doSubmit 正常工作?

I'm trying to create a template for a button in Oracle APEX but I don't seem to have access to the appropriate substitution strings to make it work. For non-templated buttons APEX seems to insert a handler for the onclick event that calls doSubmit('buttonName') Unfortunately, when I go to create a template the only substitution strings I seem to get access to are #LINK#, #LABEL#, #BUTTON_ATTRIBUTES#, and #BUTTON_ID#. How do I get to the button name in order to make the doSubmit work properly?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

属性 2024-08-18 06:23:35

使用href="#LINK#"。在运行时,Apex 会将其替换为 href="javascript:doSubmit('XXX')",其中“XXX”是与按钮关联的按钮请求值。

Use href="#LINK#". At runtime, Apex replaces this with href="javascript:doSubmit('XXX')" where 'XXX' is the Button Request Value associated with the button.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文