简体   繁体   English

在交互式报表中创建列链接 -Oracle Apex

[英]Creating a Column Link in an Interactive Report -Oracle Apex

I am using Apex 20.1.0.00.13, trying to create link on a column of a Classic Report.我正在使用 Apex 20.1.0.00.13,试图在经典报告的列上创建链接。

I have followed the step to create the link for a column and redirect it to a page in the same application as the steps below:我已按照以下步骤为列创建链接并将其重定向到与以下步骤相同的应用程序中的页面:

To create a link to another page, in the Link Builder - Target dialog: Type - Select Page in this Application.要创建指向另一个页面的链接,请在 Link Builder - Target 对话框中: 在此应用程序中键入 - Select Page。 Page - Specify the target page number.页 - 指定目标页码。 Set Items - Select a Name and Value to specify session state for an item.设置项目 - Select 为项目指定 session state 的名称和值。 Clear Session State, Clear Cache - Specify the page numbers on which to clear cache.清除 Session State,清除缓存 - 指定要清除缓存的页码。 To specify multiple page, enter a comma-delimited list of page numbers.要指定多页,请输入以逗号分隔的页码列表。 Rest Pagination - Select Yes to reset pagination for this page.v Advanced, Request - Specify the request to be used. Rest 分页 - Select 是重置此页面的分页。v 高级,请求 - 指定要使用的请求。 Click OK.单击确定。

But when I am setting the item and values to specify session state for an item, the Set Items: Name doesn't populate the columns, it appears blank, Could someone let me know where I am going wrong.但是,当我设置项目和值以指定 session state 为项目时,设置项目:名称不会填充列,它显示为空白,有人可以让我知道我哪里出错了。

I am trying to achieve a link from page 1 say a row with dept no - 2, to be directed to page 2 with details of dept 2. Is there any other way to do it.我正在尝试从第 1 页实现一个链接,例如使用 dept no-2 的行,将其定向到第 2 页的第 2 页的详细信息。有没有其他方法可以做到这一点。 Since its a column and not an item I am unable to pass it as a parameter to the next page.由于它是一列而不是一个项目,我无法将其作为参数传递到下一页。

Thanks in advance !提前致谢 !

Right;正确的; there are no "items" here, you have to create hyperlinks within the report.这里没有“项目”,您必须在报告中创建超链接。

Suppose that this is classic report's query:假设这是经典报表的查询:

with test (id, name) as
  (select 1, 'Google' from dual union all
   select 2, 'Yahoo'  from dual union all
   select 3, 'Bing'   from dual
  )
select 
  id, 
  '<a href="' || case 
                  when name = 'Google' then 'https://www.google.com'
                  when name = 'Yahoo'  then 'https://www.yahoo.com'
                  when name = 'Bing'   then 'https://www.bing.com'
                end
              || '" target="_blank">' || name || '</a>' as link
from test
order by name;

Go to LINK column's properties and set "Escape special characters" to "No". Go 到LINK列的属性并将“转义特殊字符”设置为“否”。 Run the report;运行报告; everything should work OK.一切都应该正常。


If - as you say - use it to navigate to another page in your application and set some items to some values (from the IR), then you'd do something like this:如果 - 如您所说 - 使用它导航到应用程序中的另一个页面并将某些项目设置为某些值(来自 IR),那么您将执行以下操作:

SELECT   
  'f?p=&APP_ID.:217'            || 
  ':&APP_SESSION.::NO::P217_ID' || 
  ':' || r.id
  as link, ... 
FROM my_table r ...

In other words: it navigates to page 217 and passes r.id column value into P217_ID item which is located on page 217.换句话说:它导航到第 217 页并将r.id列值传递到位于第 217 页的P217_ID项。

link column from such a query can be referenced when creating a link column.创建link列时,可以引用此类查询中的链接列。 It would be a这将是一个

  • link to custom target链接到自定义目标
  • target type = URL目标类型 = URL
  • URL = #link# (literally, type #link# ) URL = #link# (字面意思是,输入#link#

Probably you could change and merge these two pages into one Master-Detail page.可能您可以将这两个页面更改并合并为一个主从页面。 This way you could use the built in lookup function.这样你就可以使用内置的查找 function。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM