报告中的条件链接
您能否让一列显示基于报告中另一列的文本或链接?
我能想到的唯一方法是使用锚标记将文本更改为带有 SQL 查询的链接。
还有别的办法吗?
Can you have a column display either text or a link based on another column in the report?
The only way I can think of is to change to text to a link with the SQL query using anchor tags.
Is there another way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
没有。在 IR 中执行此操作实际上是不可能的,因为您需要隐藏列。但是将列设置为隐藏不会再将它们输出到 html 中,因此无法通过 JS 进行定位。报告上显示的列是可能的,但这很快就会变得混乱。
不过,使用经典报告相当简单(奇怪的是,只有在回答这个后才发现这个):查看此链接
如果您想更进一步,那么确实可以通过选择输出,或者使用 javascript 定位隐藏列并使用它们的值来操纵另一列的值。仅经典报告。
Nope. Doing this in an IR is not really possible, because you'd need hidden columns. But setting columns to hidden doesn't output them into html anymore, so not targetable through JS. It'd be possible with the columns shown on the report, but that gets messy fast.
Using classic reports though, it is rather easy (and oddly enough, only found this after answering this): See this link
If you want to take it even further, then indeed, output through your select, or use javascript to target hidden columns and use their values to manipulate the value of another column. Classic report only.
我刚刚描述了一种方法在此博客文章。这使用普通的 APEX 列链接方法以及一些 CSS 和 Javascript 来使其成为条件。请注意,我今天才提出这个解决方案,它可能存在我尚未意识到的问题!
I have just described a way to do it in this blog post. This uses the normal APEX column link method with some CSS and Javascript to make it conditional. Beware that I only came up with this solution today and it may have issues I'm not yet aware of!