首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >行过滤到af:table

行过滤到af:table
EN

Stack Overflow用户
提问于 2018-01-17 23:41:58
回答 1查看 637关注 0票数 0

我试图在af:table中启用过滤,但它没有返回任何结果。

代码语言:javascript
复制
<af:table value="#{bindings.PaisUVO.collectionModel}" var="row"
              rows="#{bindings.PaisUVO.rangeSize}"
              emptyText="#{bindings.PaisUVO.viewable ? 'No data to display.' : 'Access Denied.'}"
              fetchSize="#{bindings.PaisUVO.rangeSize}"
              rowBandingInterval="0" styleClass="AFStretchWidth"
              selectionListener="#{bindings.PaisUVO.collectionModel.makeCurrent}"
              rowSelection="single" id="t1" binding="#{pageFlowScope.paisMB.tableData}"
              scrollPolicy="page" autoHeightRows="0"
              filterModel="#{bindings.PaisUVOQuery.queryDescriptor}"
              queryListener="#{bindings.PaisUVOQuery.processQuery}"  filterVisible="true">
<af:column sortProperty="#{bindings.PaisUVO.hints.NewsiteOxiPaisesNome.name}"
                    sortable="false"
                    headerText="#{bundle['lbl_pais']}"
                    id="c7" filterable="true">
            <af:outputText value="#{row.NewsiteOxiPaisesNome}" id="ot2"/>
                <f:facet name="filter"/>
            </af:column>

还可以在pageDef.xml中正确设置searchRgion

代码语言:javascript
复制
<executables>
<iterator Binds="PaisUVO" RangeSize="5" DataControl="OxitenoAMDataControl"
          id="PaisUVOIterator" Sortable="true">
  <sortCriteria>
    <sort attribute="NewsiteOxiPaisesPk" ascending="false"/>
  </sortCriteria>
</iterator>
<searchRegion Binds="PaisUVOIterator" Criteria=""
              Customizer="oracle.jbo.uicli.binding.JUSearchBindingCustomizer"
              id="PaisUVOQuery"/>

还点击了这个链接:Row filtering

我使用的是jdev 11.1.1.7.0。谁能指出是什么导致了这个问题?

EN

回答 1

Stack Overflow用户

发布于 2018-01-18 08:04:18

如果在将表添加到页面时,只选中该行为的复选框,则默认情况下,筛选应该会起作用。查看此图像:本教程中的http://www.oracle.com/webfolder/technetwork/tutorials/obe/jdev/obe11jdev/ps1/ria_application/images/t059_Alt.gif - http://www.oracle.com/webfolder/technetwork/tutorials/obe/jdev/obe11jdev/ps1/ria_application/developriaapplication_long.htm

以这种方式创建一个页面,然后将其与您尝试手动修改的页面进行比较。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48304850

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档