Cannot convert oracle.jbo.domain.Number to class the class java.lang.Long in EL
I have this error:
ViewId treatment < UIXRegion > < _warn > error: / frameworks-designer-task-flow/hand URI: FrameworksDesignerMain.jsff real-URI: EnterpriseProcessExecutionSchedules.jsff.
java.lang.IllegalArgumentException: cannot convert 2 type class to class java.lang.Long oracle.jbo.domain.Number
at com.sun.el.lang.ELSupport.coerceToNumber (unknown Source)
at com.sun.el.lang.ELSupport.equals (unknown Source)
at com.sun.el.parser.AstNotEqual.getValue (unknown Source)
at com.sun.el.ValueExpressionImpl.getValue (unknown Source)
at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:73)
to oracle.adfinternal.view.faces.renderkit.rich. LabeledInputRenderer.isDisabled (LabeledInputRenderer.java:285)
My question is how do I find in my page jsff? I see that it is on a property of disabled but I don't know which and there are many on this page. I think it's one that looks like this: disabled = ' #{bindings. " "{PGSchedType.inputValue No 5}. If my different EL expression?
Thank you.
Rudy
JDev 11.1.2.4.0
Hi Rudy,.
I guess that you have spotted it right. Instead of 5 in your disabled property, use '5'
I mean, just surround it with quotes like below
disabled="#{bindings.PGSchedType.inputValue ne '5'}"
Thank you
SAIF
Tags: Java
Similar Questions
-
Hello
I have the following problem with my ADF application developed in JDeveloper 12.1.3:
In my model, there are two entities MeterEO and MeterTypeEO with the following attributes:
MeterEO
TenantId BigDecimal TENANT_ID NUMBER MeterCode String METER_CODE VARCHAR2 (48) Type Integer TYPE NUMBER MeterTypeEO
ID DBSequence ID NUMBER Name of the vendor String NAME OF THE VENDOR VARCHAR2 (32) Type String TYPE VARCHAR2 (16) Type of MeterEO reference Id in MeterTypeEO.
Appropriate VO of the meter uses a MeterTypeVO LOV to create a list containing the provider and Type as well as the user's selection.
In the ModelTester, everything works well when I try to change a counter, select a new type and validate my changes to the database.
A JSFF, it looks quite different. Selection is made by SelectOneChoice with the LOV list containing the provider and Type. Of the LOV the appropriate values are selected for the (integer) to the meter, then the user gets a readable text instead a few cryptic. But when I change the value by selecting a new choice I always got the error ' Can' oracle.jbo.domain.DBSequence to class java.lang.Integer.
Why it works without problems in the Modeltester but not on the page?
Please see the attached screenshots to make it clearer what I mean.
Any hint is appreciated,
Björn
I solved my problem now in view objects. Maybe someone who has the same problem and is interested in the solution:
In MeterTypeVO - which is the source for the LOV - I added a new transitional field called IntId of type Integer that refers to the field Id of type DbSequence by Expression. DbSequence is automatically converted at length which can be also automatically converted in full.
At the counter, I changed the key of the LOV to IntId instead of code.
It works like charm.
-
convert oracle.jbo.domain.number in full
Hello
I use jdeveloper 11.1.2.4.0
Can anyone help on how to convert the oracle.jbo.domain.number in full?
Kind regards
Steve
New Integer (some_number.intValue ());
-
Hi all
jdev: 11.1.1.4
My use case is to try to convert positive user input negative number, once the user presses the tab key
I use the Employee in the HR schema table and when any kind of user + ve value in the salary column, then be converted into value - EV.
< af:inputText value = "#{bindings." Salary.inputValue.value > 0? 0 - links. Salary.inputValue.value: links. Salary.inputValue}.
label = "#{bindings." Salary.hints.label}.
autoSubmit = "true" >
< af:convertNumber type = "currency".
currencySymbol = "$" integerOnly = "true".
minFractionDigits = '0' maxFractionDigits = "0".
groupingUsed = 'false' local = "en-US" / >
< / af:inputText >
It's work the converted number in ve - but it makes the readonly entry text box. If the user was not able to change the value.
Kind regards
Krishan
I don't think it can be done in EL only. the problem is that you change the location of storage. I suggest that you use a value valueChangeListener and climatiqueLes in there as
{} public void numberChangeListener (ValueChangeEvent valueChangeEvent)
Integer i = valueChangeEvent.getNewValue ((Integer));
If (i > 0) {}
get the link container
BindingContainer links is BindingContext.getCurrent () .getCurrentBindingsEntry ();.
updates to process
FacesContext will involve = FacesContext.getCurrentInstance ();
valueChangeEvent.getComponent () .processUpdates (contxt);
get a definitions page ADF ADF attributevalue
AttributeBinding attr = (AttributeBinding) bindings.getControlBinding ("Salary").
attr.setInputValue(i*-1);
PPR refresh a component jsf
AdfFacesContext.getCurrentInstance () .addPartialTarget (valueChangeEvent.getComponent ());
}
Timo
-
oracle.jbo.domain.Number cannot be cast to impossible
Hello
uses db10g jdev11.1.1.5.0 - adfbc-oracle
<LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase APPLY_REQUEST_VALUES 2 javax.faces.el.EvaluationException: java.lang.ClassCastException: oracle.jbo.domain.Number cannot be cast to java.lang.Number at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:58) at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256) at org.apache.myfaces.trinidad.component.UIXEditableValue.broadcast(UIXEditableValue.java:214) at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:148) at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:271) at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:145) at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:402) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:902) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:357) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186) 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:205) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446) at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177) 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:175) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111) 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.runJaasMode(JpsAbsFilter.java:94) at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161) 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:136) 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) Caused by: java.lang.ClassCastException: oracle.jbo.domain.Number cannot be cast to java.lang.Number at view.backing.Tuntitled1.soc5_valueChangeListener(Tuntitled1.java:188) 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 org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53) ... 56 more <RegistrationConfigurator> <handleError> ADF_FACES-60096:Server Exception during PPR, #1 javax.servlet.ServletException: oracle.jbo.domain.Number cannot be cast to java.lang.Number at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277) 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:205) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446) at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177) 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:175) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111) 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.runJaasMode(JpsAbsFilter.java:94) at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161) 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:136) 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) Caused by: java.lang.ClassCastException: oracle.jbo.domain.Number cannot be cast to java.lang.Number at view.backing.Tuntitled1.soc5_valueChangeListener(Tuntitled1.java:188) 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)
public void soc5_valueChangeListener(ValueChangeEvent valueChangeEvent) { // Add event code here... BindingContainer bindings = getBindings(); DCIteratorBinding dciter = (DCIteratorBinding)bindings.get("FinYearsView1Iterator"); Row row = dciter.getCurrentRow(); .. here am did big mistake. please any one correct me. Number s = (Number)row.getAttribute("Attr1s"); // here am getting some numbers Number s1 = 1; if(s != s1 ) // here i want check the value is not equal to one. { FacesMessage fm12 = new FacesMessage(" ho error") ; fm12.setSeverity(FacesMessage.SEVERITY_ERROR); FacesContext context12= FacesContext.getCurrentInstance(); context12.addMessage(null, fm12); } }
Hello
the message is true. Oracle Jbo.domain.Number cannot be cast to the number of Java. Make sure that your cast the object to
oracle.jbo.domain.Number
(just to change the import statement at the top of your Java class)
Frank
-
Error (17.14): samhi.oracle.apps.po.sample.server.SampleEOImpl of the class should be declared abstract. It defines no method setLastUpdateLogin (oracle.jbo.domain.Number) of the oracle.apps.fnd.framework.server.OAEntityImpl class can help on this please
Check once WHO columns are present or not table
Last updated
Last updated by
Last updated connection
Date of creation
Created by
These fields are required for the creation of EO.
SANGU-
-
Hello world
I get the following errors when you try to initialize a record:
- setCreatedBy (int) cannot be called setCreatedBy (oracle.jbo.domain.Number) in EOImpl
- setCreationDate (Calendar) cannot call setCreationDate (oracle.jbo.domain.Date) in EOImpl
setCreatedBy (value) must be a FND_USER. USER_ID. He wanders ins the following statement: setCreatedBy(-1);
setCreatedDate (value) must be today's date.
setWeekDate (value) must be the Sunday after today's date.
protected void doDML (int operation, TransactionEvent e) {}
Begin
Calendar date = Calendar.GetInstance ();
If (operation == DML_INSERT) {}
setLineId ((new_SequenceImpl_("tke_tp_cus_cd_14_lines_s",___getDBTransaction()).getSequenceNumber (()));
setBillable ("T");
setCreatedBy(-1);
setCreationDate (date);
setWeekDate (date);
}
End
super.doDML (operation, e);
}
Please be patient... I'm a noob! Thanks in advance!
James
James,
What version of Jdev do you use?
Can you post the code that you use after all the changes?
For the setLineId try new oracle.domain.Number(-1)
Timo
-
java.lang.Integer cannot be cast to oracle.jbo.domain.Number
Hello
I use JDEV 11.1.2.1.0
Here is my code
Number _id; DCBindingContainer dcBindings = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
DCIteratorBinding iterBind = (DCIteratorBinding) dcBindings.get ("IDView1Iterator");
_id = (Number) iterBind.getCurrentRow () .getAttribute ("Id");
It gives me the error
java.lang.ClassCastException: java.lang.Integer cannot be cast to oracle.jbo.domain.Number
I imported oracle.jbo.domain.Number.
Please notify.
Yes, but your Id attribute is of type java.lang.Integer, and try to throw him to oracle.jbo.domain.Number
try to use following:
Integer Id = (Integer) iterBind.getCurrentRow () .getAttribute ("Id");
_id = new Number (Id.intValue ());
997766 wrote:
_id = (Number) iterBind.getCurrentRow () .getAttribute ("Id");
It gives me the error
java.lang.ClassCastException: java.lang.Integer cannot be cast to oracle.jbo.domain.Number
I imported oracle.jbo.domain.Number.
Please notify.
-
Java.lang.Integer cannot be applied to oracle.jbo.domain.number
Hi all
Jdev Version: 11.1.2.3.0
Platfor: Windows 7
I'm trying to implement sequences and followed the following ADF essentials to create the same. For some strange reason, I meet, it throws the error of compilation as below.
[http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/ADF_Insider_Essentials/ADFInsider_sequence/ADFInsider_sequence.html]
Steps to follow:
1. create the DepartmentsEO
2. has generated the Impl class for departments with accessors and Create method
I wrote the following lines in the method Impl to create files and get the error like setDepartmentId (java.lang.Integer) in eo model. DepartmentsImpl can not be applied to the (oracle.jbo.domain.number) *
SequenceImpl Seq = new SequenceImpl("DEPARTMENTS_SEQ",getDBTransaction);
setDepartmentId (seq.getSequenceNumber ()); *
Please help me!
Thank youHello
What Type of Map you selected when creating components trade?
Make sure it is Oracle. Looks like you have selected the Type of card Java takes DepartmentId column as Integer.
It takes so you must import the oracle.jbo.domain.Number class
setDepartmentId (numeric value)
Recommendation: Create business components again with card Type Oracle.
-
mount the java.lang.String class oracle.jbo.domain.Number class
Dear Sir
How to mount an oracle.jbo.domain.Number chain?
Thank you
AnatoliyTry this:
Variable number = null;
String var = 'var ';
variable = new Number (Integer.ParseInt (var));Concerning
-
EL expression that is evaluated to oracle.jbo.domain.Number
Hello world
11.1.1.5 JDev
I have a problem passing a value of oracle.jbo.domain.Number in a workflow, when you try to type in a literal, for testing purposes.
It's what looks like my pageDef file:
When I type #{'7333177'} for the idSosBrwBdgPer parameter I get<?xml version="1.0" encoding="UTF-8" ?> <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel" version="11.1.1.60.13" id="BdgVerTestPageDef" Package="fo.att.alm.pageDefs"> <parameters/> <executables> <variableIterator id="variables"/> <page path="shared.template.almTemplatePageDef" id="pageTemplateBinding" Refresh="ifNeeded"/> <taskFlow id="sosbrwbdgedit1" taskFlowId="/WEB-INF/sos/bounded/sos-brw-bdg-edit.xml#sos-brw-bdg-edit" activation="deferred" xmlns="http://xmlns.oracle.com/adf/controller/binding"> <parameters> <parameter id="idSosBrwBdgVer" xmlns="http://xmlns.oracle.com/adfm/uimodel" value="#{null}"/> <parameter id="idSosBrwBdgPer" xmlns="http://xmlns.oracle.com/adfm/uimodel" value="#{7333177}"/> </parameters> </taskFlow> </executables> <bindings/> </pageDefinition>
Cannot convert the type class java.lang.String 7333177 to class oracle.jbo.domain.Number
When I type #{7333177} for the idSosBrwBdgPer parameter I get
Cannot convert 7 333 177-type class to the oracle.jbo.domain.Number class java.lang.Long
Anyone know the good EL for that to work?
Best regards
JohnHello
create a bean managed which exposes a method, back Houston area number and reference to El EL doesn't have an option to create instances of the object
Frank
-
Hi all! I need some explanation about types: Type = "oracle.jbo.domain.Number"VS Type = "java.math.BigDecimal"
I have variable enableEditing:
If attribute EO TaksacijasPk is with the type "oracle.jbo.domain.Number" then all work with above the line, but if this attribute is of type "Java.Math.BigDecimal" then code above line do not work. To fix it, I need to add toString() operation in the line of code:this.enableEditing = this.getSelectedTaks().getAttribute("TaksacijasPk").equals(taksId);
Maybe the question is, why in one case, I have to add toString() operation and in others not?this.enableEditing = this.getSelectedTaks().getAttribute("TaksacijasPk").toString().equals(taksId);
Best regards, Debuger!Javadoc for the BigDecimal said
Unlike compareTo, this method takes two objects BigDecimal equal only if they are equal in value and scale (so 2.0 is not equal to 2.00 compared to this method).
You try to compare a BigDecimal/number for a taskId (which we don't have no idea what class it is).
Suppose that taskId is a string.
. Equals() on a number will simply convert the string to a number and check if the values are equal.
. Equals() on a BigDecimal allows you to convert the string to a BigDecimal by applying the rules described in the BigDecimal (String) constructor, to-wit:
The scale of the BigDecimal returned will be the number of digits in the fraction, or zero if the string contains no comma, subject to adjustment for any Exhibitor; If the string contains an exponent, the exponent is subtracted from the scale. The value of the scale that results must be between Integer.MIN_VALUE and Integer.MAX_VALUE, inclusively.
My conjecture only (since you don't seem to be ready to use the debugger and check), is that you have a scale on your BigDecimal which does not match the scale on the BigDecimal which is built from the identifier.
If I had to try to understand the difference between the two, I'd read the docs. Maybe even create a few test cases. Maybe to run my code in the debugger to see what that my BigDecimals and numbers looked like
-
Hi, I am very new in the world of JDeveloper and I get the following error:
Trying to force a value of the type 'oracle.jbo.domain.Number' to type 'java.lang.Long.
I'm trying to multiply two input values, say, 3.5 and 1000.
It corresponds to a field in the commission which can be modified by the end user (this is why I need to store the value). The arithmetic operation is just a "recommendation" of the value that the end user will be finally type.
In the jspx (which is using PPR) the button submit, I have the following code in the determination of the value of the field:
#{bindings.CommProv.inputValue * links.} Monto.inputValue}
If someone could give any help on this, I would really appreciate it.
Kind regards
Max.Max,
Try this:
#{bindings.CommProv.inputValue.bigDecimalValue * links.} Monto.inputValue.bigDecimalValue}This will convert your oracle.jbo.domain.Number values to a form that can be multiplied.
Hope this helps
Blaise -
oracle.jbo.domain.Number programmatically
Hi all
I want to increment (5) for tValu after assigning the value of the method...
in... impl. Java
oracle.jbo.domain.Number tValu = new oracle.jbo.domain.Number (0);
tValu = callingMethod.test ();
tValu = / / + 5
Thanks in advance.
Hello
VR;
tValu.add (.)
-
Hello!
How can I throw it a data type string or object in numbers (oracle.jbo.domain.Number)?
Thank you.
Please see below the code.
Number of numValue = new (strVal);
BR, 906099
Maybe you are looking for
-
The computer screen which extends to the tv
I used to be able to connect my laptop to my tv by connecting the laptop to the tv with an S-video cable, by clicking on the Windows by clicking on «Connect to external display» Mobility Center For some reason, when I do that now my laptop screen goe
-
How to use the digital pen on W700 (Win 8 version)
Expert HE, How to add the digital pen for W700 with my digital "BAMBOO PEN - CTL-470' pen? or I buy Acer digital pen? Thank you
-
I didn't event structure in my range of function
I didn't event structure in my palette of function I have to do?
-
What is MSP mirage .exe at startup I get a message saying that does not work I have vista home edition 32-bit
-
How to change a disk for HP Deskjet F4200 series for Windows 7
Hello I have a HP Deskjet F4200 all-in-One series and a game disc upward for Windows 2000, XP, Vista, but now I have Windows 7, so I can it pass or will it still work ok on this system if I install it? Can someone advise please?