【问题标题】:how to add a checkbox with condition in oracle apex如何在 oracle apex 中添加带有条件的复选框
【发布时间】:2018-04-26 13:03:38
【问题描述】:

我在 oracle apex 中创建了一个表格形式(旧页面),并且在某些列中我给出了类型复选框。我只想添加一个条件,如果该列值为“y”,则它已经被选中,否则未选中。 请帮我解决这个问题。

【问题讨论】:

  • 如果您有任何解决方案,请给出。

标签: oracle checkbox oracle-apex


【解决方案1】:

您可以通过在 select 查询中添加 case 语句并在那里给出条件来做到这一点。

【讨论】:

    【解决方案2】:

    像这样设置 SQL 查询:

    select ID, name, my_column
    APEX_ITEM.CHECKBOX2( 
    p_idx => 2, p_value => ID, 
    p_checked_values => case when my_column = 'Y' then ID else null end
    ) checkbox
    from my_table;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-06-06
      • 1970-01-01
      • 2013-03-10
      • 1970-01-01
      • 1970-01-01
      • 2012-01-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多