Tree showRoot = 'false' not working

Im having trouble getting the root not to show with my tree
that has an XMLList dataprovider. I ended up opening the component
explorer and copying the example code (which works in the example)
and pasting it into a new app. When I run it, it doesnt work. Has
anyone came across this problem?

I have come across the same problem. My only solution was to
remove the root level! not much of a solution though :-(
As another test, after I removed the root node (and compiled)
I added the node again and it was not displayed if the switch was
showRoot="false". Can't explain it.

Similar Messages

  • Tree Binding sample not works on iAS 10.1.2

    I have downloaded sample Tree Binding - Tree View Control (http://www.oracle.com/technology/sample_code/products/jdev/index.html)
    and opened with jDeveloper 10.1.2.
    On Embedded OC4J it works fine but after deploy to iAS 10.1.2, the tree control on departmentTree.jsp is void.
    Is there any problem with tree on iAS 10.1.2 ?
    Regards,
    Lumir Vanek

    Hi dvohra,
    Thanks for your reply. I'm afraid I overlooked something, which is the reason of the ajax functionality not working. The Servlet that made the Ajax functionality used a datasource, and the same was in the Embedded OC4J Preferences. The ADF Business Components part was changed to use the datasource declared on the iAS. The Servlet however was not...
    So, all works now.

  • SetRendered(false) not working in ProcessRequest

    hello,
    in the (R12) Update Bank Details page of MY HR i am trying to render the AddDeposit (OAF ID) button to false, programmatically. Initially i want to do this 'as a test', but later want to put some conditions around it (if it works)
    I have extended the SummaryCO.class to create xxSummaryCO.class and in that class i am writing the following code....(see below)
    the code compiles and i can call the page (running from jdeveloper and the server) and i can see in jdeveloper that the System.out messages are being printed, meaning that the logic is going inside the area where it says to setRendered = false
    But nothing is happening...i.e. the button is still visible
    Does anyone have any ideas/clues as to why this is not working...i am guessing that may be i am using the wrong controller, i dont know?? Would appreciate any help please?
    Thnaks,
    Tariq
    package tariq3.oracle.apps.pay.selfservice.payments.webui;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAStaticStyledTextBean;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.beans.nav.OAButtonBean;
    import oracle.apps.pay.selfservice.payments.webui.SummaryCO;
    public class xxSummaryCO extends SummaryCO
      public void processRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
        System.out.println("We are inside the extended controler -1");
        super.processRequest(paramOAPageContext, paramOAWebBean);
          System.out.println("We are inside the extended controler -2");
        OAStaticStyledTextBean dbuttonName = (OAStaticStyledTextBean)paramOAWebBean.findIndexedChildRecursive("AddDeposit");
          if (dbuttonName!= null)
              System.out.println("We are inside the extended controler -3");
              dbuttonName.setRendered(false);
          System.out.println("We are inside the extended controler -4");
      public void processFormRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
        super.processFormRequest(paramOAPageContext, paramOAWebBean);

    Peddi, you are a genius!
    i have somehow written the following code...and it works! haha:-)
    thank you very much!
    many thanks
    tariq:-)
    package tariq3.oracle.apps.pay.selfservice.payments.webui;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAStaticStyledTextBean;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.beans.form.OASubmitButtonBean;
    import oracle.apps.fnd.framework.webui.beans.nav.OAButtonBean;
    import oracle.apps.fnd.framework.webui.beans.table.OATableBean;
    import oracle.apps.pay.selfservice.payments.webui.SummaryCO;
    public class xxSummaryCO extends SummaryCO
      public void processRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
        System.out.println("We are inside the extended controler -1");
        super.processRequest(paramOAPageContext, paramOAWebBean);
          System.out.println("We are inside the extended controler -2");
          //OAStaticStyledTextBean dbuttonName = (OAStaticStyledTextBean)paramOAWebBean.findIndexedChildRecursive("AddDeposit");
          OATableBean table1 = (OATableBean)paramOAWebBean.findChildRecursive("EmployeeTable");
          System.out.println("We are inside the extended controler -2a");
          if (table1!= null)
              System.out.println("We are inside the extended controler -3");
              OAButtonBean dbutton = (OAButtonBean)table1.findChildRecursive("AddDeposit");
              if (dbutton!= null)
                  System.out.println("We are inside the extended controler -3a");
                dbutton.setRendered(false);
          System.out.println("We are inside the extended controler -4");
      public void processFormRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
        super.processFormRequest(paramOAPageContext, paramOAWebBean);

  • Perf Mon: Open PMUs & Open PMU Trees options are not working...

    Monitoring System: Windows, PeopleTools 8.49 Patch 13. Database, web, app, process scheduler all in one system and OS is windows.
    Monitored Systems:
    1) Self monitoring system: OS- Windows, PeopleTools 8.49 Patch 13.
    2) Fin Demo - People Tools: 8.46.14 - HP Unix 11i,all web, app, process scheduler on HP Unix, 11i.
    Both the Open PMUs & Open PMU Trees option in performance monitor supposes to display current open PMUs data, ran long running queries
    on Monitored systems we are not seeing any data for open PMUS with either Open PMUs or PMU Tress options in Monitoring system.
    Do have the same issue on a diff setting(follows):
    Monitoring System:
    People Tools Version: 8.46.14
    Monitored Systems:
    Fin Demo - People Tools: 8.46.14
    Inv Dev - People Tools: 8.45.13
    Any thoughts why its not working?
    Thx/T

    I am not sure if I can help you but you must first try to identify your problem more specifically. From the man page of evdev, I see:
    Option "EmulateThirdButton" "boolean"
    Enable third button emulation. Third button emulation emits a right button event (by default) by pressing
    and holding the first button. The first button must be held down for the configured timeout and must not
    move more than the configured threshold for the emulation to activate. Otherwise, the first button event
    is posted as normal. Default: off. Property: "Evdev Third Button Emulation".
    The first thing I would check, is how to "press and hold the first button" (from a system point of view). When you click down  the first button, the system should see a NotifyGrab event, when you release the button a NotifyUngrab event. Is this actually what the system see? Try to disable any configuration files and see the output of evdev. Are you able to generate a NotifyGrab event with no NotifyUngrab?

  • Immediate = 'false' not working for pop up

    Hi,
    I am new to this technology.
    I have a link on screen . upon clicking the link my pop up gets opened . Which has certain text fields and drop down. If i enter some wrong data in the fields and click on cancel, the pop up gets closed. And EM doesnt come at that time . But as soon as the pop up window closes, I can see the EMs on the parent screen. Ideally if I click on cancel i should no where get EM . Please help me out why is it not working.
    I have set immediate='true' on the cancel button .
    ADF 11g & JSF 2.0

    hi,
    Thanks for the response. I have called the resetActionListener but not working.
    Also i dont want those values to get saved when cancel is clicked. Still they are coming as pre populated when i again click on the hyperlink to open the pop up.
    <af:commandImageLink icon="/theme/img/cancel.png"
    immediate="true">
    <af:showPopupBehavior triggerType="action"
    popupId="confirmationPopUp"/>
    <af:resetActionListener/>
    </af:commandImageLink>
    Scope is view scope for both the beans . Parent screen bean and pop up bean.
    Edited by: 924834 on Jun 11, 2012 1:25 AM

  • Javascript block through javascript.enabled false not working as expected in newer versions, any actual way?

    Since a few versions, around 24.0 or earlier, when you toggle javascript.enabled from true to false to block javascript, doesn't work after load a page.
    Further details:
    1.- load a page with javascript enabled
    2.- toggle javascript preference to block javascript (javascript.enabled from true to false)
    3.- if you interact with javascript elements = they still work
    This wasn't this way in earlier versions.
    You can check in the following page. You'll see that the only way to actually block javascript execution is to load the page with the preference javascript.enabled set to false (A.K.A. javascript blocked):
    http://www.geocities.ws/jothache/event_listener.html
    Note: to easy change javascript preferences, for those don't want to play with about:config you can use addons like QuickJava:
    https://addons.mozilla.org/en-US/firefox/addon/quickjava/
    I find that how it works now, in the latest versions, it is a VERY HUGE SECURITY ISSUE as javascript is never actually blocked when the preference is toggled and AJAX (httpXMLrequest through javascript) still works so the possibilities of lost of privacy inreases, as for example, mouse tracking and send it to the server, not only as the example scripts I posted above.
    The question is, is there anyway to really block javascript in the latests versions or should I report this as a bug?
    Regards.

    Hi guigs2,
    if there is no problem in open the bug ticket being a simple user I'll report by myself (if I haven't misunderstood you). (Confirm this and I'll do myself).
    About the AJAX problem, here we have a sample test that works after toggle the preference:
    http://www.w3schools.com/xml/xml_http.asp
    I know about noscript and I don't like it. I prefer to do manually (those measures and more). What bothered me is that even toggle the preference, what in the past did the job of stopping the execution of scripts, now doesn't. In about version 24 it was only happening to event listeners not being blocked (used nowadays for dynamic events assignments). Now is with every javascript code.
    About the tracking methods, I'm aware of HTTP tracking without any need of javascript. Even a simple "knock knock" on any kind of server leaves a trace.
    I was just pointing that this preference stopping doing its job (stopping scripts executions) has the worst sceneario in a security way with XMLHttpRequest calls.
    But one of the things that bothers me too, and it is not related to tracking, is that, in humble machines as mine, some javascript codes make drop whole performance and the preference toggle now does nothing, so the script keeps running without being able of doing anything and sometimes you don't have the option to load a page without javascript because you need some feature of that page that requires javascript what becomes "all or nothing".
    Regards.

  • Controller="false" not working in ie8

    I'm putting some quicktime movies on my website and I don't really want the player bar at the bottom showing. Using the code that is generated with the xport for web, 3 entries such as: controller="false"
    works in Safari, but not in ie8. Haven't tried FF yet. Is there any other way to hide this thing? Here is the entire code:
    <script type="text/javascript"><!--
    QTWritePosterXHTML('Click to Play', 'videos-poster.jpg',
    'videos.mov',
    '640', '360', '',
    'controller', 'false',
    'autoplay', 'true',
    'bgcolor', 'black',
    'scale', 'aspect');
    //-->
    </script>
    <noscript>
    <object width="640" height="360" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
    <param name="src" value="videos-poster.jpg" />
    <param name="href" value="videos.mov" />
    <param name="target" value="myself" />
    <param name="controller" value="false" />
    <param name="autoplay" value="false" />
    <param name="scale" value="aspect" />
    <embed width="640" height="360" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"
    src="videos-poster.jpg"
    href="videos.mov"
    target="myself"
    controller="false"
    autoplay="false"
    scale="aspect">
    </embed>
    </object>
    </noscript>

    Open the html file created by the export using any Web browser.
    Make sure you're using both of the text boxes. Your code above only shows the lower part of the code.
    In the "head" tag you must add the links to the external javascript files:
    Use this code in the <head> of your web page:
    <script src="http://www.apple.com/library/quicktime/scripts/ac_quicktime.js" language="JavaScript" type="text/javascript"></script>
    <script src="http://www.apple.com/library/quicktime/scripts/qtp_library.js" language="JavaScript" type="text/javascript"></script>
    <link href="http://www.apple.com/library/quicktime/stylesheets/qtp_library.css" rel="StyleSheet" type="text/css" />
    In a browser that uses javascript (most modern browsers) the lower portion of the page code isn't used (object and embed tag code and the noscript) and the upper portion must be included in the head tag of your html file.

  • Tree expand / contract not working when region copied...

    Hi
    I have a tree view region which I want to appear on each relevant page. Simple, thinks I, I'll copy the region from page to page... but when I do this then the expand / contract buttons don't work. If I create a new tree region then paste in the code from the tree region I want to copy all works well...
    Using Apex version 4.0.0.00.46.
    Anybody else seen this?
    Steve

    >
    The existing page zero appears at the top of other pages, containing specific data. This Tree element only appears on the config pages and is on the left hand side of the page.
    >
    You've just caused me to make a discovery that I hadn't noticed in nearly 6 years of APEX use: Page Zero is assigned a page template! I've no idea why this is: I don't think it should; this template will have absolutely no effect on how the application is actually rendered so I therefore think we should ignore it and maybe it will go away...
    Has the presence of a page template on Page Zero influenced your thinking on its use?
    Understand that regions on Page Zero will not be rendered according to the Page Zero template, but according to the page template for the page they are included on. The region Display Points remain constant: if you assign the Tree element to region position 2 on Page Zero, and it's included on pages 6, 7 and 8, then it will appear in region position 2 on pages 6, 7 and 8. However, using page templates and CSS, region position 2 can be in completely different places on the screen on pages 6, 7 and 8 (and even be in different positions on the screen and on a printout from the same page...).
    The other main thing about Page Zero is that the rendering of regions can be controlled conditionally, often using the Current page in Expression 1 condition, where a list of page numbers specifies which pages a region should be included on. So to make your Tree region only appear on Config pages 6, 7 and 8, set its Display Position to Region Position 2, and give it a Current page in Expression 1 condition with Expression 1 set to <tt>6,7,8</tt>. If the "existing page zero" elements appear on every page except 6, 7 and 8 then use the opposite Current Page not in Expression 1 condition...
    Only very simple apps would tend to include all Page Zero regions on other pages in their entirety: most of the time there will be mix'n'match using conditional rendering.
    >
    Which raises yet another question (getting my 2 cents worth here!) - can we conditionally change the position of a region? eg if on app pages 1 thru 5 then page zero is at top. if on pages 6 thru 8 then appears on left side?
    >
    Hope I've managed to explain why that's not how it works?
    (And reflecting on the mysterious presence of a template on Page Zero, I can only think that it has something to do with the Display Point preview pop-up, even though it's entirely useless as a safe guide to where the region will ultimately appear...)

  • ShowFieldCodes = false not working as expected in MS Word 2013.

    Hi,
    I am facing an issue with hiding the field codes in Word 2013, the same code works fine in Word 2010.
    I have the below code to insert the field codes,
     Word.Range fldRng = foundRng.Duplicate;
                    object dir = Word.WdCollapseDirection.wdCollapseStart;
                    fldRng.Collapse(ref dir);
                    object type = Word.WdFieldType.wdFieldAddin;
                    object text = "MyMarker";
                    object p = false;
                    Word.Field f = sourceRng.Fields.Add(fldRng, ref type, ref text, ref p);
    At certain point of time in my code i show the field codes and hide the field codes as shown in below code snippet, this works absolutely fine in Word 2010 but in Word 2013 sometimes it works as expected and some times field codes are not hidden,
    _docWindow.View.ShowFieldCodes = true;
    _docWindow.View.ShowFieldCodes = false;
    Please help me out to solve this issue. Thanks in advance .
    Regards,
    Chetan Rajakumar

    Hi Cindy,
    I checked and confirmed that 'Alt+F9' toggles the field codes correctly.
    Yes, whatever the field codes i added from the code all of them are not hidden. when i have below code:
    _docWindow.View.ShowFieldCodes = true;
    _docWindow.View.ShowFieldCodes = false;
    because of project reqquirement we had the above code.
    But if i comment the above bolded line and i dont show the field codes, After executing i found out that still the field codes are visible at some lines(not in all the lines) in the  document. I am not making any changes in the settings/options/etc
    after i execute the code. I am confused whether any other code is making the fieldcodes visible. Do we have any other syntax/codes that can make the fieldcodes visible ? Thanks in advance.
    Regards,
    Chetan Rajakumar

  • Stage.showDefaultContextMenu = false; not working in CS5.5?

    When publishing a SWF, why doesn't stage.showDefaultContextMenu = false; make the main menu bar disappear in flash CS5.5. It used to in flash CS3? Has anyone got an alternative piece of code? Many thanks in advance.
    E

    I just found the solution in this article:
    http://kb2.adobe.com/cps/842/cpsid_84287.html
    Just done the first solution and now premiere works very well.

  • Hierarchical Tree view Indentation not working...

    I just followed the PersistentListUI example to create a hierarchical tree view... everything seems to work except the indentation.
    I have:
    virtual PMReal GetIndentForNode(const NodeID & inNode) const {
    return PMReal(10.0);
    but AFAICT, there's no indentation on the GUI...
    any idea why?
    pete

    I add the following to the code:
    virtual PMReal GetIndent(const NodeID & inNode) const {
    PMReal parent_value = CTreeViewWidgetMgr::GetIndent(inNode);
    the parent_value is indeed 0;
    I put an printf in GetIndentForNode() and it's indeed being called...
    hmm...

  • ALV-Tree Node click not working

    Hi All,
    I am displaying the data in ALV tree. When the user click on the node i want to capture some event and method in which i have to do some coding. Can you tell me which method and  event i should use to achieve this functionality. its bit urgent.
    Immediate response will be apprecited.
    Regards,
    Ranjan

    Hi ,
    I have gone through the link. I have done the below part in my coding even though when i double click on the node, the event node_double_click is not getting triggered. Kindly suggest me what i have missed.
    1) Register event with tree instance:
    Register event for NODE_DOUBLE_CLICK
    l_event-eventid = cl_gui_column_tree=>eventid_node_double_click.
    APPEND l_event TO lt_events.
    (2) Set handler for event:
    SET HANDLER l_event_receiver->handle_node_double_click FOR tree1
    (3) Define and implement event handler method:
    METHODS handle_node_double_click
    FOR EVENT node_double_click OF cl_gui_alv_tree
    IMPORTING node_key.
    ENDCLASS. "lcl_tree_event_receiver DEFINITION
    CLASS lcl_tree_event_receiver IMPLEMENTATION
    CLASS lcl_tree_event_receiver IMPLEMENTATION.
    METHOD handle_node_double_click.
    break-point.
    ENDMETHOD. "handle_node_double_click
    Regards,
    Ranjan

  • SharePoint On WebProvision EnableVersioning=false not working

    Hi,
    I have a WebProvisioned  event receiver attached to Publishing site template.
    The notion is to disable the moderation by default when a site is created using Publishing site template.
    In my scenario there are no errors thrown but i do not see any changes in the moderation status.
    Here by follows the code snippet that disabled the moderation status.
    SPList Pages=PubWeb.GetList("Pages");
    Pages.EnableModeration=false;
    Pages.update();
    PubWeb.update();
    Ready for Action

    Does not seem to help.
    Except Enable moderation, other updates seem to take effect
    Ready for Action

  • Apex 4.0 tree does not work with more than 2 levels.

    When I have more than 2 levels in my tree, I only see the root node. The query works fine and returns 132 rows when I run it in SQL. It is just the tree that does not work.
    The same tree when built in 3.2 works fine.
    This is my tree query:
    select case when connect_by_isleaf = 1 then 0
    when level = 1 then 1
    else -1
    end as status,
    level,
    "NAME" as title,
    null as icon,
    "ID" as value,
    null as tooltip,
    null as link
    from (
    SELECT '__TOP_NODE__' id
    , NULL pid
    , 'BI Applications' name
    , '' link_id
    , null a1
         , null a2
    FROM dual
    1 b) BIA Modules
    UNION ALL
    SELECT '__MD_'||module_key id
    , '__TOP_NODE__' pid
    , module_name name
    , module_key link_id
    , '__MD__' a1
         , null a2
    FROM c_bia_module
    Level = 2
    Parent = Module
    Node = Functional Areas
    ID = '__FA_' prefixing functional area code
    UNION ALL
    SELECT '__FA_'||funcarea_key id
    , '__MD_'||module_key pid
    , funcarea_name name
    , funcarea_key link_id
    , '__FA__' a1
         , null a2
    FROM c_functional_area
    Level = 3
    Parent = Functional Area
    Node = Fact Group
    ID = '__FG_' prefixing fact group key
    UNION ALL
    SELECT '__FG_'||factgroup_key id
    , '__FA_'||funcarea_key pid
    , factgroup_name name
    , factgroup_key link_id
    , '__FG__' a1
         , null a2
    FROM c_fact_group
    start with "PID" is null
    connect by prior "ID" = "PID"
    order siblings by "NAME"
    If I reduce the query to just use two levels like:
    SELECT '__TOP_NODE__' id
    , NULL pid
    , 'BI Applications' name
    , '' link_id
    , null a1
         , null a2
    FROM dual
    1 b) BIA Modules
    UNION ALL
    SELECT '__MD_'||module_key id
    , '__TOP_NODE__' pid
    , module_name name
    , module_key link_id
    , '__MD__' a1
         , null a2
    FROM c_bia_module
    It works fine. Can somebody let me know what I am doing wrong? Is there a way to set the number of levels supported in 4.0?

    Hi Vidya,
    Thanks for posting your example. You may want to remove your workspace details from the previous posting, or at least update the password on the workspace. I've taken a look at your example and initially couldn't see anything wrong with your tree query. However, when I ran your query in SQL Workshop, it only returned one row, which would explain why you were only seeing one node in your tree! I've updated your query to use a WITH clause, and the tree is now working correctly. I believe you've hit an underlying database bug where the CONNECT BY query is only returning 1 row, when in fact it should return > 1 row. By re-writing the query to use a WITH clause, you can get around the problem.
    Regards,
    Hilary

  • Visible not working on Mac

    Dear,
    obj_mc.visible = false; not working on mac, work good on pc.
    AIR \ AS3

    package
         import flash.events.MouseEvent;
         import flash.events.InvokeEvent;
         import flash.events.Event;
         import flash.display.Loader;
         import flash.desktop.*;
         import flash.net.URLRequest;
         public class AppBehavior
              var icon:Loader = new Loader();
              var sysTrayIcon:SystemTrayIcon;
              public function AppBehavior()
                   var minBtn:AppMin = new AppMin();
                   minBtn.x = 360;
                   minBtn.y = 380;
                   addChild(minBtn);
                   // constructor code
                   minBtn.addEventListener(MouseEvent.MOUSE_DOWN,handleMinimizeBtn);
                   //////////////////Check if it Mac OS or Windows
                   if (NativeApplication.supportsDockIcon)
                        icon.contentLoaderInfo.addEventListener(Event.COMPLETE,iconLoadComplete);
                        icon.load(new URLRequest("Graphics/128.png"));
                        var dock:DockIcon = NativeApplication.nativeApplication.icon as DockIcon;
                        NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, undock);
                   else if (NativeApplication.supportsSystemTrayIcon)
                        icon.contentLoaderInfo.addEventListener(Event.COMPLETE, iconLoadComplete);
                        icon.load(new URLRequest("Graphics/16.png"));
                        sysTrayIcon = NativeApplication.nativeApplication.icon as SystemTrayIcon;
                        sysTrayIcon.tooltip = "Notification";
                        sysTrayIcon.addEventListener(MouseEvent.CLICK,undock);
              private function handleMinimizeBtn(evt:MouseEvent)
                   Main.MS.nativeWindow.visible = false;
              private function iconLoadComplete(event:Event):void
                   NativeApplication.nativeApplication.icon.bitmaps = [event.target.content.bitmapData];
              private function undock(event:Event = null):void
                   NativeApplication.nativeApplication.icon.bitmaps = [];
                   Main.MS.nativeWindow.visible = true;
    My problem is: i added the [Check if it Mac OS or Windows] part inside the handleMinimizeBtn. when i added it as above ( outside minimize function ) its works fine.
    Thanks

Maybe you are looking for