JDeveloper 11 g: convert DBSequence number of Oracle.jbo.domain
Hi all!Anyone know how to convert DBSequence to oracle.jbo.domain?
I used something like this:
public DBSequence {} seq()
MyWay DBsequence;
/ * code * /.
myWay return}
public void otherMethod() {}
Number num = seq () .getSequenceNumber ();
}
But it does not work.
Thank you to
Tags: Java
Similar Questions
-
Hi experts,
uses 11.1.1.5.0 - adfbc jdev
Castin the problem:
pyear - number data type
var oracle.jbo.domain.Number = new oracle.jbo.domain.Number (pyear);
Integer s = (integer) var;
My question is how can I get oracle.jbo.domain.number in java.lang.Integer.Well, you should be aware of that you loos certain precision that a number can be larger then the max int value...
Number n = new Number(1345); Integer iVal = n.intValue(); BigInteger lBigInteger = n.bigIntegerValue();
I would use BigInteger instead...
Timo
-
Conversion oracle.jbo.domain.Number->; 'impossible', in liaison
11.1.1.3 JDEV
Try to call a function from a jsf page. It throws an error like
* "Failed to create an object of type: java.lang.Number type: oracle.jbo.domain.Number with the value" * "
Please see the part of my affair.
< methodAction id = "checkDeviationFromBasecase".
InstanceName = "ProjectMonitoringAppModuleDataControl.dataProvider"
DataControl = "ProjectMonitoringAppModuleDataControl."
RequiresUpdateModel = 'true' Action = 'invokeMethod '.
MethodName = "checkDeviationFromBasecase."
IsViewObjectMethod = "false".
ReturnName = "ProjectMonitoringAppModuleDataControl.methodResults.checkDeviationFromBasecase_ProjectMonitoringAppModuleDataControl_dataProvider_checkDeviationFromBasecase_result" > "
< NamedData NDName = "pPid".
* NDValue = "#{bindings." Pid.inputValue} "//this is oracle.jbo.domain.Number."
NDType="java.lang.Number"/ >
< / methodAction >
Is it possible to do by linking only without creating variables in addition to a bean.
Help, please.
Thank you.Why don't you have same oracle.jbo.domain.Number for NDType as well?
Jean Lou
-
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 ());
-
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
-
oracle.jbo.domain.DBSequence problem
Hello
I have paintings of which one is the master and the other is the secondary table. In these tables, I replaced my primary key in both tables with a type of: oracle.jbo.domain.DBSequence and the column type NUMBER and created a sequence in the table.
When I run this application in my request module I get the following error message: Houston-26041 and a java.sql.SQLIntegrityConstraintViolationException ORA-01400 cannot insert null into (and then the name of the primary key)
Does anyone know a solution to this problem... I prefer to use oracle.jbo.domain.DBSequence because I use it in other pages master detail as well, in those other pages, I get the same error...
I use the version of JDeveloper 11 g (11.1.1.3.0) 1
Thanks in advanceyou have a before insert trigger in your database?
Maybe this will help:
http://mjabr.WordPress.com/2011/03/11/make-sequence-number-as-default-value/ -
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 -
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.
-
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
-
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
-
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
Maybe you are looking for
-
I wanted to buy 50GB to iCloud. Later, I decided to not buy & cancelled the transaction, but the funds were debited from my account. Can someone help me how to get the refund.
-
Security essentials Microsoft refreshes not get error code 0 x 80070017
I can't update windows security it gives me this error code 0 x 80070017 can you help me?
-
Original post: Parse error I get an error Parsing ' in the file C:\Program Files (x 86) \HP\Digital 1 bin\hpqscbs\1033.xml of Imaging. How can I fix this, can someone help me?
-
Hello I've seen this problem elsewhere on this forum but has decided to post a new thread because the most recent I could find was almost 2 years ago. I have a 610N which worked very well. The other day, she lost her IP. I did a factory reset, and
-
My vista restore disk does not start in my computer. Is it possible to get a new drive?
Compaq PresarioSR5130NX with AMD Athlon 64 x 2 processor. Wouldn't start. Console Startup Repair did not help, not even in safe mode. Tried to restore partition, says error. Tried to restore System Restore disk. First authorized disc formatting my dr