简体   繁体   English

来自 LOV 值的 Oracle Apex 列链接

[英]Oracle Apex column link from LOV values

Can you please advise if below is even possible.您能否建议以下是否甚至可能。 Using Oracle 11g and APEX 4.2.6.使用 Oracle 11g 和 APEX 4.2.6。

I have a data grid that brings all tasks from a master table.我有一个数据网格,可以从主表中获取所有任务。 But show the task name via a LOV.但是通过 LOV 显示任务名称。

I am trying to add links, via Column links.我正在尝试通过列链接添加链接。 But I must turn off the LOV to make this work.但我必须关闭 LOV 才能完成这项工作。 Which would give me link.这会给我链接。 But this is not very helpful.但这不是很有帮助。

Example below.下面举例。

<a href="f?p=103:5:7907259112753::NO::P5_MAST_ID:44193">44193</a>

Is there a way, so I can still use a LOV.有没有办法,所以我仍然可以使用LOV。 So that the return value gives me the ID for the link, but the Display value gives me the anchor text.所以返回值给了我链接的 ID,但显示值给了我锚文本。

Example below.下面举例。

<a href="f?p=103:5:7907259112753::NO::P5_MAST_ID: 44193">Weekend</a>

Many thanks非常感谢

I'm mostly used to Apex 4.1, but this approach should work.我主要习惯于 Apex 4.1,但这种方法应该有效。

You don't need an LOV.你不需要 LOV。 Your report query should include both the MAST_ID and the TASK_NAME columns.您的报告查询应同时包含MAST_IDTASK_NAME列。 Hide the TASK_NAME column and set MAST_ID as the linking column.隐藏TASK_NAME列并将MAST_ID设置为链接列。 If you set the Link Text (under Column Link ) to #TASK_NAME# , you should get the desired result.如果您将链接文本(在Column Link 下)设置为#TASK_NAME# ,您应该会获得所需的结果。 Display As should be left at the default ( Display as Text etc). Display As应保留为默认值( Display as Text等)。

他们现在添加了一个新功能,您可以在其中添加指向您的项目的链接:“链接”属性。

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

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