Set root node expanded when the page is opened

Hi,
I have a tree in a page having 2 children.
Currently when I come to the page, the parent node appears, when click on that, it will show the 2 children.
My requirement is, when come to the page, the parent node should be expanded and show its children.
Please suggest how can i do this....!
Thanks,
ViN

Hi Arun,
When initiallyExpanded property of the tree is set to true, all the child nodes also expanded.
My requirement is to expand only parent node.
Thanks,
ViN

Similar Messages

  • ADF how can i execute a query with parameters when the page renders

    hi
    i am using ADF web 11g
    i need to execute a query with parameters when the page renders
    thanks

    hello,
    I'm a fan of Java code, I really am.
    But when you use ADF, you decided to move to a more declarative environment.
    So why not do it declarative, the adf way?
    In your pagedef insert a action binding.
    This can be anything, a call to the application module, a call on the iterator(Like executeWithparams, etc.)
    Create an invokeAction in your pagedef and set the condition.
    This example refreshes(Action 2 is execute query) the data.
    First the method binding:
        <action IterBinding="PersoonIterator" id="Execute" InstanceName="LSAppModuleDataControl.Persoon"
                DataControl="LSAppModuleDataControl" RequiresUpdateModel="true" Action="2"/>And the invoke action
        <invokeAction Binds="Execute" id="refreshData"/>This always refreshes the data on page entry, but anything is possible, you can set condictions for the invokeAction.
    -Anton
    PS Yes I know that pagedefs become backing beans in the end and yes that is Java code, but if you wanna play the ADF way, the goal is the reduction of Java code and the increased performance of declarative programming.

  • Dynamically setting where clause parameter before the page load

    Hi Experts,
    I do have the following requirement.
    I am working on jsf page in ADF10.1.3.3. I have a View Object which displays the results on the screen. Can someone provide me some example where I can dynamically set the where clause parameter to my Query in VO before the Page Load happens(By Overriding the Prepare Model) and display results on screen.
    Thanks

    Hi,
    Thanks for yor advice.
    I need to write the method in Prepare Model method when the page loads and not in AM.
    Here in the page there is no action as such.
    On the Page load we need to directly set the Where Clause on the VO.
    Provide me some examples if any.
    Thanks

  • When the page onload  the query must run.

    I put bind variables in a view objects. When the page onload the query must run. i added ExecuteWithParams , invokeaction in page definition. And i added in java bean follow codes. And then i added this code in Page definition like this
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="10.1.3.40.66" id="evrakPageDef"
    Package="view.pageDefs" ControllerClass="#{evrak}">
    evrak java code :
    String evr= "20070002362";
    String krm= "02030000";
    String prt= "B";
    String prs= "60711630";
    AdfFacesContext faces= AdfFacesContext.getCurrentInstance();
    faces.getProcessScope().put("evrak",evr);
    faces.getProcessScope().put("kurumcode",krm);
    faces.getProcessScope().put("pertur",prt);
    faces.getProcessScope().put("sicil",prs);
    When the *.jspx page onload , the query is not running. the items are empty.
    What can i do anymore?
    Thanks

    Hi,
    - create the binding fro the ExecuteWithParams
    - go to the binding and expand it
    - select the argument items and use EL to provide the values (if not they are static)
    - create a invokeAction in the executable section of the binding
    - point the invoke action to the execute with params method
    - run the page
    Frank

  • How do I stop a query from running when the page is loaded

    Hi All,
    I'm using JDeveloper 10.1.3.4. I have a JSPX page that is used to collect search parameters and then when a button is clicked uses those values to run a query and then populate a table on the same page. The problem is that when the page is loaded the system attempts to run the query. The query is a method in a session bean. I can keep the method from running the query code by wrapping it in an 'if' statement and checking the parameters for null (or other value). Once the parameters are collected the query is invoked but it looks like the method is running twice, once with the parameters (here I've checked that the result actually has rows in the list) and then again where the parameters are null and the method returns null.
    What is the best way to do what I want here? From the buttons action method I am called the session beam method and returning null to stay on the same page. I think that is why the method is running the second time and returning null.
    TIA,
    Dave

    Have a look at these screen casts from Steve Muench and see if one of these techniques works for you, or gives you the clue you need.
    Creating Three Simple Search Pages with ADF Business Components and ADF Faces (JSF)
    Part 1: Web-Style Search Form
    Part 2: Oracle Forms-Style EnterQuery/ExecuteQuery Mode Page
    Part 3: Search Form Using View Object with Named Bind Parameters
    I had trouble viewing these with Firefox, but they worked in Internet Explorer.

  • How do I invoke an ActionListener on a page when the page initially loads?

    How do I invoke an ActionListener on a page when the page initially loads?
    Page 1: A user clicks on a h:commandButton and is navigated to Page 2.
    Page 2: When the page loads and goes through RESTORE_VIEW, APPLY_REQUESTS and RENDER_RESPONSE, I need to call an ActionListener in the managed bean for Page 2.
    However, if the user comes in from any other page than Page 1, the ActionListener cannot be invoked intially when the page loads. The user has a choice to click on the h:commandButton on Page2 to invoke the ActionListener.
    What is an example of invoking a method with the ActionListener signature in Java code?
    Where would I put the code to invoke the ActionListener, in a beforePhase or afterPhase, constructor?
    Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Interesting. You're right. It doesn't happen when I click away from this site and then return. Maybe I'm barking up the wrong tree. Maybe it's the specific website I was thinking of and not Firefox. Unfortunately, I have to use that site all the time for work. I'll try contacting their webmaster. Thanks for your help.

  • Why the menu to move from one page to another is not seen when the page is online?

    On my web, I have different pages like 'Homepage' or 'Contact' but when I publish my web I can not see the menu.
    why the menu to move from one page to another is not seen when the page is online?
    Thank you,
    Roger.

    Where are you publishing and how are you uploading the files?

  • Cascading LOV not working when the page is public

    Hi ,
    I have a cascading LOV in a tabular form which I have built using Denes Kubicek example from
    http://apex.oracle.com/pls/otn/f?p=31517:176:2702932664861989:::::
    Thanks to this wonderful examle I was able to make my cascading lov work.
    However when I make the page public , the second lov(which is based on the first one) does not work.
    Inorder to debug i changed get.get('XML') to get.get() and put an alert on it; to check if the select list string is being returned correctly by the application process - it returns null. The same alert returns the select list string when I put the authentication back on the page.
    Also I noticed when the page is public the application item (TAB_CASCADING_ITEM) is not getting populated with the value of the first select list.
    has anybody encountered the same issue ?
    Appreciate any suggestions?
    Thanks,
    Dippy

    One of the parameters in the htmldb_get is the page the process runs on. You should change that to the current page or make page 0 public as well.

  • Fireforx cannot find web page when the page address is correct

    How do I solve the message that Firefox cannot find the page when the page address is correct?

    Do you want to do a Google search instead?
    You can check the <b>keyword.enabled</b> on the <b>about:config</b> page and if necessary then you can toggle this pref to true via a double-click.
    *https://support.mozilla.org/kb/Location+bar+search
    See also:
    *http://kb.mozillazine.org/Error_loading_websites

  • View any report by presing button not when the page rendered by default

    hi all,
    i am new in apex and i need in help to solve the below issue:
    the reports in apex are shown when the page called by default,
    i want that the report will show only when i press any button to show it not when the page requested.
    hope i can get some solutions here.
    regards
    adnan

    Position the button ("Go", for example) in a region that always appear by default.
    Your report should be in a different region, but conditionally renders only when button Go is pressed (aka, request triggered by the button is activated)... or only when some parameter is not blank, whatever the condition you want to create.
    Edited by: Kleber M on Oct 7, 2011 7:33 AM

  • A checked checkbox is rendered as unchecked in default pdf viewer of firefox. It is checked when the pdf is opened with adobe.

    I am using DynamicPDF to render a PDF. There are multiple check boxes which are checked. When the PDF is opened in Firefox, none of the check boxes are checked. However, when I save the PDF and open with Adobe, check boxes are checked. There might be a problem with the Firefox built in PDF viewer as the built in PDF viewer for other browsers work fine.

    Current Firefox versions have enabled a built-in PDF Viewer that doesn't have all features that other PDF readers like the Adobe Reader have or may not function properly otherwise.
    You can change the action for Portable Document Format (PDF) from Preview in Firefox to use another application like the Adobe Reader or set to Always Ask in "Firefox > Options/Preferences > Applications".
    You can set the pdfjs.disabled pref to true on the <b>about:config</b> page to disable the build-in PDF viewer.
    You can check the value of the plugin.disable_full_page_plugin_for_types pref on the about:config page and remove the application/pdf part if present or reset the pref to the default via the right-click context menu if you want to display PDF documents in Firefox with another application (i.e. not the built-in PDF Viewer).
    See also:
    *https://support.mozilla.org/kb/view-pdf-files-firefox-without-downloading-them

  • I'm running Pages version 5.2 on a Desktop Mac version 10.9.2. with the Pages app open how do I use the Time Machine to go back five hours to see the work?

    I'm running Pages version 5.2 on a Desktop Mac version 10.9.2. With the Pages app open how do I use the Time Machine to go back five hours to see my page? Can I access Time Machine within an app like Pages? How do I enter Time Machine within the application? It always takes me to the Finder. I apolgise for the mumbo jumbo. I simply do not know how to use Time Machine. It makes sense when I follow the Tutorial but then I lose it.

    OK. You've kind of skipped over the reason why you want to go back five hours, but my assumption would be that you've made changes to a Pages file that you want to revert.
    There are two ways to tackle this. From Pages itself, open the current version of your document, and from the File menu, click Revert To, and Browse All Versions. You'll then be in the Time Machine interface for that file, and can browse back to the version you want.
    Or, outside of Pages, you can select the file (or the folder it was originally in, if you've since deleted it) and enter Time Machine from the TM menu (it sounds like you've already tried this?)
    best
    Matt

  • I have a fillable form that we send to contractors - when the form is opened on a computer the contractor can view the fields we have completed, however when viewing from a mobile device or cell phone those fields appear blank. Any suggestions? I am at a

    when the form is opened on a computer the contractor can view the fields we have completed, however when viewing from a mobile device or cell phone those fields appear blank. Any suggestions? I am at a total loss as it works when viewing from the computer. I am assuming it is a setting or maybe we need to save it a special way?

    What version of Reader are they using, exactly? And are you sure they're
    using Reader itself and not opening the file inside a browser window, for
    example?
    On Fri, Feb 6, 2015 at 5:24 PM, jessicao96457206 <[email protected]>

  • Creating a pop-up in Acrobat X that is triggered when the PDF is opened.

    Hello all,
    I am wanting to create  a pop-up that is triggered when the PDF is opened.
    The problem I am facing is that our customers are filling out the packet , but are not using the purple "Submit" button located at the top of the page to submit the form to us. They are instead printing out the form and faxing it to us, or scanning and emailing the packet, which defeats the whole purpose of it being a fillable, distributed pdf.
    The email invitation that they receive is a bit wordy so I have have pared that down as well. To be honest with the amount of "Read this first" pop ups that we are exposed to daily I think that our customers are simply not reading the instructions properly.
    There was a post here in the forums but the expanation was for Acrobat 7 or 8.
    Any help is appreciated.

    Thank you for the quick response George. I guess a better way communicate what I need to accomplish is "how"
    I went to the toolbar on the right, then "javascript", then "Document Java Scripts". That opened a window that had me name the script, then add it, then put in the scripting (see below). I do not know how to "place it in a document-level JavaScript (outside of a function definition) or in the initial page's Page Open event."
    This is the script I am attempting to use.
    var message = "When you have completed filling out the Tax Organizer, click on the purple "SUBMIT" button at the top of the page. This will automaticall submit your Tax Organizer for you. Be sure to print a copy for your files"
    app.alert(msg,3);
    If you could provide some step by steps that would be super.
    I am wanting this pop-up box to open and the client will have to then click on the "ok" button to make it dissapear so that they can then fill out the PDF.
    The "Submit" button is auto created for me when I choose to distribute the form, I am unaware of any way to move it.
    I feel that my issue is a elementary one, I am currently working through the Adobe Classroom in a Book lessons as all my acrobat skills have been self taught.

  • Is it possible to insert a video and have it automatically play when the topic is opened?

    I am using Robohelp 10. Is it possible to insert a video and have it automatically play when the topic is opened?

    Hi Alchemex,
    What tool are you using to create the video.
    You can set preferences using the tool that you created the video with/
    For example, if you are using Adobe Captivate you can set videos to start automatically?
    Let me know if you need more detail.
    Kind Regards
    Craig

