Hints on object

Hi All,
Can I use Oracle hints on object data? I'm using 10.2 version.
Sample SQL:
SELECT /*+ parallel(a,10) parallel(b,10)*/ Obj(a.#col1#,
a.#col2#,
) BULK COLLECT
INTO < Variable_Name >
FROM TABLE(CAST(#obj1# AS #obj1_Tt#)) a,
TABLE(CAST(#obj2# AS #obj2_Tt#)) b
WHERE < Filter Goes Here >
GROUP BY < GROUP BY Conditions Goes Here>
Thanks,

What are you actually trying to achieve?
Hints are a great tool for helping to locate the cause of performance issues, but they are something that should be rarely used in production code. Oracle provides other tools that also assist with finding performance issues without the need to use hints.
Perhaps if you explained what your business requirements are we can advise how to approach it.
{message:id=9360002}

Similar Messages

  • Code hinting with objects? how do they do it?

    Hello,
    I am working with Flex Builder and it has a nice code completion and code hint option in it.
    If i use the Tweener class you get code hinting of an object.
    Example  : Tweener.addTween( { x:100, time:1, transition: "easeOutQuad"} );
    Now within the brackets (object) you also get code hinting. I was wondering how to do this too?
    Do i need to make a new public object?
    public var myObj:Object = new Object();
    public var myObj.time = 4;
    public var myObj.xPos = 20;
    MyCustomClass.customFunction( { ..the myObj properties..   });
    Regards,
    Chris

    thanks for the reply! I did not know with the param options.
    That is very nice! And i understand now how it works. The only thing i was wondering is, that
    you can see what to enter with param for a function. But not within an object.
    For example the caurina tweener.
    Tweener.addTween( yourmovie, { x:100, there is no hinting or knowing what properties can be set here ..... } );
    function doSomething(argument1:Boolean = true,  myNumber:Number  = 24):void {
    doSomething( ..in here you get always code hinting because it are params,  { but not in an object ? } );
    Regards,
    Chris.

  • Universe hints not working

    Hi,
    I am facing performance issue while execute BO report against universe using Oracle database.
    I have applied hints to universe at connection level as custom parameter.
    But when i try to create any report. hints is not appearing in report queries.
    Expected : Select /hints/ Ob1,Ob2 from Table1
    Actual : Select Ob1,Ob2 from Table1 (No hints is appearing)
    Could you please help?
    Thanks.

    Hi Ram Babu,
    Thanks for your reply.
    When i create the hint at object level, i need drag the object first in each report ( even it required or not i need to drag). I am expecting the hint irrespective of objects is there any other way to get the hints.
    I have so many objects in my universe, it is not possible to create the hint for each object.
    Anyone please help........
    Thanks,
    Shahin.

  • Problem of Customizing Control Hints

    I am now working with BC4J+Uixml to demonstrate a Web .And I want to use Control hints in Object Entities for the Object Veiws which depend on them.But I dont think i can work after trying it sometimes . But i got that this problem is fixed but the fix ist not for 903,Just want to know how long we should wait until this problem is soluted or Maybe I can have another way ,thanks .

    Hi Trevi, I have tried it again . And it seems not better.Here is my code --a table and a Choice based on the same Countries EO. the table can be displayed properly but  Nothing is post to the Choice.
    <bc4j:viewObjectScope name="Countries">
    <contents>
    <bc4j:table name="CountryTable">
    <contents>
    <bc4j:column attrName="CountryId" >
    <columnHeader>
    <bc4j:sortableHeader/>
    </columnHeader>
    <contents>
    <bc4j:textInput readOnly="true"/>
    </contents>
    </bc4j:column>
    <bc4j:column attrName="CountryName">
    <columnHeader>
    <bc4j:sortableHeader/>
    </columnHeader>
    <contents>
    <bc4j:dateField readOnly="true"/>
    </contents>
    </bc4j:column>
    </contents>
    </bc4j:table>
                                                                     <bc4j:messageChoice nodeID="CountryName" attrName="CountryName" >
                                                                     </bc4j:messageChoice>
    </contents>
    </bc4j:viewObjectScope>
    Where ist the problem now?
    Thanks
    Yong

  • Help with shared objects

    Is it possible to code shared objects in Actions Script 2?  If so, does anyone know of a good tutorial on how to do this?  I haven't had much luck in finding any thus far, but then again I haven't really had the time to do an indepth search yet.

    Do you really need to use AS2? If yes here a good starting tutorial:
    http://www.kirupa.com/developer/actionscript/shared_objects.htm
    If rather prefer using AS3:
    http://blog.six4rty.ch/2010/07/24/as3-quick-hint-shared-objects/

  • 10g doing VIEW type join even when no view in SQL - and performing poorly

    Using 10.2.0.2.0
    Every once in a while I see CBO deciding to use VIEW type join even when there is no view in the SQL and whenever it does that the performance just sucks.
    Example –
    SQL-
    SELECT a.emplid, a.empl_rcd, TO_CHAR (((a.dur) + (:"SYS_B_00")), :"SYS_B_01"),
    a.seqnum
    FROM ps_wrk_adhoc_tao5 a, ps_tl_prof_wrk5 b, ps_tl_empl_data c
    WHERE a.dur =
    (SELECT MAX (a1.dur)
    FROM ps_wrk_adhoc_tao5 a1
    WHERE a1.process_instance = :"SYS_B_02"
    AND a1.emplid = a.emplid
    AND a1.empl_rcd = a.empl_rcd)
    AND a.dur < TO_DATE (:"SYS_B_03", :"SYS_B_04")
    AND NOT EXISTS (
    SELECT :"SYS_B_05"
    FROM ps_tl_ta_exceptn5 q
    WHERE q.process_instance = :"SYS_B_06"
    AND q.exception_id = :"SYS_B_07"
    AND q.emplid = a.emplid
    AND q.empl_rcd = a.empl_rcd
    AND q.dur = a.dur)
    AND :"SYS_B_08" = :"SYS_B_09"
    AND c.emplid = a.emplid
    AND b.emplid = a.emplid
    AND c.empl_rcd = a.empl_rcd
    AND b.empl_rcd = a.empl_rcd
    AND c.effdt =
    (SELECT MAX (c1.effdt)
    FROM ps_tl_empl_data c1
    WHERE c1.emplid = c.emplid
    AND c1.empl_rcd = c.empl_rcd
    AND c1.effdt <= ((a.dur) + (:"SYS_B_10")))
    AND b.effdt =
    (SELECT MAX (b1.effdt)
    FROM ps_tl_prof_wrk5 b1
    WHERE b1.process_instance = :"SYS_B_11"
    AND b1.emplid = b.emplid
    AND b1.empl_rcd = b.empl_rcd
    AND b1.effdt <= ((a.dur) + (:"SYS_B_12")))
    AND c.time_rptg_status = :"SYS_B_13"
    AND b.empl_status IN (:"SYS_B_14", :"SYS_B_15", :"SYS_B_16", :"SYS_B_17")
    AND a.process_instance = :"SYS_B_18"
    AND b.process_instance = :"SYS_B_19"
    Plan –
    Operation Object Name Rows Bytes Cost Object Node In/Out PStart PStop
    SELECT STATEMENT Optimizer Mode=CHOOSE 1 18
    NESTED LOOPS ANTI 1 153 13
    NESTED LOOPS 1 125 12
    NESTED LOOPS 1 103 10
    HASH JOIN 1 76 9
    INDEX RANGE SCAN SYSADM.PS0WRK_ADHOC_TAO5 7 245 2
    SORT AGGREGATE 1 21
    TABLE ACCESS BY INDEX ROWID SYSADM.PS_WRK_ADHOC_TAO5 6 126 3
    INDEX RANGE SCAN SYSADM.PS_WRK_ADHOC_TAO5 6 2
    VIEW SYS.VW_SQ_1 524 20 K 6
    HASH GROUP BY 524 40 K 6
    FILTER
    MERGE JOIN 1 K 124 K 5
    SORT JOIN 151 5 K 2
    INDEX RANGE SCAN SYSADM.PS_TL_PROF_WRK5 151 5 K 1
    SORT JOIN 214 8 K 3
    INDEX RANGE SCAN SYSADM.PS0WRK_ADHOC_TAO5 214 8 K 2
    TABLE ACCESS BY INDEX ROWID SYSADM.PS_TL_PROF_WRK5 1 27 1
    INDEX UNIQUE SCAN SYSADM.PS_TL_PROF_WRK5 1 0
    TABLE ACCESS BY INDEX ROWID SYSADM.PS_TL_EMPL_DATA 1 22 2
    INDEX RANGE SCAN SYSADM.PS_TL_EMPL_DATA 1 1
    SORT AGGREGATE 1 20
    FIRST ROW 1 20 2
    INDEX RANGE SCAN (MIN/MAX) SYSADM.PS_TL_EMPL_DATA 1 20 2
    INDEX RANGE SCAN SYSADM.PS_TL_TA_EXCEPTN5 1 28 1
    If I use a rule hint here I get this plan. I get the plan given below on another database even without the rule hint –
    Operation Object Name Rows Bytes Cost Object Node In/Out PStart PStop
    SELECT STATEMENT Optimizer Mode=HINT: RULE
    FILTER
    FILTER
    TABLE ACCESS BY INDEX ROWID SYSADM.PS_TL_EMPL_DATA
    NESTED LOOPS
    NESTED LOOPS
    TABLE ACCESS BY INDEX ROWID SYSADM.PS_TL_PROF_WRK5
    INDEX RANGE SCAN SYSADM.PS_TL_PROF_WRK5
    TABLE ACCESS BY INDEX ROWID SYSADM.PS_WRK_ADHOC_TAO5
    INDEX RANGE SCAN SYSADM.PS_WRK_ADHOC_TAO5
    INDEX RANGE SCAN SYSADM.PS_TL_EMPL_DATA
    SORT AGGREGATE
    TABLE ACCESS BY INDEX ROWID SYSADM.PS_WRK_ADHOC_TAO5
    INDEX RANGE SCAN SYSADM.PS_WRK_ADHOC_TAO5
    INDEX RANGE SCAN SYSADM.PS_TL_TA_EXCEPTN5
    SORT AGGREGATE
    INDEX RANGE SCAN SYSADM.PS_TL_EMPL_DATA
    SORT AGGREGATE
    INDEX RANGE SCAN SYSADM.PS_TL_PROF_WRK5
    The whole schema was analyzed using dbms.stats only yesterday. My question is why is Oracle doing VIEW, and how can I stop it from doing that. Hint is not an option.

    I understand that SQL Developer takes it's NLS settings from Preferences - Database - NLS Parameters. What I was not aware of is that when SQL Developer is run for the first time the NLS Parameters seem to be populated from the settings on the OS of the PC it is running on. To test that this was the case I did the following
    I work on a Windows XP system with Regional Options - Standards and Formats and Regional Options - Location set with English (United Kingdom) and United Kingdom respectively.
    I unzipped two clean SQL Developer instances (both Version 1.2.1). The first instance I first ran under my current PC set up without importing settings from a previous installation. The Preferences - Database - NLS Parameters - Language and Preferences - Database - NLS Parameters - Territory had been populated with English and United Kingdom.
    I then changed the Regional Options on the OS to English (United States) and United States and ran the second instance of SQL Developer for the first time, again without importing settings. In this instance of SQL Developer the NLS Parameters were populated with American and America.
    When the first instance of SQL Developer was the checked under these OS settings the NLS Parameters were still English and United Kingdom.
    I was not aware this was the case and, if my test is correct, it seems to contradict the SQL Developer user guide http://download.oracle.com/docs/cd/E10405_01/doc/appdev.120/e10406/intro.htm#CHDBHCAG
    James
    Message was edited by: Jampat to include SQL Developer version number.

  • How to invoke a popup programatically from adf region

    Hi All,
    I have included a task flow as a region in my home.jspx page .
    My taskflow contains a assets,jsff page where on save button click i want to show some popup message programatically
    i mean i want to invoke showpoup code in my save action listener .
    I got some code snippet but this is working only incase if popup is invoked from jspx .
    public static void invokePopup(String popupId, String align,
    String alignId) {
    if (popupId != null) {
    ExtendedRenderKitService service =
    Service.getRenderKitService(FacesContext.getCurrentInstance(),
    ExtendedRenderKitService.class);
    StringBuffer showPopup = new StringBuffer();
    showPopup.append("var hints = new Object();");
    //Add hints only if specified - see javadoc for AdfRichPopup js for details on valid values and behavior
    if (align != null && alignId != null) {
    showPopup.append("hints[AdfRichPopup.HINT_ALIGN] = " + align +
    showPopup.append("hints[AdfRichPopup.HINT_ALIGN_ID] ='" +
    alignId + "';");
    showPopup.append("var popupObj=AdfPage.PAGE.findComponent('" +
    popupId +
    "'); if (popupObj) popupObj.show(hints);");
    service.addScript(FacesContext.getCurrentInstance(),
    showPopup.toString());
    *************************************************8
    Please let me know what changes i need to do inorder to call thid popup invoke method from jsff.
    Thanks with regards ,
    Arun.

    Hello lucbors, This problem sounds like one I am trying to solve as well.
    I have a popup on my jspx page that I want to call from the bean for my jsff.
    My problem is in the step "get a hold on to a rich popup instance, which you can do by referencing a JSF component binding"
    I cannot seem to find the instance of that popup.
    The popup is a property in a managed bean that is registered in the adfc-config as session scope. I found another thread that said to
        //EmployerBean is the name of the managed bean for my jspx
        //  this code is in an event handler in GipsBean, the backing bean for my jsff
        HttpSession session = (HttpSession)context.getExternalContext().getSession(true);
        EmployerBean employerBeanInstance = (EmployerBean) session.getAttribute("EmployerBean");
        if(employerBeanInstance == null)
          employerBeanInstance = new EmployerBean();
          session.setAttribute("EmployerBean", employerBeanInstance);
        }Can you offer some insight? I am new to ADF, so my approach may be very wrong.
    Thanks

  • Unable to unzip Designer 6i Rel 4.1.1

    Downloading this zip is repeatedly unsuccessful, after 'reported' successful download, the actual size of the file is alot smaller.
    I'm sure the zip on your server is fine, Is it possible to create a load of smaller sized zips for this product, please.
    It seems smaller files, say around 50M download fine.
    or
    May I request it on CD........
    Cheers,
    Nick.

    Obviously, that should have been http://localhost:80/weblogic/index.html
    Robert Patrick wrote:
    So, what happens when you enter http://localhost:80/weblogic.index.html in the browser?
    Eddie wrote:
    Dear Sir/Madam,I am using WL6.0 (NT) and using iPlanet Web Server 4.1 (NT) also. I have followed the guide line and the web server seems never connect to the WL port number. The web server is working fine except the port number, so that it always connect to localhost (base on the following config) but without the port number. Any hint ?<Object name="weblogic" ppath="*/weblogic/*">Service fn=wl-proxy WebLogicHost=127.0.0.1 WebLogicPort="7001" PathTrim="/weblogic"</Object>thanks

  • Programmatically navigate to page

    Hello,
    I am trying to navigate to a page whenever any exception occurred. I have the following managed bean:
    public class EstimationController extends BaseWebController {
        private EstimateService estimateService;
        private EstimateHomeDataBean estimateHome;
        public EstimationController() {
            super();       
            init();
        private void init() {       
            try {
                estimateService = getEstimateService();
                estimateHome = getEstimateHome();    
            } catch(Throwable thrown){
                Log.error(this, thrown.getMessage(), thrown);
                manageError();
    }For this I have defined the control-flow-rule in adfc-config.xml as:
    <control-flow-rule id="__10">
        <from-activity-id id="__9">*</from-activity-id>
        <control-flow-case id="__12">
          <from-outcome id="__13">gotoPartError</from-outcome>
          <to-activity-id id="__11">partError</to-activity-id>
        </control-flow-case>
    </control-flow-rule>the manageError() method has been defined in BaseWebController withing which I have tried many of the following codes, nothing is working:
    getFacesContext().responseComplete();
    getFacesContext().getApplication().getNavigationHandler().handleNavigation(getFacesContext(), null, "gotoPartError");
    getFacesContext().renderResponse();
    getServletResponse().sendRedirect("/partError.jspx"); 
    getFacesContext().getExternalContext().redirect(getServletRequest().getContextPath() + "/pages/partError.jspx");
    RequestDispatcher dispatcher = getServletRequest().getRequestDispatcher("partError.jspx");           
    dispatcher.forward(getServletRequest(), getServletResponse());
    FacesContext context = FacesContext.getCurrentInstance();           
    UIViewRoot newPage = context.getApplication().getViewHandler().createView(context, "/partError.jspx");
    context.setViewRoot(newPage);
    context.renderResponse();
    ControllerContext.getInstance().getCurrentViewPort().setViewId("partError");My requirement is to navigate programmatically to the error page whenever any exception is occurred in the managed bean, and so I cannot define error pages in web.xml. My application can generate two types of exception and so depending on the exception type I need to navigate any of the two error pages I have.
    Any suggestion would be very helpful.
    Thanks in advance.

    try java script...
    public void navigateToErrorPage(){
    ExtendedRenderKitService service =
    Service.getRenderKitService(FacesContext.getCurrentInstance(),
    ExtendedRenderKitService.class);
    String page = "window.open('/partEerror.jspx','_self')";
    StringBuffer navigatePage = new StringBuffer();
    navigatePage.append("var hints = new Object();");
    service.addScript(FacesContext.getCurrentInstance(),
    page);
    call this in your manageError() method...

  • How can i open the popup from java class

    Hi,
    Please tell me how can i open the popup from java class.
    I am using jdev 11.1.1.7.0
    I have used the below code which works fine in jdev 2.1 but it will have some errors in 11.1.1.7.0.
    Please tell me some way to do this in all jdev versions.
    Bean obj = (Bean)RequestContext.getCurrentInstance.getExternalContext.getPageFlowScope(“obj”);
    Code for hide pop-up
    FacesContext context = FacesContext.getCurrentInstance();
    String popupId = obj.getPopUpBind().getClientId()
    ExtendedRenderKitService service = Service.getRenderKitService(FacesContext.getCurrentInstance(),
    ExtendedRenderKitService.class);
    String hidePopup = "var popupObj=AdfPage.PAGE.findComponent('" + popupId +
    "'); popupObj.hide();";
    service.addScript(FacesContext.getCurrentInstance(), hidePopup);
    Code to Show pop-up
    StringBuffer showPopup = new StringBuffer();
    showPopup.append("var hints = new Object();");
    showPopup.append("var popupObj=AdfPage.PAGE.findComponent('" +
    obj.getPopUpBind().getClientId() + "');popupObj.show(hints);");
    service.addScript(FacesContext.getCurrentInstance(), showPopup.toString());
    Code need to be added in jsff pop tag
    binding="#{pageFlowScope.bean.popUpBind}
    Variable need to be added in Bean.java
    private RichPopup popUpBind;

    Hari,
    Since you're using a non-public build of JDeveloper, you should be using a non-public forum.
    John

  • Building a clock

    I am having trouble building a clock that goes from military time to regular time. It starts at 0930 and goes to 1730. It then performs a subtraction of the times.

    This is what I have to do.
    Write a program that reads two times in military format (0940, 1705) and prints the number of hours and minutes between the two times. Here is a sample run.
    Please enter the first time: 0940
    Please enter the second time: 1705
    7 hours 25 minutes
    Use a Time class with a constructor that takes a military time as a parameter and a method difference that takes a Time object as a parameter and returns a Time object.
    Note: The times should be input in the order in which they occur. For example, for 0940 on Monday and 1705 on Monday, the first time is 0940, and the second time is 1705. For 1705 on Monday and 0940 on Tuesday, the first number is 1705, and the second number is 0940.
    Hint: To account for negative time differences, as in the second instance described above, add one day (24 * 60 minutes) to the difference and then find the remainder that results from dividing the result by the number of minutes in a day. That is, timeDifference = (timeDifference + MINUTES_PER_DAY) % MINUTES_PER_DAY. Note that this calculation will not make a difference in a case of a positive time difference, but it will make the proper adjustment in a case of a negative time difference.
    PSEUDO-CODE:
    Create a class Time
    Declare instance fields hours and minutes
    Constructor:
    takes in a time parameter as an integer (military time between 000 and 2400)
    set hours instance field as time divided by 100
    set minutes instance field as time modulus 100
    Get hours method:
    Return hours instance field
    Get minutes method:
    Return minutes instance field
    Difference method (takes in a Time object which is end time and returns a Time object which contains diff hours and minutes):
    Create a time object (diff), passing in 0
    startMinutes is this object hours * 60 + minutes
    endMinutes is end object hours * 60 + minutes
    timeDiff is endMinutes - startMinutes
    convert timeDiff per timeDifference formula provided in hints
    diff object hours is timeDiff divided by 60
    diff object minutes is timeDiff modulus 60
    return the diff object
    End Time class
    Create a TimeDriver class:
    In main:
    Create a scanner object
    Prompt for and capture the first time in military format (between 000 and 2400)
    Do the same for military time2
    Create a start time object and an end time object, passing in the time1 and time2 values respectively
    Call the difference method on the start time object, passing in the end time object
    Display the time difference as a call to get hours and get minutes on the diff object that was the return variable on the call to the difference method
    End TimeDriver class
    Example program runs:
    Please enter the first time:
    800
    Please enter the second time:
    1333
    5 hours 33 minutes
    Please enter the first time:
    1333
    Please enter the second time:
    800
    18 hours 27 minutes
    Here is the code:
    * This take a Military time and returns a difference between
    * the start and end time.
    * @author (Jim Strohl
    * @version 1
    public class Time
    // Instance fields (variables)
    private int hours;
    private int minutes;
    // Constructor method
    public Time (int military)
    hours = military/100;
    minutes = military%100;
    public int getHours()
    return hours;
    public int getMinutes()
    return minutes;
    public Time difference(Time military)
    int startMinutes = hours * 60 + minutes;
    int endMinutes = military.getHours() * 60 + military.getMinutes();
    int timeDiff = endMinutes - startMinutes;
    int timeDifference = (timeDiff + 1440) % 1440;
    int diffHours = timeDiff/60;
    int diffMinutes = timeDiff%60;
    Time atime = new Time(0);
    atime.hours = diffHours;
    atime.minutes =diffMinutes;
    return atime;
    Here is the Time Driver code. This drives the program and comes up with a difference .
    import java.util.Scanner;
    * This takes the Time program and test's it.
    * @author Jim Strohl
    * @version 1
    public class TimeDriver
    public static void main(String[] args)
    Scanner in = new Scanner(System.in);
    System.out.print("Enter military start time: ");
    int t1 = in.nextInt();
    System.out.print("Enter military end time: ");
    int t2 = in.nextInt();
    Time start = new Time(t1);
    Time end = new Time(t2);
    Time diff = start.difference(end);
    System.out.println(diff.getHours());
    System.out.println(diff.getMinutes());
    The only thing that I get out when tested is : Enter military start time: 940.
    I expect to get the start time and end time and the difference. Example 800 - 1333 = 5 hours 33 minutes.
    Then when entering the a time of 1333 - 800 = 18 hours 27 minutes. The code needs to keep it from going negative.
    Message was edited by:
    Gem

  • 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.

  • 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?

  • 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

Maybe you are looking for