分支和维持地位
在 Oracle ApEx 中,我在一页上有 6 个区域。在区域 5 中,我有一个带有编辑按钮的报告,该按钮分支到另一个页面,我可以在其中编辑一些详细信息,点击保存按钮,然后返回到包含 6 个区域的原始页面。
但返回时,它会分支回到页面顶部,即区域 1 所在的位置。
有没有办法从我最初按下编辑按钮的地方分支回区域 5,而不是滚动到页面顶部?如果是这样,怎么办?
In Oracle ApEx, I have 6 regions on one page. Within Region 5, I have a report with an edit button that branches to another page, where I can edit some details, hit the save button, which then returns me back to the original page, with the 6 regions.
On return though, it branches back to the top of the page, where region 1 is.
Is there any way of branching back to region 5 from where I initially pressed the edit button instead of scrolling to the top of the page? If so, how?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅此示例页面。它有 3 个报告(都一样)。每个报告都有一个链接,可通过“取消”按钮将您带到另一个页面。当您取消时,它将返回第一页并滚动到您单击的报告。
工作原理:
在每个报告区域中,我在 HTML 标题中添加了一个命名锚点,如下所示:
在每个报告的链接中,我将像“REPORT1”这样的值传递给第二页中名为 P18_RETURN_ANCHOR 的项目(我使该项目可见只是为了帮助您遵循我的说明)有 )
在第二页的“取消”按钮中,我返回到第 17 页。在“使用这些值”属性中,我输入了
#&P18_RETURN_ANCHOR。
这具有将 #REPORT1 等标记添加到的效果URL 的末尾,这意味着“向下滚动到名为 REPORT1 的锚点”。 (这是标准浏览器行为,而不是特定于 Apex 的行为。)See this example page. It has 3 reports (all the same as it happens). Each report has a link that takes you to another page with a Cancel button. When you cancel, it returns to the first page and scrolls to the report you clicked from.
How it works:
In each of the report regions I added a named anchors in the HTML header like this:
<a name="REPORT1" />
In the links for each report I pass a value like "REPORT1" to an item called P18_RETURN_ANCHOR in the second page (I made this item visible just to help you follow what I have done; in reality you would probably use a hidden item).
In the second page's Cancel button I branch back to page 17. In the "with these values" property I put
#&P18_RETURN_ANCHOR.
This has the effect of adding a tag like #REPORT1 to the end of the URL, which means "scroll down to the anchor named REPORT1". (This is standard browser behaviour, not Apex-specific.)