Maybe you are looking for

  • Better video quality on my old G3 than my new iMac?!?!

    How is this possible??? The visual quality of my new 17 inch 2 duo iMac 1.83 is horrendous. The screen detail and colors look like they're stuck in thousands instead of millions. Even though the resolution says otherwise (1440x900 millions). As a tes

  • Create a Hierarchy

    I am having a sql which has invoice date and has a index on it. I need to put parameter on this column but the user wants to enter only period name. So if you create a hierarchy on this date column I know that performance will be really bad. I read t

  • Tree component puzzle -

    Hello The example i am going to give is one of the issue that make me always wonder if ADF is the right framework for development. I might be of course wrong, it can only prove that we are not on the right track or there a lack of information either

  • Just installed J2SE 1.3.1_02, want Java Swing

    I installed version 1.3.1_02 SE and tried a simple application using Swing extentions. Received compiler errors for Swing classes. Something like can't resolve JLabel, JFrame, etc. Also, I can't find swing.jar on my system. Can someone help me resolv

  • In Software Update... "10.6.2 update combined"... the combo update?

    I had to reinstall Snow Leopard and lost my updates (I still have documents etc. thanks to TM) including printer drivers. I went to software update and there was: Epson Printer Drivers Update Mac OS X 10.6.2 Combined iLife Support Total of 603.9 MB I