Problem 'On or before' operation in the view criteria
HelloI have a query like the one below and I defined in a required display to display all the transfer_date "OnOrBefore" today's date but is to show data only before the current date not on the current date. Any reason why this is happening?
SELECT a.TRANSFER_ID
, a.TRANSFER_DATE
, a.ASSET_CATEGORY_ID
, a.ASSET_ID
, a.TRANSFER_FROM_ID
, a.TRANSFER_TO_ID
, a.STOCK_TAG
FROM TRANSFER a
INNER JOIN (
SELECT STOCK_TAG
, MAX(TRANSFER_DATE) maxDATE
FROM TRANSFER
GROUP BY STOCK_TAG
) b
ON a.STOCK_TAG = b.STOCK_TAG AND
a.Transfer_Date =b.maxDATE
Thank youSam
And what about time data (27-11-2012 ' 00:00:00.000')?
AP
Tags: Java
Similar Questions
-
Problem with between operator in the view criteria
Hello
We have a requirement. In the view criteria, we have a Timestamp attribute. We use between operator , so we have two variable bind fromDate and up to date . The search works fine if I give to plu date fromDate but if the same date for the bind variable, it does not return all records in the table .
Any solution to overcome this peoblem?
KRKR,
So are the timestamps fromDate and up-to-date? Are they fair dates, then they will be interpreted as midnight as-des-than-present, and unless your timestamp is from midnight, it would not be between them more. You can also set - Djbo.debugoutput = console in the properties of your project to see the SQL query running in the log window.
John
-
outer join in the view criteria
Hello world
I use jdeveloper 11.1.1.6.0
I want to create outer join in the view criteria, so I had to substitute getCriteriaItemClause ViewObjImpl.java method
my query is like this:
SELECT t1. row_no, t2.type FROM table_1 t1, t2 from table_2
WHERE t1. row_no (+) = t2. row_no
and t1.user_Id (+) =: bindVar
table_1 (row_no, user_Id)
table_2 (row_no, type)
the part " t1.user_Id (+) =: bindVar " should be put in the display criteria
the method:
@Override
public String getCriteriaItemClause (ViewCriteriaItem viewCriteriaItem) {}
String newQeury = this.getEntityDef (0) .getAliasName () + "." + viewCriteriaItem.getColumnName () + "(+) =:bindVar .
Return newQeury;
}
but when I run the criteria see exception below raises:
oracle.jbo.expr.JISyntaxError: Houston-36000: an unexpected token expression is found.
When I remove the sign "(+)" of newQeury
String newQeury = this.getEntityDef (0) .getAliasName () + "." + viewCriteriaItem.getColumnName () + "=:bindVar . remove the sign "(+)" before =:bindVar
raises the exception below
Houston-29000: Unexpected exception caught: oracle.jbo.expr.JIEvalException, msg = Houston-25077: t1 name not found in the given object: ViewRow [[5-1-5] oracle.jbo.Key].
Habib
This is a duplicate of https://forums.oracle.com/thread/2577092
Please do not post your questions several times.
A possible solution posted to the original thread.
Timo
-
Control null to a variable binding in the view criteria
Hi, greetings.
I use Jdeveloper 11.1.2.0.
I have a view object, LocationsView, for the locations of the database of the tenth Board.
I want to apply a condition, ((: bind_var is null) or (: bind_var is not null and location_id =: bind_var), in this LocationsView.)
In other words, I want to apply the condition only if the value of the bind variable is not null.
How can I build this condition using a declarative view criteria?
Any help and advice on this topic is greatly appreciated.
Kind regards
Guru KIt should work if you set the box on her "ignore Null values" when you set criteria.
Timo
-
Chronology of problems with boxes of legend during the viewing and editing
Hello
I have several legends in a setting and adjusting the timeline so that they do not all appear at the same time. When I do that and preview or publish, I see only the first legend - the other do not preview or publish. However if I change the timeline if all the captions appear that they are visible during previewing and editing.
I would be very happy to help with this.
Thank you
Hello
You can adjust the point of break of your button object. At least, I think that it is a button. Cannot tell for certain because I am in the middle of a Visual migraine and it affects my vision. I suppose it could be a text entry area. They look the same on the Timeline.
See you soon... Rick
Useful and practical links
Captivate wish form/Bug report form
-
limit the view criteria values prompt values based on others...
Hi all
I want to use a component of af: query a selection of custom view. It is possible to restrict the values of a a command prompt with the values of other selected guests... (for example when the user choice department_location, only the departments at this location appears in the guest/combo ministries..)
Thank you...
Yes, this should be possible. Discover vidoe Shay https://blogs.oracle.com/shay/entry/dependent_lovs_in_an_afquery_c
Timo
-
The View of line object count goes to zero after removing the view criteria.
Hello
I use JDeveloper 11.1.1.4.
I applied viewCriteria to a viewObject. Its working fine.
But after that when I remove this ViewCriteria using removeApplyViewCriteriaName () /removeViewCriteria (), the number of lines of this same viewObject is 'null '.
Kind regards
Alok
Rather than use getRowCount(), which is not good if you get several rows in the back, use getEstimatedRowCount(), which requires the DB how many rows are returned.
Then, you can start your apuplication with - Djbo.debugoutput = console so that you see what request is sent to the db. Or you use this class VO Dump request and it & #8217; s parameter with their values. JDev & amp; ADF Goodies to get only the query and parameters of the journal.
Timo
-
Hello
I use jdev 12.1.2.
I have a few components of af: selectOneChoice that is contained in an af:table element. The table is extracting lines from database and display data. Now here's the weird part: sometimes the component of selectOneChoice will have the correct value selected, and other times it will be just left unchecked. I can verify that the data in the object view lines are indeed correct after I request them. The LOV for soc components are properly set up (some are configured as static list display objects and some are set up as model driven lists based on display objects). I have just completely puzzled me as to why they work sometimes and then not work at times even though I am following the exact same steps to reach that point in my application. Someone at - he never meets this problem before?
Thanks for reading.
Problem solved!
For anyone having this problem in the future: do not try to do a partial trigger on a table that is not in the visible panelTab. The problem is that when my view criteria applying, I was refreshing the TWO tables. This caused that was not visible to lose the selectOneChoice selection, while the other table was very good. Remove the partial relaxation for the table that was not visible caused the data to be maintained properly during the exchange between the tabs and change the view criteria. Thanks for the help again Ashish, stumbled on the real root of the problem, after following some of your suggestions.
-
You can use a 16GB Micro SD on the view?
IM wondering if the display reads Miro SD 16 GB?
Yes. I'm running on the 32gig view. It works but has the same problems as any card uSD on the view. In other words, database rebuild on every market and several names of the song after the reconstruction. If all goes well, Sandisk will issue a new firmware to fix problems in uSD as well as a few others.
Happy holidays
Larry
-
Special character in the view definition
Hello
I am trying to create a view with a similar definition as follows. But it is still fast for a value of entry due to '& '. I can run it on sqlplus when defining "all set."
How can I use it in the definition of the view?
create or replace view abc
as
Select case when val = "a & b' then 'Hello' end of the double;"
Thank you
so in your sql worksheet use:
set define off
before you create the view...
HTH
-
How to complete the data in the view object
Hi all
I'm quite new with ViewObject.
I have a data table that comes with the view object.
I want to fill in the data in the view of my managed bean object.
How can I achieve this kind of scenario?
in fact, I try to get view object as follows. but I only null.
ViewObject viewobject = DCIteratorBinding.getViewObject ();
With respect,
Wai PhyoHello
You can use the following code snippet to get the handle of object of the iteration.
FacesContext fc = FacesContext.getCurrentInstance ();
BindingContainer links =.
(BindingContainer) fc.getApplication () .evaluateExpressionGet (CF,
"#{bindings}."
BindingContainer.class);
DCBindingContainer bc = links (DCBindingContainer);
Iterator = DCIteratorBinding
bc.findIteratorBinding ("");
ViewObject viewObject = iterator.getViewObject ();Perform operations on the view object
Thank you
Nini -
The substitution of textfields 'name' on the display criteria
I'm working on criteria view to display the records "of date" - "date". I use a "SalaryDate" attribute "SalaryDate" has "Pay Date" as an indicator, while "startDate" and "endDate" have "date:" and "to this day:" as shown.
You, the text boxes in the search field appears with the text 'pay date' when I create an "application with table" among the criteria for the view.
"StartDate" and "endDate" variable bind are not required, while "date from" is necessary in the view criteria.
If I change the endDate and startDate bind variable as needed, they appear below the variables in the display criteria, and the name of the text boxes is the indicator of the bind variable.
no need to bind variables (it works, but the names are false):
Processing date: [entry field]
Processing date: [entry field]
[Search]
with binding variables required:
Processing date: [entry field]
Processing date: [entry field]
* From date: [entry field]
* Updated: [entry field]
[Search]
I would like it to appear as:
Date: [entry field]
To date: [entry field]
[Search]
How can I fix?
(Build using JDEVADF_11.1.1.5.0_GENERIC_110409.0025.6013 of JDeveloper)Hello.
seems to be a bug. One work-around, I can think of is do not use Panel request af but drag and drop operation ExecuteWithParams to the view as a form of parameter object, then the View itself as a table object.
Frank
-
Base on attachments view Obj view criteria
Hello world
I use jdev 1.1.1.7.0
I have a base on two EOs view obj, I want to create a view of criteria for this VO but when I want to add elements to which clause of the view criteria, I just select the attributes of the base OS then that I need to select the attributes of the secondary OS, is there any solution for this case? I can not use either the place where the clause of the VO because there is also another view criteria existed.
Habib
Concerning
Did you create attributes for the second EO VO - this should allow you to choose in the view criteria?
-
Houston-25036: an invalid object operation was drawn to the View object type.
Hi all
I use version jdev 11.1.2.2
I have an application module impl in which I have a method to call a pl/sql that calls an external API.
I returns a value of this class of impl. I call this form of method a bean customer interface through. Then, I want to display another page passing the return as a variable binding value to another object to display grace to perform with the workflow setting.public String create(String productId, String component) { String createMessage=null; DBTransaction dbtransaction = (DBTransaction)getTransaction(); StringBuffer str = new StringBuffer(); str.append(" BEGIN "); str.append(" api.database@test ( "); str.append(" p_number => :1, "); str.append(" p_product_id => :2, "); str.append(" p_component => :3 "); str.append(" ); "); str.append(" END; "); CallableStatement callablestatement = dbtransaction.createCallableStatement(str.toString(), 1); try { callablestatement.registerOutParameter(1, Types.INTEGER); callablestatement.setInt(2, Integer.parseInt(productId)); callablestatement.setString(3, component); callablestatement.executeUpdate(); dbtransaction.commit(); createMessage = callablestatement.getObject(1).toString(); if (callablestatement != null) { callablestatement.close(); } if (dbtransaction != null) { dbtransaction.closeTransaction();// closing connection } } catch (Exception e) { e.printStackTrace(); } return createMessage; }
Everything is going very well when I'm not closing the db connection in the impl.public void callCreate(ActionEvent actionEvent){ BindingContext bctx = BindingContext.getCurrent(); DCBindingContainer bindings = (DCBindingContainer)bctx.getCurrentBindingsEntry(); DCDataControl dataControl = bindings.findDataControl("ReportAMDataControl"); ReportAM ReportAM = (ReportAM)dataControl.getApplicationModule(); createMessage = ReportAM.createBug(product, component); FacesContext context = FacesContext.getCurrentInstance(); context.getApplication().getNavigationHandler().handleNavigation(context, null, "goExecute");//navigate to next page }
but when I close the db connection is showing the following error.
Houston-25036: an invalid object operation was drawn to the View object type.
No idea why this is happening?<MethodExpressionActionListener> <processAction> Received 'oracle.jbo.InvalidObjAccessException' when invoking action listener '#{invokeImplMethodBean.callCreate}' for component 'cb1' <MethodExpressionActionListener> <processAction> oracle.jbo.InvalidObjAccessException: JBO-25036: An invalid object operation was invoked on type View Object with name RVO at oracle.jbo.server.QueryCollection.getPCollManager(QueryCollection.java:505) at oracle.jbo.server.QueryCollection.initPCollRows(QueryCollection.java:337) at oracle.jbo.server.QueryCollection.initQC(QueryCollection.java:367) at oracle.jbo.server.QueryCollection.<init>(QueryCollection.java:271) at oracle.jbo.server.ViewRowSetImpl.initQueryCollection(ViewRowSetImpl.java:876) at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1140) at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:1413) at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:1319) at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:1304) at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:7211) at view.InvokeImplMethod.call(InvokeImplMethod.java:206) 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(Unknown Source) at com.sun.el.MethodExpressionImpl.invoke(Unknown Source) at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105) at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:148) at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88) at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:824) at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:179) at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:159) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:112) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:106) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1134) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:358) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:207) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508) 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:173) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468) at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119) at java.security.AccessController.doPrivileged(Native Method) at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315) at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442) at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103) at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139) 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.wrapRun(WebAppServletContext.java:3715) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Can someone help me with this problem? :(
Thank you
Vigneshlike I said with ADF BC, we never explicitly close the DB connection (framework takes care for this).
-
Can we call a method before and after the operations of export in ADF 11 g
Hello
My problem is that I have to run a method before and after the export operation. Is this posible in ADF 11 g
Kind regards
FelixHello
in response to a post of similatr of yours, I said
1 drop af:exportCollectionActionListener on a command button
2. set the control knob to display = false
3. in your Java code, callActionEvent ae = new ActionEvent (button);
AE.queue ();Everything you put in front
ActionEvent ae = new ActionEvent (button);
AE.queue ();will be like a before trigger fires, everything that follows as a trigger of post
Frank
Maybe you are looking for
-
Right click on Favorites gives the menu grayed out in 29 FF...?
Hey,. Since my upgrade to Firefox 29, when I right-click on any bookmark in my list of bookmarks, I get the context menu, as always, but ALL options are grayed out so that I can not click on any of them? How can I fix it?
-
How to get the software HP Coolsense works again after the clean install (win7)?
I recently purchased a DV7 6014TX and upgraded to an SSD and a clean install of the retail version of windows 7 64-bit. I want to know how do HP Coolsense works again? I saved the folder drivers of my original hard drive SW and I so all people. SP528
-
HP_15-af001au_Laptop: brightness keys not working not
Hello. I use HP_15-af001_au. I installed windows 7 32 bit of the system. But my brightness keys do not work. Help, please!
-
How can I download my pictures from my mobile phone?
I plugged my usb cable from my cell phone and on my pc, but nothing happens. I'm trying to transfer my photos from my cell phone. Help, please.
-
HELPPP... I lost my e mail account because of the pirates
HELPPP... I lost my e mail because of the hackers.microsoft account will not help me cause I don't remember all the details, that does.even I answered security question .wat else.i lost m You can help this is so important