Entity object control hints not propagating to ui component

hi there,
i have had no problem with entity object label control hints propagating to ui components... but it would appear that if i add the labe lcontrol hint after the view and ui component are in place then the control hint is not proagating to the ui component.
is there a setting that i am missing? certainly, its not necessary to rebuild the views and ui components that are based on the entity object?
thanks in advance.

There shouldn't be a problem changing the label in the EO definition after you created the UI, as long as your UI's label points to the correct binding.
What's the value of your UI label field?

Similar Messages

  • Filter rows in Entity Object Cache

    Hi
    Jeveloper version:Studio Edition Version 11.1.2.1.0
    I have a table employees with columns employee_id, first_name, last_name, last_opr.
    i have created entity object employees_eo. my entity cache should contain only rows which are not deleted(i.e last_opr not equal to 'D');
    how do i achieve it.

    I need to have only the rows which are not deleted(.e last_opr<>'D') in the entity object cache. (Not in the view object cache)
    The reason why i need is: i have an alternate key in the entity object employees_eo with the combination of employee_id, department_id. it raises an error('already exists') when the same combination is found.
    Lets say employee_id 100 with department_id 10 is deleted. Delete in the sense i am not deleting the record physically. Just flagging last_opr as 'D'.
    When i am trying to add new record with employee_id 100 and department_id 10. it says 'already exists'.
    so what i thought is , my entity object cache can contain only rows which are not deleted, so that alternate key will not check the deleted rows..

  • Settinc control hints values in entity object attributes generically

    Hi, how are you? I work for a project , that uses JDeveloper 10.1.3.3 version and I am assigned to solve some problems in the part that is associated with ADF Business Components—Model—of the application. The question is how could I implement generic functionality in CustomEntityImpl and there I am to assign some control hint values to some attributes and then the entities that will extend this class will acquire this functionality in their attributes.
    I send you some code I have in my mind in order to find out how to write something relevant to set control hints. I have searched in relevant api’s for AttributeHints and EntityDef but I did not find a solution to my problem. I’ve tried this code:
    private final String desc = "Description";
    protected boolean findAttribute(String name) {
    String[] list = this.getAttributeNames();
    for (int i = 0; i < list.length; i++) {                       
    if (name.equals(list))
    return true;
    return false;
    public void beforeCommit(TransactionEvent transactionEvent) {             
    if (findAttribute(desc)){                                                                   
    * AttributeDefImpl adi=null;
    adi.setProperty(AttributeHints.ATTRIBUTE_DISPLAY_HINT_HIDE,"Hide");
    AttributeDef desc=(AttributeDef)adi.getProperty(AttributeHints.ATTRIBUTE_DISPLAY_HINT_HIDE);
    super.beforeCommit(transactionEvent);
    but it does not work. How could I set this value – to hide one attribute whenever it exists in my entities , setting it once in my CustomEntityImpl class?
    I’ve read the whole tutorial ADF Business Components For Forms 4GL Developers but I did not find a solution to my problem. Your help would be a gift to me. Thank you very much!
    * I think that the error is here because this object can not be null. In an api I found the following :
    Advanced users can provide their own implementation of EntityDefImpl (by subclassing EntityDefImpl). Within it, they can create their own AttributeDefImpls by using: new AttributeDefImpl(...);
    How should I subclass EntityDefImpl to create an AttributeDefImpl object?

    Hi
    why don't you create a mehod on the ApplicationModule and call it from the managed bean (using ADF bindings) to pass ths values in ? Note that a managed bean that has a scope of session doesn't mean that it sits in the session to be shared with ADF BC
    Frank

  • Trying to set control hints in entity object attributes in generic classes

    Hi, how are you? I work for a project , that uses JDeveloper 10.1.3.3 version and I am assigned to solve some problems in the part that is associated with ADF Business Components—Model—of the application. The question is how could I implement generic functionality in CustomEntityImpl and there I am to assign some control hint values to some attributes and then the entities that will extend this class will acquire this functionality in their attributes.
    I send you some code I have in my mind in order to find out how to write something relevant to set control hints. I have searched in relevant api’s for AttributeHints and EntityDef but I did not find a solution to my problem. I’ve tried this code:
    AttributeHints ah=new AttributeHints(new AttributeDef(RIBUTE_DISPLAY_HINT_HIDE ) );
    but it does not work. How could I set this value – to hide one attribute whenever it exists in my entities , setting it once in my CustomEntityImpl class?
    I’ve read the whole tutorial ADF Business Components For Forms 4GL Developers but I did not find a solution to my problem. Your help would be a gift to me. Thank you very much!
    private String primary_key = "Id";
    private final String dte_insert = "Dteinsert";
    private final String dte_update = "Dteupdate";
    private final String user_insert = "Usrinsert";
    private final String user_update = "Usrupdate";
    private final String afm = "Afm";
    protected boolean findAttribute(String name) {
    String[] list = this.getAttributeNames();
    for (int i = 0; i < list.length; i++) {                       
    if (name.equals(list))
    return true;
    return false;
    protected void doDML(int operation, TransactionEvent transactionEvent) {
    //Insert Operation
    if (operation == DML_INSERT) {
    //Add history column
    if (findAttribute(dte_insert)) {
    Date date = new Date((new Date()).getCurrentDate());
    this.setAttribute(dte_insert, date);
    //Update Operation
    else if (operation == DML_UPDATE) {
    //Add history column
    if (findAttribute(dte_update)) {
    Date date = new Date((new Date()).getCurrentDate());
    this.setAttribute(dte_update, date);
    //Delete Operation
    else if (operation == DML_DELETE) {
    //To DO
    super.doDML(operation, transactionEvent);

    I Suggest you set its Attribute on EOImpl, override doDML, and before call super.doDML set your Attribute. There is a special reason to set Attribute on beforeCommit?
    Best Regards

  • HELP URGENT - Entity Object Substitution not working as advertised!!!!!

    Hi All,
    I have done an entity Object substitution and in order to rule out any coding errors on my part I have generated a fresh EO with no code changes in it and uploaded the files to java top and updated the MDS with the substitution.
    The substitution is successful but I get the following error related to my substituted file:
    oracle.apps.fnd.framework.OAException: oracle.jbo.AttrValException: JBO-27019: Get method for attribute "ItemNumber" in XxEgoMtlSystemItemsVLEOEx could not be resolved. at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:912) at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1169) at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:3241) at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:3036)
    ## Detail 0 ## java.lang.ClassCastException: oracle.jbo.server.EntityDefImpl incompatible with oracle.apps.fnd.framework.server.OAEntityDefImpl at oracle.apps.ego.item.eu.server.EgoMtlSystemItemsVLEOImpl.getDefinitionObject(EgoMtlSystemItemsVLEOImpl.java:562) at oracle.apps.ego.item.eu.server.EgoMtlSystemItemsVLEOImpl.getItemNumber(EgoMtlSystemItemsVLEOImpl.java:11324) at oracle.apps.ego.item.eu.server.EgoMtlSystemItemsVLEOImpl.getAttrInvokeAccessor(EgoMtlSystemItemsVLEOImpl.java:6888)
    I think the real error is Detail 0 line but I haven't seen this before. Could this be the wrong version of JDeveloper that I have used????? About this page showed 12.1.2 and I have downloaded the JDev for 12.1.2???????
    Please help I need to sort this ASAP.
    Thanks all

    I have covered everything in the above threads and followed the EO substitution scenario exactly as per area51.
    I am now getting a different error on the EO substitution, when the page loads that creates a row in the EO the following error is displayed:
    Error
    1. Attribute set for InventoryItemId in view object EgoMtlSystemItemsVO failed
    2. Attribute set for InventoryItemId in view object EgoMtlSystemItemsVO failed
    3. Attribute set for InventoryItemId in view object EgoMtlSystemItemsVO failed
    4. Attribute set for InventoryItemId in view object EgoMtlSystemItemsVO failed
    This is a caught error and thrown to the top of the page as opposed to a complete stack error which is what I was getting before? At first I thought this was due to the VO substitution I had done earlier as a test but I have deleted the substitution document for the VO sub and if I remove my EO substitution the page works fine so my EO substitution is causing the problem.
    EO substitution was as follows:
    <Substitutes>
    <Substitute OldName ="oracle.apps.ego.item.eu.server.EgoMtlSystemItemsVLEO" NewName ="xxsdg.oracle.apps.ego.item.eu.server.XxEgoMtlSystemItemsVLEOEx" />
    </Substitutes>
    Beginning of EO Code is as follows:
    package xxsdg.oracle.apps.ego.item.eu.server;
    import oracle.apps.ego.item.eu.server.EgoMtlSystemItemsVLEOImpl;
    import oracle.apps.fnd.framework.server.OAEntityDefImpl;
    import oracle.jbo.AttributeList;
    import oracle.jbo.domain.Date;
    import oracle.jbo.domain.Number;
    import oracle.jbo.domain.RowID;
    import oracle.jbo.server.AttributeDefImpl;
    import oracle.jbo.server.EntityDefImpl;
    // --- File generated by Oracle ADF Business Components Design Time.
    // --- Custom code may be added to this class.
    // --- Warning: Do not modify method signatures of generated methods.
    public class XxEgoMtlSystemItemsVLEOExImpl extends EgoMtlSystemItemsVLEOImpl {
    public static final int MAXATTRCONST = EntityDefImpl.getMaxAttrConst("oracle.apps.ego.item.eu.server.EgoMtlSystemItemsVLEO");
    public static final int GLOBALATTRIBUTE11 = MAXATTRCONST;
    public static final int GLOBALATTRIBUTE12 = MAXATTRCONST + 1;
    public static final int GLOBALATTRIBUTE13 = MAXATTRCONST + 2;
    public static final int GLOBALATTRIBUTE14 = MAXATTRCONST + 3;
    public static final int GLOBALATTRIBUTE15 = MAXATTRCONST + 4;
    public static final int GLOBALATTRIBUTE16 = MAXATTRCONST + 5;
    public static final int GLOBALATTRIBUTE17 = MAXATTRCONST + 6;
    public static final int GLOBALATTRIBUTE18 = MAXATTRCONST + 7;
    public static final int GLOBALATTRIBUTE19 = MAXATTRCONST + 8;
    public static final int GLOBALATTRIBUTE20 = MAXATTRCONST + 9;
    public static final int ROWID = MAXATTRCONST + 10;
    private static OAEntityDefImpl mDefinitionObject;
    /**This is the default constructor (do not remove)
    public XxEgoMtlSystemItemsVLEOExImpl() {
    /**Retrieves the definition object for this instance class.
    public static synchronized EntityDefImpl getDefinitionObject() {
    if (mDefinitionObject == null) {
    mDefinitionObject =
    (OAEntityDefImpl)EntityDefImpl.findDefObject("xxsdg.oracle.apps.ego.item.eu.server.XxEgoMtlSystemItemsVLEOEx");
    return mDefinitionObject;
    /**Add attribute defaulting logic in this method.
    public void create(AttributeList attributeList) {
    super.create(attributeList);
    ....

  • Extending view object which does not have any entity object associated with

    Dear all
    I am interested in extended on of the standard pages VO object in JDeveloper OA extension
    the standard page is oracle/apps/pos/supplier/....suppSummaryPG
    and one of the view which I am interested to extend is suppSummVO
    the problem is that when I copy xml files and java files from apps server to
    my local jdevelope folder , I am not able to open that suppSummVO, the changes which
    I find from other VO object and this(suppSummVO) object is that, this VO does not have any
    Entity Object associated with it and the only query is return on this VO , is it the reason that
    I am not able to open it Jdeveloper, but the real issue is that how can I extends this type of VO
    in my OAExtension.
    Regard
    Noman

    Its the same way of extending VO with EO's or without EO's.
    Sometimes if the .class files arn't decompiled we get weird jbo errors. So use cavaj/jad to decompile those Impl.class, RowImpl.class files and keep them in the same folder as vo.xml in myprojects and try extending that VO.
    Thanks,
    Ravi

  • ADF JDeveloper 10.1.3.4.0 Entity Attribute validation not propagated to UI

    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,
    Kenneth

    Hi,
    is it getting propagated without your custom error handler ?
    Frank

  • Business object data is not reflecting in data control

    Hi
    I am new to BPM i have a scenario to expose the Business objects(created in my own not from XSD) into data control while updating the any attribute in the business object,but it's not happening while i am trying this scenario.
    can some please help me ASAP

    I think what you're referring to is that you've generated an ADF user interface based on one of your human tasks and that human task took as input one of your processes variables that was based on a BPM Object you created from scratch and you've updated the BPM Object and are not seeing the update reflected in your Data Control.
    In the simplest case, this might work:
    1) Open the Application Navigator tab
    2) Click the refresh icon to the right of the "Data Controls" title in the tab
    3) Inside the Data Control tab, right mouse click the specific data control that is based on the human task and the XSD (the one you want to refresh) -> click "Edit Definition" -> click "Refresh Data Control".
    If that doesn't work, open your ADF project's "DataControls.dcx" file.  This file hard codes the location of the corresponding human task file (.task) and the schema file (.xsd).

  • Extended but NOT polymorphic Entity Object ?

    Hi,
    We are trying to implement the OO features of ADF BC, i.e : Inheritance and Polymorphism, to reuse the logic in EO. I need some confirmation below to make sure we apply it correctly :
    1) We can Extend Entity Object WITHOUT assigning any discriminator, can't we ?
    (this is what I call Extended but NOT polymorphic )
    If the answer is yes , then I have further question :
    2) In our Order Processing module of our ERP application, there are following entity object : SalesOrder, Invoice, SalesReturn, CreditNote
    And there are four underlying database tables : SalesOrder, Invoice, SalesReturn, CreditNote.
    They are surely DIFFERENT transaction BUT they have COMMON attributes (and validation), This is why I call it "Extended but NOT polymorphic".
    The common attributes are :
    - DocID (PK)
    - DocNumber
    - DocDate
    - Warehouse
    - Customer
    - Salesman
    - TermOfPayment
    - DueDate
    So I create one BaseOrderEntity as super class entity. Then I create four entity objects that extend the base entity :
    Entity : SalesOrder, Extend : BaseOrderEntity, Database Object : SalesOrder
    Entity : Invoice, Extend : BaseOrderEntity, Database Object : Invoice
    Entity : SalesReturn, Extend : BaseOrderEntity, Database Object : SalesReturn
    Entity : CreditNote, Extend : BaseOrderEntity, Database Object : CreditNote
    Is this the correct way to apply it ?
    In other word, is this the correct use case ?
    Thank you very much,
    xtanto.

    Starting in JDeveloper 10.1.2, the ADF runtime throws an error if it detects that you have a superclass and subclass entity objects without properly-configured discriminator attributes. If you do not intend to instantiate the superclass, just assign it a descriminator attribute with a value that will never occur in real-life, like NULL or 'x' or whatever.
    It will be simplest if all your family of subclasses were stored in the same table, although that is not required. It simply makes the polymorphic queries easier.
    If you want to avoid the runtime check for the discriminator's being properly configured, because you know that your application will never run the chance of loading the same row into the entity cache as two different entity definition types, then you can get a property jbo.abstract.base.check in your configuration (or as a System property) to the value false and then the check is not performed.

  • Entity object not found

    JDeveloper 10g EJB testing on standalone OC4J exception java.ejb.ObjectNotFoundException followed by:
    myEJBHome_EntityHomeWrapper13.finderMethod(). The Servlet has performed the initial.lookup for the bean successfully and is accessing a finder method thru the remote home interface. The thing is, I had this working and have somehow managed to break it. Either while playing around with deployment and/or client-application descriptors or something I'm not even aware of. Also, what is the "Wrapper13" which gets appended to my home class which number changes with each debug session?
    Any suggestions are appreciated.

    Let me go thru the steps that I performed and maybe you can tell me where I went wrong. Like I said I had it working before.
    1) Created a project for an Entity Bean based on a Table View.
    2) Created a Servlet to test the EJB and it was able to lookup the EJB
    3) Looped thru the findAll() Home method and displayed all of the view rows
    4) Created a finder method using the findAll as an example by:
    6) Adding a finder method using the Bean properties dialog and to return an EJBObject with a String param used in the EJB QL and selecting to expose it thru the Home interface.
    7) The matching prototype was added to the RemoteHome class.
    8) Added the call in the Servlet and I get the Entity object exception.
    I just recreated this by creating a new finder method as I wrote these steps and got the same exception. Is there some step(s) I'm missing? Thx for any help.

  • Control hints tab for an attribute of a view object shows null pointer erro

    hi
    I am using j developer 11g. I have a view object and it is working fine and i set control hints for an attribute , i set display label and length etc
    there. now i am taking the view object the control hints tab for the particular tab didnt shows and there displayed follwing error
    how can i rectiify this error.
    java.lang.NullPointerException
         at oracle.jbo.dt.ui.main.misc.ControlHintsPanel.isOverridenProperty(ControlHintsPanel.java:662)
         at oracle.jbo.dt.ui.main.misc.ControlHintsPanel.processUIHintsOnEnter(ControlHintsPanel.java:577)
         at oracle.jbo.dt.ui.main.misc.BaseControlHintsPanel.initializeControlsFromContext(BaseControlHintsPanel.java:187)
         at oracle.jbo.dt.ui.main.misc.BaseControlHintsPanel.enter(BaseControlHintsPanel.java:340)
         at oracle.jbo.ui.wizard.JboWizard.selectPage(JboWizard.java:806)
         at oracle.jbo.ui.wizard.JboWizard.selectPage(JboWizard.java:758)
         at oracle.jbo.ui.wizard.JboWizard.newMddPageSelected(JboWizard.java:827)
         at oracle.jbo.ui.mdd.MddTraversable.onEntry(MddTraversable.java:70)
         at oracle.ide.panels.MDDPanel.enterTraversableImpl(MDDPanel.java:1213)
         at oracle.ide.panels.MDDPanel.enterTraversable(MDDPanel.java:1194)
         at oracle.ide.panels.MDDPanel.mav$enterTraversable(MDDPanel.java:128)
         at oracle.ide.panels.MDDPanel$Tsl.updateSelectedNavigable(MDDPanel.java:1650)
         at oracle.ide.panels.MDDPanel$Tsl.updateSelection(MDDPanel.java:1518)
         at oracle.ide.panels.MDDPanel$Tsl.actionPerformed(MDDPanel.java:1512)
         at javax.swing.Timer.fireActionPerformed(Timer.java:271)
         at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
         at java.awt.Dialog$1.run(Dialog.java:1045)
         at java.awt.Dialog$3.run(Dialog.java:1097)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.awt.Dialog.show(Dialog.java:1095)
         at java.awt.Component.show(Component.java:1422)
         at java.awt.Component.setVisible(Component.java:1375)
         at java.awt.Window.setVisible(Window.java:806)
         at java.awt.Dialog.setVisible(Dialog.java:985)
         at oracle.jbo.ui.main.JboDialog.setVisible(JboDialog.java:164)
         at oracle.jbo.ui.wizard.JboWizard$MddWizardDialog.setVisible(JboWizard.java:2557)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.jbo.ui.main.JboDialog.showDialog(JboDialog.java:142)
         at oracle.jbo.ui.wizard.JboWizard$MddWizardDialog.showDialog(JboWizard.java:2493)
         at oracle.jbo.ui.wizard.JboWizard.createMddWizard(JboWizard.java:549)
         at oracle.jbo.ui.wizard.JboWizard.setVisible(JboWizard.java:352)
         at oracle.jbo.ui.wizard.JboWizard.showDialog(JboWizard.java:330)
         at oracle.jbo.dt.jdevx.ui.JdxMenuManager.invokeEOAttributeDialog(JdxMenuManager.java:1295)
         at oracle.jbo.dt.jdevx.ui.JdxMenuManager.invokeAttributeDialog(JdxMenuManager.java:1277)
         at oracle.jbo.dt.ui.main.DtuMenuManager.doEditMenuAction(DtuMenuManager.java:1776)
         at oracle.jbo.dt.ui.main.DtuMenuManager.performMenuAction(DtuMenuManager.java:1584)
         at oracle.jbo.dt.ui.main.DtuMenuManager.doMenuAction(DtuMenuManager.java:1377)
         at oracle.jbo.dt.jdevx.ui.JdxMenuManager.doMenuAction(JdxMenuManager.java:892)
         at oracle.jbo.dt.jdevx.deployment.ui.JxdMenuManager.doMenuAction(JxdMenuManager.java:66)
         at oracle.jbo.dt.ui.main.DtuMenuManager.doAction(DtuMenuManager.java:1363)
         at oracle.jbo.dt.ui.main.DtuMenuManager.doAction(DtuMenuManager.java:1348)
         at oracle.jbo.dt.jdevx.ui.editors.common.JeoBaseEditor.doMenuAction(JeoBaseEditor.java:327)
         at oracle.jbo.dt.jdevx.ui.editors.common.JeoEditorPage.doMenuAction(JeoEditorPage.java:777)
         at oracle.jbo.dt.jdevx.ui.editors.view.VoeAttributesPage.doMenuAction(VoeAttributesPage.java:366)
         at oracle.jbo.dt.jdevx.ui.editors.common.JeoEditorPage.mouseDoubleClick(JeoEditorPage.java:642)
         at oracle.jbo.dt.jdevx.ui.editors.common.JeoEditorPage.mouseClicked(JeoEditorPage.java:623)
         at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
         at java.awt.Component.processMouseEvent(Component.java:6044)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
         at java.awt.Component.processEvent(Component.java:5806)
         at java.awt.Container.processEvent(Container.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:4413)
         at java.awt.Container.dispatchEventImpl(Container.java:2116)
         at java.awt.Component.dispatchEvent(Component.java:4243)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3995)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2440)
         at java.awt.Component.dispatchEvent(Component.java:4243)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

    I did try making a VO that extends the original VO, but with the attribute based on the SDO_NN_DISTANCE function call, which means that a call to SDO_NN MUST be in the WHERE clause.
    This works to some extent, in that the common attributes and methods are in the second VO, inherited from the first, without me having to write them again. However, I have to use them in my ViewController project as two separate VOs. For one thing, I need two separate result pages, one for when the query used the SDO_NN in the where, and needed the distance in the output, and one without. One uses the original VO, and the other uses the new one. Similarly, I need two separate pages for adding additional criteria. Doing it this way with pairs of nearly identical pages is going to be a pain, and will be difficult to maintain, since any change will have to be done twice. Or can .jspx pages be written that extend other .jspx pages, and in particular override the VO bindings in the pageDef? Could a single .jspx page decide dynamically which pageDef to use?
    I decided to try a different tack. Back to a single VO, I wrote a WHERE clause that calls SDO_NN, but returns all of the rows. That way, I can have a call to SDO_NN_DISTANCE in the SELECT for all queries, and I was even able to add a parameter that sets the Distance attribute to NULL if it is irrelevant to the query the user constructs. This is a good work around, but it is a little slow, because SDO_NN is doing a lot of work but returning every row when it hasn't been replaced with an "actual" SDO_NN where clause.
    One more possibility: Can I have a method that replaces the entire SELECT command for this VO dynamically? I assume that you need to make sure that the expressions in the SELECTed data still map to the attributes one to one, with the same aliases. After all, I am already replacing the WHERE clause dynamically, and it works fine.

  • Where to put my customized formatting that Control Hints does not provide?

    To whom that know or have experience with it:
    The control hints does not provide solutions for all possible formatting needs. For example, I need to display only last four digits of social security numbers (i.e., for "123-45-6789", display "***-**-6789"). Another data table column stores school semesters as YYYYMM, e.g., 200902, where 2009 is the year and 02 is the month that represents Spring (MM can also be 06 and 09 that represent Summer and Fall). I need to display the semester in a more user-friendly way (i.e., for "200902", display "Spring 2009"). Of course, I can not change data format in the table; I only seek to format the display of the data.
    I would think that it takes only a few lines of java code to do these formatting by splitting the string into sub-strings, replace some of them with appropriate new values, then re-assemble them. But where to put such code? Does any documentation cover this topic?
    Newman

    Shay,
    I read the document, tried it, and it worked out nicely.
    There is not the getAttributeName() method in the ViewObjectImpl class in version 10.1.3.4, which is the version I am using. But the EO class has it and it works out all the same.
    I don't know how long it would otherwise take me to read and fumble to find out where to put the custom formatting code. Your experience and familiarity with the technology really saved me a huge amount of time. Thank you so much for your help!
    Newman

  • Cannot customizing control hints

    I downloaded the ToyStore sample code and tried changing the control hints but none of my changes take effect. For example, to try to change the field labels on the "Register New User" screen, I tried changing the control hints in the Account entity object and the nothing changes ... then I change the control hints in the Accounts view object and still none of my changes take effect. I re-compiled the Toystore model project AND restarted the embedded OC4J server but to no avail -- the original field labels values are still displayed. Furthermore, the values that are in the Account's message resource bundle class are different than what you see in the control hints GUI dialog --- as a matter of fact, the control hints GUI dialog for the Account EO and Accounts VO show nothing yet the message resource bundle class shows values. Am I looking at this incorrectly?

    Yup -- I do see my changes in the BC4J tester locally. I'm assuming you mean through testing it through the "Test" feature of the Application Module object.
    Please try changing a View Object's control hints in the Toy Store sample app and see if the changes stick in the JSP. I have to be doing something wrong if I'm not seeing the changes stick.

  • Entity Object and Seqence

    There is a confusion about DBSequence in Entity Object. I've defined an entity object named Employee and its primary key is Gkey. I've chosend DBSequence as its attribute type (Update While New) and overode doDML method as follows:
    <code>
    protected void doDML(int operation, TransactionEvent e) {
    if (operation == DML_INSERT) { 
    SequenceImpl seq =
    new SequenceImpl("seq_employees_gkey", getDBTransaction());
    Integer n = new Integer(seq.getSequenceNumber().intValue());
    super.setAttribute(GKEY, new DBSequence(n));
    super.doDML(operation, e);
    </code>
    Its working fine. Whenever I insert a new row in my JClient form, Gkey fields shows blank and when I commit the transaction, next seqence no. automatically comes in.
    But when I use Integer or Long as the data type of Gkey instead of DBSequence it didn't make any difference. and was working fine. So what is the exact purpose of DBSequence ?
    Secondly, I defined a child Entity Object for the above EO. I defined a ParentGkey column and defined its attribute type Integer and in parent EO, GKey data type was defined as DBSeqeunce. So when I map Parent's Gkey agains Child ParentGKey column to define association, assocation wizard gives a mismatch attribute type error because parent's attribute type was DBSequence and Child type was Integer.
    Regards
    Aamir

    Dear Shailesh,
    I didn't override create() method, I overrode the doDML method. I've come to know, by reading previous postings, taht although DBSequence relies on database trigger but overrding doDML method is an alternative to database trigger.
    However what I asked here is that JDev team says that framework assigns a unique temporary value to the field that has DBSequence domain, then why I dont see this temporary value in Tester and in my JClient form.The tests I've run with DBSequence does show the negative/temporary DBSequence value in the tester. Do you see the attribute with no-value in the tester or the attribute does not show up at all - which would be the case if the attribute's control-hint indicates it should be a hidden field.
    Second thing I asked is that if the field using DBSequence has to be referred as a foreign key in an association then what should be the type of this field in the child EntityObject. If we set this field in child EO as Integer it gives a type mismatch error.That was a bug in JDev 903P. Should be fixed in JDev 903 production.
    Hope you will understand my question.
    Muhammed Aamir

  • Custom Control Hints

    Is there any way to have my own Control Hint?
    For example:
    - resource bundle of entity control hints contains
    {"DayType_ENUMERATEVALUES", "P,S,N"},
    {"DayType_ENUMERATELABELS", "work,saturday,sunday"}
    And then I can use:
    aDef.getUIHelper().getHintValues(localeContext, "ENUMERATEVALUES");
    aDef.getUIHelper().getHintValues(localeContext, "ENUMERATELABELS");
    I tried this, but it doesn't work.
    Some other way to do it...?
    (The best solution can be using standard message bundles of entity object....)
    Thank you very much for any comment

    I'm unable to reproduce this behavior in Jdev 903
    Here's what I tried:
    - I create a custom hint say "Label" from the wizard on a Name attribute in an entity object.
    - I save the resource bundle file (actually all the files)
    - Then I edit the resource bundle file for the entity and add my custom messages following the pattern in the file.
    - Then I edit the entity/entity attribute, add more labels etc.
    My custom messages were preserved. Their position in the messages array was moved to the top of the 'array'.
    The other question - why attribute wizard is for root resource bundle only?
    I do not understand this question? Could you elaborate/restate?

Maybe you are looking for

  • What is the best way to open a .sit file?

    I downloaded my first .sit file today and thought double-clicking on it would open it with Stuffit Expander (which I also thought was included software, but apparently not -- at least not according to Spotlight). Instead, it for some reason defaulted

  • How to remove plug in ._v1_.swf from safari

    How to remove plug in ._v1_.swf from safari. Can't do it the usual ways.

  • Photo merge question

    when i try to do a photo merge i get the following error Error 48: File or folder does not exist. Line: 46 ->  $.evalFile(g_StackScriptFolderPath + "StackSupport.jsx"); I am on a macbook pro retina, with cs6 via creative cloud.

  • Photoshop CS6 - Visual impressions

    So, I watched the promotional videos, got hyped up and downloaded CS6 beta. I love some of the new features, like all the different tile options and as someone who works with many many layers, I LOVE that you can now filter them and even search by na

  • Test Driven Development...

    Hi, I'd like to hear some pro's and con's about this Test Driven Development methodology. Have anyone of you in this forum been using this technique for your unit tesing? If so, please share the experiences. http://www.fusionauthority.com/Techniques/