Clearing Filter criteria in ADF Rich Table
How to clear criterias in filters of ADFRichTable. I am using Jdeveloper 11g with latest patchset of ADfFaces 11.1.1.3.x
I extracted the following code from the sample but i am always getting QueryDescriptor as null.
if (binding_table != null){
FilterableQueryDescriptor queryDescriptor = (FilterableQueryDescriptor)binding_table.getFilterModel();
if (queryDescriptor != null && queryDescriptor.getFilterCriteria() != null){
queryDescriptor.getFilterCriteria().clear();
else{
System.out.println("Nothing cleared");
My table bindings are as follows:
<af:table value="#{bindings.VO1.collectionModel}"
var="row"
rows="#{bindings.VO1.rangeSize}"
emptyText="#{bindings.VO1.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.VO1.rangeSize}"
rowBandingInterval="0"
filterModel="#{bindings.VO1Query.queryDescriptor}"
queryListener="#{bindings.VO1Query.processQuery}"
filterVisible="true" varStatus="vs"
selectedRowKeys="#{bindings.VO1.collectionModel.selectedRow}"
selectionListener="#{bindings.VO1.collectionModel.makeCurrent}"
rowSelection="single" id="t1"
partialTriggers="::cb1 ::cb3" inlineStyle="width:600.0px;"
binding="#{Bean.binding_table}">
Kindly help me
Similar Messages
-
Populate ADF Rich Table taking data from two tables of database
Hi,
Can anyone please guide me as to how I can populate ADF Rich Table taking data from two tables A and B of a database.
The condition is
I want to fetch row 1 from table A and populate into ADF Rich Table at row 1
then
I want to fetch row 1 from table B and populate into ADF Rich Table at row 2
and so on....
Many thanks for your help..
Regards,
RohitThe better place where you will learn:
http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcquerying.htm -
Hello
I'm using JDeveloper 11g 11.1.1.5
I have an ADF Rich Table with many columns. So, I think it would be great idea to place some column under others in the same row (something like "two rows in one row").
I understand that I can simply put few controls from different columns in one column, but that is not the case becouse of the problems with leveling (second values in different columns can have different height what is bad - all "second" values should be in the same level).
Is it possible to do that?
Anatoliiyes this is possible to nest one column inside others
<af:column headerText="Size" frozen="true" displayIndex="0" align="center"> id="c3">
> <af:column headerText="Size In KB width some more text to make it wrap"
> noWrap="false" align="end" id="c4">
> <af:outputText value="#{test1.size}" id="ot3"/>
> </af:column>
> <af:column headerText="Date Modified" align="center" id="c5">
> <af:outputText value="#{test1.date}" id="ot4"/>
> </af:column>
> </af:column>
chk the example here
http://jdevadf.oracle.com/adf-richclient-demo/faces/components/table/columnGroupTable.jspx?_afrLoop=4054587328139728&_afrWindowMode=0&Adf-Window-Id=w0
source: http://jdevadf.oracle.com/adf-richclient-demo/components/table/columnGroupTable.jspx.source -
QBE filter criteria in adf richtable disappears
Hi,
i use jdeveloper 11g (11.1.1.0.2) with ADF BC and have the following Problem:
I have a table with enabled builtin filtering. The table is contained in a page fragment of a taskflow.
At runtime I am doing the following:
1) I submit a filter criteria and get the right result. (OK)
2) goto different page and back to the page with the filtered table (OK)
3) the table displays the filtered data, but the filter input field is EMPTY (ARGGHHH, very confusing)
If you create the exact table on a simple page (not in page fragment of taskflow) the filter criteria is still shown in the filter input field as expected (and designed I think)
So is it a bug? How to work around?
Thanks,
Andreas.
Edited by: koppy on May 28, 2009 9:15 AMHi,
I have not tried this , but it should work
you need to get the value of filterModel attribute of af:table
so, in your backing bean if you can get hold of your table component
store your filterCriteria somewhere while navigating between pages
RichTable myFilterableTable = this.getMyFilterableTable(); //assuming your table component is associated with backing bean
FilterableQueryDescriptor queryDesc = myFilterableTable.getFilterModel();
//get teh filtercriteria from fiterModel
Map<String,Object> filterCriteriaMap = queryDesc.getFilterCriteria();filterCriteriaMap will contain your QBE criteria values , re-set your table filterModel , you can use EL to do that in which case now its binded to your backing bean filterCriteriaMap
hope it helps
Good Luck
regards, -
How to add a new row in rich table when a button clicks which isinatemplate
i am new to j developer 11g. i have problem when i click a reset button located in the template
will clear all data from the rich table and it is in a add mode,ie table with only one empty row
Regards
rajesh
Edited by: [email protected] on Mar 10, 2009 11:30 PMHi,
and here is a blog entry about global buttons in templates
http://thepeninsulasedge.com/frank_nimphius/2007/11/23/adf-faces-rc-implementation-strategies-for-global-buttons-in-page-templates/
Frank -
View Criteria in ADF Query Panel with Table-Class Cast Exception
Hi,
I am getting Class Cast Exception when using view criteria for ADF Query Panel with Table. The version I am using is 11g Release 1(11.1.1.2.0)
Here is what I did:
1. created a view criteria on a view object
2. all are optional
3. all are Strings
3. Dragged the view criteria as a query component (ADF Query panel with Query table) on to the design layout
and the error when I clicked the Search button is:
javax.el.ELException: java.lang.ClassCastException: oracle.jbo.common.ViewCriteriaImpl cannot be cast to oracle.jbo.ViewCriteriaRow
at com.sun.el.parser.AstValue.invoke(AstValue.java:161)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1289)
at oracle.adf.view.rich.component.UIXQuery.broadcast(UIXQuery.java:115)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at sni.foundation.facesextensions.filters.FoundationFilter.doFilter(FoundationFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.ClassCastException: oracle.jbo.common.ViewCriteriaImpl cannot be cast to oracle.jbo.ViewCriteriaRow
at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding._clearFilterCriteriaRows(FacesCtrlSearchBinding.java:4549)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding._addFilterCriteria(FacesCtrlSearchBinding.java:4603)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding.processQuery(FacesCtrlSearchBinding.java:423)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
Thanks
VenkateshHi Frank.
I'm using JDev 11.1.1.3.0 as you suggest the error is no longer present in the latest version.
I can pick my query from the "Saved Search" pick list on the QueryPanel list of queries just fine, and it sets up the filter properly, but when I press the "Search" button, I get the same reported error...
<RegistrationConfigurator><handleError> Server Exception during PPR, #1
javax.el.ELException: java.lang.ClassCastException: oracle.jbo.common.ViewCriteriaImpl cannot be cast to oracle.jbo.ViewCriteriaRow
at com.sun.el.parser.AstValue.invoke(AstValue.java:161)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1303)
at oracle.adf.view.rich.component.UIXQuery.broadcast(UIXQuery.java:115)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.ClassCastException: oracle.jbo.common.ViewCriteriaImpl cannot be cast to oracle.jbo.ViewCriteriaRow
at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding._clearFilterCriteriaRows(FacesCtrlSearchBinding.java:4588)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding._addFilterCriteria(FacesCtrlSearchBinding.java:4642)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding.processQuery(FacesCtrlSearchBinding.java:424)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
... 42 more -
Sum the value of look up table based on two filter criteria
Hello Everyone
I am new to Powerpivot and would appreciate if someone could help me on the following problem.
You can download the example of this excel file form the following DropBox link:
Dropbox Link
The first table is tOrders
Week number
Work center
order number
Production time in minutes
2
a
111
60
2
a
112
70
2
b
113
60
3
b
114
50
3
a
115
40
3
b
116
60
4
a
117
90
4
b
118
40
The second is dLookupList
Week number
Work center
mantenace in minutes per week
Break dows in minutes per week
2
a
10
10
2
b
20
5
3
a
15
12
3
b
30
10
4
a
20
10
4
b
10
10
I’m trying to create Pivot that has filter on Week number to show the number of orders, Sum of Production time in minutes and the total of the values form the lookup table dLookupList that matches the work center and the selected week
numbers. So that I can calculate the total time for each work center. Filter criteria is Week number and Work center.
For example if someone select all weeks numbers the result sould look like this
Week number
(All)
Work center
Count of order number
Sum of Production time in minutes
mantenace in minutes per week
Break dows in minutes per week
Total time
a
4
260
45
32
337
b
4
210
60
25
295
Grand Total
8
470
Result for week 2
Week number
2
Work center
Count of order number
Sum of Production time in minutes
mantenace in minutes per week
Break dows in minutes per week
Total time
a
2
130
10
10
150
b
1
60
20
5
85
Grand Total
3
190
How can I relate these two tables to get the above result?
Any help is highly appreciated.
Regards
PriyanHi Recio
Thank you very much for the swift response. I was able to get it work.
I got two questions:
How do you add a total time column to the pivot table like you did? Because there are no calculated field in power pivot.
I prefer that the filter is based on the Orders table. So that if you select all Week numbers in the filter, that pivot will show result for all orders and relevant sums from the lookup list.
Link download the example file
For example: I add Week number 5 to the work center “a”
Week number
Work center
WNandWC
mantenace in minutes per week
Break dows in minutes per week
2
a
WN2WCa
10
10
2
b
WN2WCb
20
5
3
a
WN3WCa
15
12
3
b
WN3WCb
30
10
4
a
WN4WCa
20
10
4
b
WN4WCb
10
10
5
a
WN5WCa
1
1
In the orders table there are no records for week number 5
Week number
Work center
WNandWC
order number
Production time in minutes
2
a
WN2WCa
111
60
2
a
WN2WCa
112
70
2
b
WN2WCb
113
60
3
b
WN3WCb
114
50
3
a
WN3WCa
115
40
3
b
WN3WCb
116
60
4
a
WN4WCa
117
90
4
b
WN4WCb
118
40
4
a
WN4WCa
119
50
But the pivot sums up the week number 5 also.
Do you have any idea how to solve it?
Thank you very much.
Regards
Priyan -
Remove filter criteria from the table
I have used af:table to display data and used filter to filter column data. After specifying any search criteria we need to remove it manually and press enter. I want to remove search criteria programmatically and display table data without any search criteria.
How to remove table filter criteria in backing bean and refresh the table?
Thanks in advance.I can't get the example "Programmatically Manipulating a Table's QBE Filter Fields"
Where is it ?
https://smuenchadf.samplecode.oracle.com/samples/ClearTableColumnFilterFields.zip
Thks -
How to show the filter and sort capabilities in adf dynamic table
hi
how to show the filter and sort capabilities in adf dynamic table..
Pls help meHi
Click on a colum in your table and go to the properties pallet
make true the sortable property then you can sort the table according to that column
Thanx
Padma -
ADF FACES: how to preserve the sort criteria for an af:table
How can I preserve the sort criteria on an af:table across page invocations? I've searched all through the forum and I don't see anything on this topic.
I simply want the sort criteria (from when the user clicks on a column header) to be remembered across multiple uses of the page. I know that the control handles this itself for multiple invocations of the same page (like when you page through the table). But I need to preserve the sort order so I can install it again when someone leaves the page and then returns to it.
I've tried various attempts using a SortListener to record the sort criteria, but I can't figure out how to reinstall the criteria without generating exceptions from the table control.
Any pointers on how to do this would be greatly appreciated.
Thanks.
Larry.Ok, I've solved the problems with the odd behavior by always creating a new model when the table data changes and copying the sort criteria into the new model, like this:
// Construct our own CollectionModel from this result set
if(_model == null) {
// Construct the initial data model and set the starting sort criteria
ListDataModel m = new ListDataModel(results);
_model = new SortableModel(m);
// Set the sort criteria to last name
ArrayList criteria = new ArrayList();
criteria.add(new SortCriterion("lastName", true));
_model.setSortCriteria(criteria);
} else {
// Construct a new model so the table "sees" the change
ListDataModel m = new ListDataModel(results);
SortableModel sm = new SortableModel(m);
sm.setSortCriteria(_model.getSortCriteria());
_model = sm;
}But, I end up with one final thing that doesn't work. In the "then" clause above, I try to set the initial sort criteria for the table - it has no effect. When the table is rendered, it is not sorted in any way.
How can I specify an initial sort order for the table? Why is it ignoring the sort criteria on the model?
Thanks. -
How to reset the sort criteria on a sortable table?
Hi all,
How can I reset the sort criteria on a sortable table?
RegardsHi,
Did you try with <af:resetActionListener> or refresh table in Bean using button make sure partialSubmit true for Button and use following code
acesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
adfFacesContext.addPartialTargets(UIForTable);Check following
http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_resetActionListener.html
http://www.adftips.com/2010/10/adf-ui-resetting-or-clearing-form.html -
[1.1.1.25.14] Clear Filter removes "Include Synonyms" option
I have happily been using the new "Include Synonyms" option in the Table and View nodes and it has been working great.
That was until I used the Clear Filter option rather than manually deleting a number of filter criteria (which can be a pain, because the cursor doesn't stay in the criteria list after deleting a critiera).
Now my "Include Synonyms" option has disappeared from the node on which I cleared the filter and I can no longer filter on synonym based objects (I did have Include Synonyms switched off when I cleared the filter).Yup, it's a bug.
Not a solution, but work around for now - A restart of SQL Dev will return the synonym checkbox.
I tend to have single % and synonym checkbox checked as filter on my tables.
Sue -
How to update ADF VO object to refresh the data in ADF Pivot table
I need to know how to update the View object so that the date in pivot table is refreshed/updated/filtered.
here are the steps I performed to create ADF pivot table application using VO at design time.
1) created a collection in a Data Control (ViewObject in an ApplicationModule) that provides the values I wanted to use for row and column labels as well the cell values (Used the SQL query)
2) Dragged this collection to the page in which wanted to create the pivot table
3) In the pivot table data binding editor specified the characteristics of the rows (which attribute(s) should be displayed in header), the columns (likewise) and the cells.
Now, I have a requirement to update/filter the data in pivot table on click of check box and my question is how to I update the View object so that the date in pivot table is refreshed/updated/filtered.
I have got this solution from one of the contact in which a WHERE clause on an underlying VO is updated based upon input from a Slider control. In essence, the value of the control is sent to a backing bean, and then the backing bean uses this input to call the "filterVO" method on the corresponding AppModule:
but, I'm getting "operationBinding" object as NULL in following code. Please let me know what's wrong.
here is the code
Our slider component will look like
<af:selectBooleanCheckbox label="Unit" value="#{PivotTableBean.dataValue}"
autoSubmit="true" />
The setDataValue() method in the backing bean will get a handle to AM and will execute the "filterVO" method in that, which takes the NumberRange as the input parameter.
public void setDataValue(boolean value) {
DataValue = value;
BindingContainer bindings = getBindings();
OperationBinding operationBinding = (OperationBinding)bindings.getOperationBinding("filterVO");
Object result = operationBinding.execute();
The filterVO method in the AMImpl.java will get the true or false and set the where Clause for the VO query to show values.
public void filterVO(boolean value) {
if (value != null) {
ViewObjectImpl ibVO = getVO1();
ibVO.setWhereClause("PRODUCT_TOTAL_REVENUE(+) where rownum < 10");
ibVO.executeQuery();
}Did you define a filterVO action in your pagedef.xml file?
You might want to read on how to access service method from a JSF Web Application in the ADF Developer Guide for 10.1.3 chapter 8.5 -
ADF Tree Table Repeats Elements at All Levels in nodeStamp Facet
Fusion Middleware Version: 11.1.1.5
WebLogic: 10.3.5.0
JDeveloper Build: Build JDEVADF_11.1.1.5.0_GENERIC_110409.0025.6013
Project: Custom WebCenter Portal Application integrated with custom ADF task flows.
Hi
I have an issue with ADF Tree Table (af:treeTable) whereby if I add a component to a group under the 'nodeStamp' facet it repeats for all levels in the tree even those outside the group.
Overview:
- 3-level master-detail structure created using ADF Business Components (3 view objects connected by 2 view links)
- ADF Tree Table based on master-detail
- Requirement to show 3 levels of data in the first column as a tree
- Tree table is rendering correctly showing values for 'node.FullName', 'node.DisplayValue' and 'node.HoursType' respectively in a 3 level tree.
- When another component is added to the top node in the tree ('node.FullName') for example some output text ('node.TimeBuildingBlockId'), it is displayed along side components 'node.DisplayValue' and 'node.HoursType' as well.
Code snippet:
<af:treeTable value="#{bindings.PerPeopleFVO1.treeModel}" var="node"
selectionListener="#{bindings.PerPeopleFVO1.treeModel.makeCurrent}"
rowSelection="single" id="tt1" styleClass="AFStretchWidth"
horizontalGridVisible="true" verticalGridVisible="true"
disableColumnReordering="true" summary="Timecard Entry"
displayRow="selected" expandAllEnabled="false"
contentDelivery="immediate" autoHeightRows="24"
columnStretching="column:column1"
binding="#{pageFlowScope.TimecardMB.tree_binding}">
<f:facet name="nodeStamp">
<af:column id="c1" headerText="Partner Details" width="500">
<af:group id="g4">
<af:outputText value="#{node.FullName}" id="ot3"/>
<af:outputText value="#{node.TimeBuildingBlockId}" id="ot1"/>
</af:group>
<af:outputText value="#{node.DisplayValue}" id="ot4"
inlineStyle="color:Green; font-weight:bolder;"/>
<af:outputText value="#{node.HoursType}" id="ot5"/>
<f:facet name="filter"/>
</af:column>
</f:facet>
<f:facet name="pathStamp">
<af:outputText value="#{node}" id="ot2"/>
</f:facet>
<af:column FROM HERE.........>
Any ideas greatly appreciated.Hi,
Try using a switcher to distinguish all three levels of a tree. You can have three different facets, three different af:group 's.
When you add in one level, it will not repeat in the other level.
Please see the below snippet.
<af:tree value="#{bindings.RefBusinessUnitView1.treeModel}" var="node"
selectionListener="#{bindings.RefBusinessUnitView1.treeModel.makeCurrent}"
rowSelection="single" id="t1">
<f:facet name="nodeStamp">
<af:group id="g1">
<af:switcher id="s1"
facetName="#{node.hierTypeBinding.viewDefName}">
<f:facet name="model.RefBusinessUnitView">
<af:group id="g2">
<af:outputText value="#{node.Code}" id="ot1"/>
</af:group>
</f:facet>
<f:facet name="model.RefProductFamilyView">
<af:group id="g3">
<af:outputText value="#{node.ProductFamilyName}" id="outputText1"/>
<af:outputText value="#{node.PName}" id="outputText2"/>
</af:group>
</f:facet>
</af:switcher>
</af:group>
</f:facet>
</af:tree>
Nitish -
ADF rich client: How to automate testing
Hi Experts,
We need to do some automate testing against application that is developed with ADF Faces 11g, I've tried with loadrunner 8.1, which provides 2 approaches to record web applications, web(html / http) and web(click / script).
According to my experiment and this article , it's not feasible to record actions to rich client app with the first protocol.
As for the second one, according to my test, some of actions works and the others not (for example, input field, expand accordion).
My question is, Is there a solution to fully automate adf 11g UI interactions? Solutions based on loadrunner is preferred.
Thanks for any help,
ToddThanks CM.,
Sorry I didn't make my question clear. Selenium does fit in AJAX well, but seems that it lacks of ability to do stress test, what if we need highly concurrent workload(say, 5000 users)? Can selenium RC or some tools else generate that?
And, are you sure that loadrunner 8.1 is not feasible to do stress test against ADF rich client apps? I need a good reason to persuade my bosses to consider adopting new tools.
Regards,
Todd
Maybe you are looking for
-
How to use standard VS commands in custom menu (vsct)
Hi, I have a .vsct file which defines a custom menu. I want to add some default Visual Studio commands to this menu as well. I already managed to add some default commands such as copy / paste: <UsedCommands> <UsedCommand guid="guidVSStd97" id="cmdid
-
Exporting list of tables to text files?
Anyone have solution for exporting list of SQL tables to text files? My goal is to have a flexible/dynamic way to export sql tables to text files that is executed via a sql job. I plan on having a configuration table that has sqltablename, fieldstoex
-
Need 'MIME Plug-in? apparently...
Hi, get the following message when trying to click on a QT movie (so far just on apples site - i can view video previews in itunes). It wants me to dl and install qt even though its already on my computer (i have latest 7.1.3). The page "Apple - Trai
-
30" Cinema and 24" IMac displays won't display the same color
I have a 30" Cinema Display on my Mac Pro and I am using a 24" iMac. I calibrated both monitors with Eye-one-Match3. I am using the same color profiles in Corel Painter and Photoshop and I am still getting different color values in my file. On the iM
-
Error when trying to download published app!
I've created a folio and published it but when I try to download it on my iPad I keep getting an error to install a later version of the Adobe Viewer app. I then installed the latest version of Adobe Viewer, but I still get the message which says "Th