Entity Attribute Creation
Can someone tell me how a table name entity attribute is created (a EO attribute reference to another entity). On some project this attribute is created automatically but some other project it is not created. Is there a flag I have to check when creating the entity.
I am having problem on maintaning a system generated line number (works just like a PO line number example in the tutorial) but whenever I call the create method on the Line table it failed on referencing the master table (I get an IndexOutOfBound exception). When I check my entityImpl class, I do not have a reference to the mater table and if I create a reference manually it does not work. Please help..
public PurchaseOrderHeaderEOImpl getPurchaseOrderHeaderEO()
return (PurchaseOrderHeaderEOImpl)getAttributeInternal(PURCHASEORDERHEADEREO);
protected static final int TABLENAMEEO
Never mind. This is stupid. I had rename the entity name thus the entity atrribute name was incorrect...
Similar Messages
-
DBSequence entity attribute type not available
Hi OTN,
I want to set an entity attribute type to DBSequence. But there's no such type in a drop-down list, only Java types.
I tried to set the type in source manually but at runtime framework doesn't assign a negative integer to the attribute at Create operation.
In simple test application DBSequence type is available and negative integers get assigned.
I have found a proper thread (Re: DBSequence type no longer available for entity attributes? but the solution there is to recreate the whole datamodel. That isn't suitable for me.
Maybe there is a better solution now?
Jdeveloper 11.1.1.2, ADF BC
Thanks.I logged Bug 9380578 - "SQL FLAVOUR" AND "TYPE MAP" CAN BE CHANGED IN "PROJECT PROPERTIES"
(published in My Oracle Support).
NB: in JDeveloper 9.x, it was possible to change the "SQL Dialect" (as it was called at that time), but the ADF BC objects and the custom code weren't changed;
hence it was decided to gray out that choice after the Project creation.
Regards,
Didier. -
JBO-26010: Invalid Entity Attribute Name
Hi All,
The requirement is to add a new field on the page but that field is not getting selected in the core EO, so I have extended the EO and than extended the VO based on that extend ed EO.
After that I followed usual steps to import then personalised and added the new field ...bounced every thing but when I am testing got following error:
## Detail 0 ##
JBO-30003: The application pool (oracle.apps.pon.negotiation.creation.server.NegotiationCreationAM) failed to checkout an application module due to the following exception:
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.PersistenceException, msg=JBO-26010: Invalid Entity Attribute Name "Description" specified for the View Attribute "XxAuctionHeadersAllVO"
===========
When I checked the "XxAuctionHeadersALLEO.xml" it has only entry of new attribute. But in "XxAuctionHeadersAllVO.xml" it has the complete SQL ....so is that can be a problem?
I have run the query from "XxAuctionHeadersAllVO.xml" in toad and it works fine.
Thanks!Yes it is...:-)
Anyways thanks for the reply..
The Base EO - AuctionHeadersALLEO which I have extended to XxAuctionHeadersALLEO
I have already performed both the steps suggested by you (i.e. option 1) so after Substitute the custom VO "XxAuctionHeadersAllVO" on top of standard VO "AuctionHeadersAllVO" when I tested the change I have got the above error : JBO-26010: Invalid Entity Attribute Name "Description" specified for the View Attribute "XxAuctionHeadersAllVO"
So in custom VO (and also in standard VO) select it's just references it as "AuctionHeadersALLEO.DESCRIPTION" but the field is in AuctionHeadersAllBaseEO.xml not in AuctionHeadersALLEO.xml
so I don't understand how it works in the standard product?
Is it any better? Or do I have to be more clearer :-( -
Tracking entity attribute changes
Hi,
I need to keep track of entity attribute changes ( and also creation and deletion of entity itself) in a DB table. In ADFbc, is there a way to identify
the changes in entity (attribute changes, creation of entity and deletion of entity) before and after commit?
Example
Employee entity with ID 747 was modified, Name attribute changed from A to B.
New Department with ID 401 has been created
Department with ID 911 was deleted
Jdev - 11.1.1.5.0
ThanksAre you talking about tracking the ADF BC entity or tracking changes done to data in the database through an entity?
For the later, if you want to record every change in data I would suggest using database triggers on the database tables.
If you rather do it in the ADF BC layer then you can override the EO's DoDML/remove and create methods to put the data about changes in whatever log you want. -
DBSequence type no longer available for entity attributes?
I'm puzzled by this, if not scared.
Every version of JDev till 11.1.1.2.0 has had out-of-the-box support for DBSequence as an entity attribute type.
When you set it for your PK, JDev disables a few options, automatically sets "refresh after insert" (and maybe other stuff) and handles everything about it.
Now, I see that in new applications created with 11.1.1.2.0 that option is no longer present...!
It's available only for apps migrated from previous versions.
If you create a new application, you no longer have DBSequence in the Type dropdown.
Here's what the documentation (Oct 2009 DevGuide, par 4.10.10) says:
In the Edit Attribute dialog, you can set the value of the Type field to the built-in data
type named DBSequence and the primary key will be assigned automatically by the
database sequence. Setting this data type automatically selects the refresh after Insert
checkbox.Where on Earth is this built-in data type named DBSequence in Jdev 11.1.1.2.0?Thanks Paul.
It seems JDev broke my application.
It only shows the native Java types in the dropdown, and does not show any of the Oracle types including Number, DBSequence and all the rest.
(Note that all the connections I work with use the Oracle type map, of course - it's automatic.)
I tried a new quick test with a new application and again, no Oracle types, just the java types.
Then closed and reopened my applications as well as JDev and I can now see all the types in my quick test.
However, my original application still "sees" no Oracle types, it's stuck with the Java types.
I'll try to see if I can repair it in some way... I'll eventually put it down as one of the gazillion one-time bugs that JDev shows daily. -
Display entity-attributes and global-attributes in the same screen
Hi,
I have a question about entity.
Is it possible to display in the same screen, entity-attributes and global-attributes?
thanks
RosaliaHi Rosalia,
You can only display attributes from the current entity and the entity or entities that it is contained by (the parent entities).
So if you had the following data model
Global
..the person
...the income
the person is contained by global.
the income is contained by the person (which is contained by global).
If you want to create a person-level question screen, you can display global attributes on that screen by using subsitution like %global_field_1%. You cannot, however, input global attributes on that screen (ONLY attributes belonging to the person)
If you want to create an income-level question screen, you can display attributes from the person such as "tell us about %person_name%'s income..." as well as global attributes. Again, you cannot input person or global attributes on that screen (ONLY attributes belonging to the income)
However it only works from child-to-parent containment relationships! You cannot have a global question screen which loops through the person instances and displays attributes from the person, or from the income out-of-the-box.
We have managed to implement this using custom controls.
You can map individual attributes back up to the parent level, and then display them,
such as
the first person's name = InstanceValueIf(the people, the person's name, the person's id = 1)
the first person's name is now a global attribute and can be displayed on global question screens.
Hope this helps!
Ben -
Bug: unable to rename entity attribute (jdev903)
Hi,
I have an entity and a view on it.
One of the entity attributes has the wrong name, so I tried to rename it, but jdev gave me a warning that it couldn't rename the attribute because the view is dependent on it. Sounds fair (although I wish it would rename the attribute in the view along with it, (refactoring)).
Then I removed the attribute from the view, and try to rename the entity attribute again. It still can't rename it! I've verified twice to see if the attribute was actually removed from the view, which it was, so this is definitely a bug.
Greetings,
IvoIvo want's to rename the attribute in the entity object without first removing the attribute from the view object. That this isn't possible right now probably isn't a bug, because in your scenario you keep that in mind, so you manually first remove the attribute from the view object. But it would be nice if JDeveloper automatically renames the attribute in the view object too (instead of "complaining" about the dependency). And if you for example remove an attribute from an entity and a view object depends on it, it will ask you to remove the attribute from the view object(s) too etc.
-
Entity Attributes are not populating while creating EO using EO wizard.
Hi,
I am using JDeveloper version 10.1.3.3.0.3 and E-Business suite12.1.2.
I am facing problem while creating EO using EO wizard.
In Entity Object Editor Entity Attributes are not populating while creating EO.
Please help me resolve this issue.
Thanks & Regards,
SagarikaPlease ensure you click on Tables and Synonyms check box and select proper schema.
Try to select the table from the list after this instead of writing as in 10.1.3 when we write table name it automatically selects from the list if it exists in the list.
Thanks
AJ -
Hi,
I'm trying to use entity attribute validation in an ADF Faces / ADFm / ADF BC application. However the validation error
is not propagated through the BindingContainer to my ADF Faces Page. When I customize and override the DCErrorHandler that
is registered on the BindingContext the reportException() method doesn't fire.
Anyone have an idea how to debug this Validation error gone lost ?.
Thanks,
KennethHi,
is it getting propagated without your custom error handler ?
Frank -
I have a small problem with the ability to hide ViewObject/Entity attributes in generated JClient Forms. Hope somebody might know a bit more of this issue.
When setting the "Display Hint" to "Hide" on an attribute (of either the Entity or ViewObject), the appropriate JLabel and JTextField (or whatever Swing control is used to edit the value) will not be hidden, neither at designtime nor runtime.
I'm not (yet ;)) an expert when it comes to JClient, but it seems to me that when I tell an attribute of a ViewObject to be hidden, I would expect that the visible property of the appropriate Swing controls be set to false. [ setVisible(false); ]
In some other thread [ http://forums.oracle.com/forums/message.jsp?id=1342592 ] I read that the problem might be related to setting the control hint AFTER the JClient Form was generated. However, in that same thread someone else suggested that the control hint is processed at runtime. So, I've tried both approaches: first setting the control hint, then generating the JClient Form and first generating the JClient form, then setting the control hint. Neither approach worked.
However, I did notice that after I set the control hints, the JClient Form wizard allowed me to hide 'hidden' attributes (which indeed were the attributes which I had specified to be hidden). So that worked ok. But even though I unchecked the hidden attributes box, the end result was still the same: a Form with all attributes on it. Running the project revealed that the controls were not hidden at runtime either.
Am I pherhaps missing something? Or else could this be a bug?
(As the subject indicates, I'm using JDeveloper 9.0.3 Production Release.)Alright, consider this scenario:
I have a ViewObject with some attributes and in particular the attribute 'X'. In the database table column X is NOT NULL and so attribute X automatically is Mandatory. (This is correctly generated by the BC4J wizard.)
Next, I manually specify that attribute X is invisible (Display Hint). This should cause any bound Swing controls to become invisible when simply browsing the database. However, when inserting a new record, all controls associated with attribute X should become visible (since X is a Mandatory attribute). After the new record has been committed, the appropriate Swing controls become invisible again.
I suppose that this behavior could be the same for non Mandatory attributes, but that's (somewhat) less important.
In case you want a 2nd form in which existing records can be edited (including column X), attribute X should nolonger be invisible. Then the Swing controls bound to attribute X should be removed from the browse form and the 'insert capabilities' of that particular form should be removed as well. The new 2nd should be used for editing/inserting, while the 1st one is for browsing only.
I realise that this scenario may contain a couple of flaws, but it's to give you an indication of what I'd like to be able to do with the existing wizards and attribute editors.
Enjoy :) -
UIX validation entity attribute on page multiple times via different views
We have a situation where an ADF entity attribute appears in multiple views which appear on the same page. Each view selects a different entity row.
When validation fails on one of these attributes, we register an AttrSetValException, as we want to take advantage of attribute level error messages.
The problem is that the validation error message appears for all messageTextFields (for the same entity attribute) when only one of the fields failed validation. Also, the invalid value replaces all input fields even if the other ones were not changed by the user.
I have tried using ex.setNeedsEntityToVOMapping(true) on the exception to no avail. It is as if the entity validation is unable to discriminate between view usages of an entity attribute.
Steve Muench, I have read much of what you have written, but have not seen this particular scenerio. Any advice would be welcome.The issue is fixed. The reason of the problem that I missed overwriting of the validateParameters() in the custom controller class and the custom parameter was missed from the parameter list and it effected parameter validation error.
-
Urgent: Entity Attribute for this View Attribute cannot be in 'irc'
Hi ,
I am trying to extend AplAssgHistoryVO.xml to one extra field 'Chnaged By' as per our critical ptoduction requirement.
I have downloaded the following TOPs under $JAVA_TOP
(a) /oracle/apps/irc
(b) /oracle/apps/per
(c) /oracle/apps/ben
(d) /oracle/apps/xdo
(e) /oracle/apps/ota
(f) /oracle/apps/pay
I have copied these TOPs to my 'D:\p6908968_R12_GENERIC\jdevhome\jdev\myprojects' directory.
Now when I have cerated one .JWS file and one .jpr under that.
Now when I tried to expand oracle.apps.irc.applicant.server it is giving the following error:
oracle.jbo.dt.objects.JboException: Entity Attribute for this View Attribute cannot be found.
oracle.apps.xdo.oa.schema.server.TemplatesVlEO.DataSourceId
oracle.apps.xdo.oa.schema.server.TemplatesVlEOView.DataSourceId
Please could someone tell me why this error is coming. Whether I have to download any other patch/library/TOPs for this.
Thsnka in advance for your help.
Thanks and regards,
Sunil Kanlti MalikHi Abdul,
Thanks for your reply.
This is seeded one. All I am doing to try to extend it.
Please could you let me know what are other TOPs we need to download to extend it.
I am really stucking at this point as I do not know which other TOPs or library I need to download.
Also I could not find the meneitoned item insode the TemplatesVIEO.
Thanks in advance for your help.
Thanks,
Sunil -
Designer Entity-Attribute 'Description' storage - where is it?
I'm searching for the Oracle Designer table that holds the Entity-Attribute 'Description' text.
I've found the Entity-Attribute 'Notes' in the CI_ATTRIBUTES table but haven't located the 'Dscription'.
I'm also having trouble locating the 'Description' text for Entities.
My intent is to move all of the text from the 'Description' to the 'Notes' and migrate the text in the 'Notes' field forward. This would be a lot of cut and paste work if done in Designer.
-KenHello
this info is in the generoc cdi_text view available. Txt_type = 'CDIDSC'
Regards Erik -
Designer Entity-Attribute 'Description' storage - where?
I'm searching for the Oracle Designer table that holds the Entity-Attribute 'Description' text.
I've found the Entity-Attribute 'Notes' in the CI_ATTRIBUTES table but haven't located the 'Dscription'.
I'm also having trouble locating the 'Description' text for Entities.
My intent is to move all of the text from the 'Description' to the 'Notes' and migrate the text in the 'Notes' field forward. This would be a lot of cut and paste work if done in Designer.
-KenPlease ask this question in the Oracle Designer forum: Designer
This is the Oracle Designer Headstart forum. Orade Designer Headstart is a productivity booster for Oracle Designer. Your question is about the internal structure of the Designer repository. -
Transient Entity Attribute as an Assoc
Can I use a transient Entity attribute as an Assoc?
I created an Attribute at the Entity level that is not mapped to a table. The entity is called FirstEndEntity.
Then I created an Association between FirstEndEntity and OtherEndEntity. I used the attribute that i just created at FirstEndEntity, (so its transient) and the OtherEndEntity attribute is mapped to DB table.
When I tested the assoc, the wizard complains, saying he cannot resolve the attribute that i just created?
Is there a way around this?yes, you're right, I've tested it in 12.1.3 and error message was displayed.
it seems it's a bug(bad bug ) in both 11.1.1.7 and 12.1.2. and now what can I do? is there any way to display the the error message?
Regards
Habib
Maybe you are looking for
-
Get First and last day of Month..
Hi Friends, I am trying to fetch First and Last day of a month and would like to implement that in the following code: SELECT COALESCE(Date_A, Date_B, Date_C) FROM dual Here Date A and B are in Format of MM DD YYYY (March 14, 2008) and Date C is like
-
Hi,I have recently replaced by hard drive with a ssd. My old hard drive has all my iTunes stuff.i would like to install only iTunes programme on the ssd with all the content on the old hard drive. How do I do it?
-
XML not well formed in - XSLT mapping
Hi, I am doing a simple xslt mapping wherein my Source data structure is MT |__ details |__ Records |_emp_no |_ emp_name |_emp_dno In XSL file i hv specified <xsl:template match="MT"> and
-
Hello, I want to scroll my Line chart but without zooming the chart is it possible if so how can i achieve this ?My second question is how can i enable and disable this scroll bar with the help of two buttons one for enabling scrollbar and second for
-
After loading the 1.1 update for my nano ipod my nano shuts down after playing the music for 60 seconds. Is anyone else having this problem and is there a fix for it? Very frustrating to have to keep hitting the sleep/wake button and then play to m