【问题标题】:ADF Iterator without table row selection没有表格行选择的 ADF 迭代器
【发布时间】:2015-11-08 15:39:04
【问题描述】:

1.3 我有两个 adf 表,一个用于主控表,第二个用于主控详细信息瞬态 VO 的详细信息。 我正在以编程方式填充行以查看对象,当删除任何行时,迭代器仅包含所选行的详细信息。 例如: 1 -一个 -b

2 -C -d

3 -e -f

当我删除 2 时,迭代器仅包含所选项目:1-a-b

         ViewObject masterVO = this.getSearchAttributesTrVO();
    masterVO.executeQuery();

    RowSet masterList = (RowSet) masterVO;
    Row[] master = masterList.getAllRowsInRange();

    for (int x = 0; x < master.length; x++) {
        Row masterRow = master[x];

        System.out.println("*** master AttributeId=" + master[x].getAttribute("AttributeId"));

        RowSet detailList = (RowSet) masterRow.getAttribute("ConditionsVO");
        Row[] detail = detailList.getAllRowsInRange();

        for (int y = 0; y < detail.length; y++) {
            System.out.println("*** detail Id/AttributeId=" + detail[y].getAttribute("Id") + "/" +
                               detail[y].getAttribute("AttributeId"));
        }

所以我需要读取 VO 中的所有值,而不仅仅是所选项目的详细信息。

有什么建议吗?

【问题讨论】:

    标签: java oracle-adf jdeveloper


    【解决方案1】:

    我用

    解决了我的问题
    while (master.hasNext()) {
    //code here
       }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-24
      • 1970-01-01
      • 2015-07-04
      • 2020-06-05
      • 2021-03-27
      相关资源
      最近更新 更多