简体   繁体   English

Oracle Apex 5.1:基于LOV(值列表)的报告列显示返回值而不显示值

[英]Oracle Apex 5.1: Report column based on LOV(List of values) showing returned value not display value

I have created an interactive report with a form. 我用表格创建了一个交互式报告。 In the form I have two select lists. 在表单中,我有两个选择列表。 The first select list is a list of values defined in the shared component. 第一个选择列表是在共享组件中定义的值的列表。 And the second select list is another list of values which is also defined in the shared component but this select list populates its LOV based on the selected item in the first select list. 第二选择列表是在共享组件中也定义的另一个值列表,但是此选择列表基于第一选择列表中的选择项填充其LOV。

Let the names of the select lists are: 让选择列表的名称为:

  1. Region. 区域。
  2. Country(which is dependent on the selected item in Region field). 国家(取决于“区域”字段中选择的项目)。

Now when I press save/create button in the form, a row is created in the report. 现在,当我按表单中的保存/创建按钮时,将在报告中创建一行。 The Region column and Country column in the report are both "Plain Text(based on List of Values)". 报告中的“地区”列和“国家/地区”列均为“纯文本(基于值列表)”。 But what I see is the Region column is showing the correct display value of the LOV but the Country column is showing the returned value of the LOV. 但是我看到的是Region列显示了LOV的正确显示值,而Country列却显示了LOV的返回值。

I want both of these columns show the display values rather than the returned value. 我希望这两列都显示显示值而不是返回值。 Could anyone help me find the solution? 谁能帮我找到解决方案?

Are you using the same LOVs in form and interactive report? 您是否在表单和交互式报告中使用相同的LOV? If so and in the conditional LOV (countries) you refer your form item (ex. PX_REGION) it will not work correctly in IR. 如果是这样,并且您在有条件的LOV(国家/地区)中引用了表单项(例如PX_REGION),则它在IR中将无法正常工作。 Probably IR is showing the returned value because the option "show extra values" is checked. 因为选中了“显示额外的值”选项,所以IR可能正在显示返回的值。

If this is the case my suggestion is to change your IR and instead of a "Plain Text(based on List of Values)" you make it plain text and change the query to an inline query in IR query to obtain the value you want to show. 如果是这种情况,我的建议是更改您的IR,而不是“纯文本(基于值列表)”,则将其设置为纯文本,然后将查询更改为IR查询中的内联查询,以获得您想要的值节目。

If you don't want/like to put your LOV queries in different places I suggest you to use this approach shared by Nick Buytaert 如果您不想/喜欢将LOV查询放在其他位置,建议您使用Nick Buytaert共享的这种方法

Hope this helps you solve your problem. 希望这可以帮助您解决问题。

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

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