[英]How to filter results of an adf table without changing query?
I have a table on my .jsf
page. 我的
.jsf
页面上有一张桌子。 I need to filter its results without changing the main query as this query is commonly used in the entire project. 我需要在不更改主查询的情况下过滤其结果,因为该查询在整个项目中都是常用的。 I need something like
我需要类似的东西
do not bring the results with rel_tp_id = 1128500
不带rel_tp_id = 1128500的结果
of which the User should not see. 用户不应该看到的。
Here is the query: 这是查询:
<af:query id="qryId2" headerText="#{res['global.search.krtr']}" disclosed="true"
value="#{bindings.CharRelSearchVOCriteriaQuery.queryDescriptor}"
model="#{bindings.CharRelSearchVOCriteriaQuery.queryModel}"
queryListener="#{bindings.CharRelSearchVOCriteriaQuery.processQuery}"
queryOperationListener="#{bindings.CharRelSearchVOCriteriaQuery.processQueryOperation}"
saveQueryMode="hidden" modeChangeVisible="false" resultComponentId="::pc1:resId2"/>
And here is the table: 这是表格:
<af:table value="#{bindings.CharRelSearch.collectionModel}" var="row"
rows="#{bindings.CharRelSearch.rangeSize}"
emptyText="#{res['global.table.noDataMessage']}"
rowBandingInterval="1"
selectedRowKeys="#{bindings.CharRelSearch.collectionModel.selectedRow}"
selectionListener="#{bindings.CharRelSearch.collectionModel.makeCurrent}"
rowSelection="single" id="resId2"
styleClass="AFStretchWidth" columnStretching="last"
fetchSize="#{bindings.CharRelSearch.rangeSize}"
binding="#{charRelSearchBean.charRelResultTable}"
partialTriggers="::ctb2 ::ctb3 :::cb1 :::qryId2">
I appreciate all the help. 我感谢所有的帮助。 Thanks!
谢谢!
Add a view criteria that has the conditions you want to apply to your View Object that populates the table. 添加具有要应用于填充表的视图对象的条件的视图条件。 https://blogs.oracle.com/jdevotnharvest/whats-the-difference-between-view-criteria-and-where-clause
https://blogs.oracle.com/jdevotnharvest/whats-the-difference-between-view-criteria-and-where-clause
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.