ADF Tree Traversal from one node to its leafs

Hello,
after a titanic effort I have been able to add a checkbox next to each node of an adf tree table.
This checkbox is based on an "helper" entity attribute (not mapped to a column table on the database).
My next huge problem is to perform an automatic selection of all the checkboxes next to the nodes under the currently selected one.
For example, if the user checks a checkbox in the second level, then all the checkboxes next to the nodes under that, belonging to level three and four must be checked.
If this helps, in my case there are at most four levels.
Up until now I can get all the information from the currently checked node, but I fail to navigate the hierarchy under it for the automatic checking. I think that one problem is to navigate all the rows in the (only) VO the tree is based on. For example, since the tree is not expanded at the beginning, if I iterate on the VO retrieved from the current selected node at the top level, I can't see any rows corresponding to any children. Maybe I just miss something.
I have followed this example from Frank Nimphius, which only gets the current selected nodes, as I said, but no more. Maybe this is a good starting point, but I need to advance somehow.
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/32-tree-table-from-single-vo-169174.pdf
Can anyone help?
Thanks.

Hi,
here is a sample of how to search in trees, which actually shows how to traverse trees from a specific node
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/61search-in-rendered-trees-177577.pdf
Given you have a transient attribute defined, each node (and instance of JUCtrHierNode --> getRow will give you access to the attribute for read/access). Note that because the checkbox is stamped in the context of the tree, upon selecting a parent node, you need to refresh the tree to show the selection state change
Frank

Similar Messages

  • How to find a shortest distance in a tree from one node to another node

    Hi
    my question is same as above.. there are many algorithms which i had come across but they are mainly for graphs or weighted trees. i want to traverse through a binary tree... how is it possible.. any link to the solution or source code sample will work...
    Thanks

    Rastogha wrote:
    redfalconf35 wrote:
    [http://en.wikipedia.org/wiki/Tree_traversal|http://en.wikipedia.org/wiki/Tree_traversal]
    that is good link. but . given a node is it possible for me to find all is ancestors or parents so that i can traverse up the hierarchy.....Most simple tree implementations just have references from each node to its children. You either want:
    1. the tree data structure to maintain back pointers -- from each child back to its parent, OR
    2. a bread crumb trail: as you traverse the tree or otherwise pick a node, you need to have built a list of references from the root down to the node in question.

  • How to failover SCAN VIP and SCAN Listener from one node to another?

    Environment:
    O.S :          HP-UX  B.11.31 U ia64
    RDBMS:   Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    It is a 2 Node RAC.
    Question:
    How to failover the SCAN VIP and SCAN LISTENER running on node 1 to node 2?
    What is the relation between standard LISTENER and SCAN LISTENER ?
    Why do we need LISTENER, when we have SCAN LISTENER ?
    When I tried with SRCVTL STOP LISTENER , I thought the SCAN LISTENER adn SCAN IP will failover, but it did not?
    Also please clarify if I use SRVCTL RELOCATE SCAN -i 1 -n Node1
    Actalluy I am trying that by moving the SCAN listeners so that when I do PSU 7 patching on 1 node, no incoming attempt to connect will spawn
    a process and thereby opening files in $ORACLE_HOME (which would prevent the patch from occurring)
    Please clarify my queries.
    Thanks,  Sivaprasad.S

    Hi Sivaprasad,
    1. The following link will help you for SCAN VIP and SCAN LISTENER failover from 1 node to another.
    http://heliosguneserol.wordpress.com/2012/10/19/how-to-relocate-scan_listener-from-one-node-to-another-node-on-rac-system/
    http://oracledbabay.blogspot.co.uk/2013/05/steps-to-change-scan-ip-address-in.html
    2. The Standard LISTENER is specific for particular node for which it is running. It cannot be relocated as its specific for the node its running. SCAN listeners are not replacements for the node listeners.A new set of cluster processes called scan listeners will run on three nodes in a cluster (or all nodes if there are less than 3).  If you have more than three nodes, regardless of the number of nodes you have, there will be at most three scan listeners. So no relation for standard LISTENER and SCAN LISTENER.
    3. Hmmm. let me put it in easy way for this question. All the RAC services like, asm, db , services, nodeapps registers with this SCAN_LISTENER. So if any of these services (asm, db , services, nodeapps) got down/not running, the SCAN_LISTENER will know the down status, and if any client requests to access the node/service which is down, the SCAN_LISTENER will redirect the client request to the least loaded node. So here all these process will happen without the knowledge of client. And As usual the standard LISTENER looks only for incoming request to connect with the database. So we need both LISTENER and SCAN LISTENER.
    4. If you provide SRCVTL STOP LISTENER,  it stops the default listener on the specified node_name, or the listeners represented in a given list of listener names, that are registered with Oracle Clusterware on the given node. No failover will happen under this case.
    5. Yes you can relocate if you want to relocate the scan.
    Hope this helps!!
    Regards,
    Pradeep. V

  • Datafile is not accesable from One NODE

    Hi All,
    We have two node cluster RAC we are able to access the datafile from one node from another node getting error like..
    ERROR:
    ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
    ORA-01110: data file 6: '/dev/md/racgcp/rdsk/d548'
    If we offline the TS the error is not appearing...!
    And we tried to drop but its hanging..
    Please Suggest
    Thanks.

    ERROR:
    ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
    ORA-01110: data file 6: '/dev/md/racgcp/rdsk/d548'Hi,
    is this visible in the first node ?
    What is the output of
    select name from v$datafile where name like '%dev/md/racgcp/rdsk/d548%';Might you have given wrong file name, give the file_id instead of name. Post if any errors.
    Celero,
    It is tipical when you have created a tablespace using local node storage instead of the shared storage used by the RAC. Then, it will be only visible from the node it was created.In RAC database datafiles in shared loacation, if you configure tablespace using local node how can you say it as RAC... can you please describe your views more.
    Thanks

  • Traversing from one screen to the previous one using back button

    Hi all,
            I am new to the forum and want the help of the experts over ther for this doubt i encountered. I want to know how we can traverse from one screen to the  previous one using the back button. Like if presently i am in 4th screen if i want to go back directly to the 2nd one then how to do that.
            Kindly help me by clarifying this doubt.
    Thanks

    Hi Jana,
    If u r using the screen painter then u need to create  a button and in status there.code as set pf-status.
    case sy-ucomm.
    when 'back'.
    leave to screen <screen number> here if u want to go to the other screen i.e to screen 200 ffrm 400 then u can code it as
    leave to screen 400.
    or else code it as
    if screen = '200'.
    leave to screen 400.
    try this eg it might work ..
    regards,
    sana.
    reward points for helpful answers.

  • Move OMS repository from one node to another&configure agents.OEM10.2.0.4

    Hi experts,
    I explain:
    my environment has two nodes:
    nodeA and nodeB (OSLINUX 64BITS)
    nodeA+nodeB has a database, DB1, that is a OracleRAC between these two nodes.
    OMS is installed on this database.
    I want to move repository,OMS in a third node, separately from these two, and migrate database repository to this third node.
    II have checked note. 382698.1
    How to move OMS repository from one node to another - Step-by-Step guide.
    but my version is 10.2.0.4 (not 9i) and in this note don explain how modify file AGENT_HOME>/sysman/config/emd.properties.
    Can you help me, please?
    Thank you for your time.
    JRC

    Once you move the repository, go to each agent and do this:
    1) Stop agent and cleanup the status, etc...
    cd <AGENT_HOME>
    bin/emctl stop agent
    rm -r ./sysman/emd/state/*
    rm -r ./sysman/emd/upload/*
    rm -r ./sysman/emd/collection/*
    rm ./sysman/emd/lastupld.xml
    rm ./sysman/emd/agntstmp.txt
    rm ./sysman/emd/blackouts.xml
    rm ./sysman/emd/protocol.ini2) Then edit the $AH/sysman/confiig/emd.properties with your new data (host:port):
    REPOSITORY_URL=https://newhost.domain.com:1159/em/upload
    emdWalletSrcUrl=http://newhost.domain.com:4889/em/wallets/emd3) And finally start the agent:
    $AH/bin/emctl start agent
    $AH/bin/emctl upload:p
    PS: And be patient, it may take up to 30 minutes to re-sync with the new OMS.
    +

  • EM DB console works only from one node?

    In my 2 node RAC the enterprise manager database console works only from one node i.e the url shows login page only from one node.
    http://NODE2:5500/em------>WORKS, SHOWS LOGIN PAGE AND CAN MANAGE ALL INSTANCES FROM HERE
    http://NODE1:5500/em------>DOES NOT WORK, DOES NOT SHOW THE LOGIN PAGE.
    Please clarify.
    Kadhim

    I have to guess ... (because you tell neither OS nor database version). Assuming it's 10gR2 or higher, that's expected behaviour, dbconsole runs on one node only, the so-called master node. You can change that, see the documentation or this metalink note:
    How to manage DB Control 10.2 for RAC Database with emca
    Doc ID: NOTE:395162.1
    Werner

  • How to drag and drop user from one node to other node.

    Dear All,
    How to drag and drop user from one node to other node.I tried but no success.
    What are precautions to be taken.
    Cay anybody kindly explain it.
    Thank you.

    Hello, if you had this message you had created BP....
    Now you don't have to user USERS_GEN this transaction is used only in first action, when you create the user in R/3 and then you pass this user to EBP in the organizational structure.
    Now you have to:
    1) Go to PPOMA_BBP
    2) Double click on organizational unit that you want to put this user (purchasing organization or purchasing group box for example)
    3) Select assign button in the top of the functions in the transaction
    4) Click on incorporates -- position
    5) Put userID that you want to add in this organizational unit
    6) Click Save
    Thanks
    Rosa

  • How can i add selected element from one node to other node

    Hi All
    I have below requirement.
    Say In the view leftside Available Languages ItemList Box  Rightside Available Languages ItemList Box and Add & Remove Buttons in the middle.
    User selects languages from Available Languages ItemList Box clicks on add it will adds to the Available Languages Item List box and ViceVersa with Remove Button.
    1) I have created 2 nodes 1) AvlLang 2) SelLang both contains two attributes Key and Value.
    2) For AvlLang node,  Property : Data Dictonary binded with table. Values are coming fine in Available Languages ItemList Box.
    3) How can i add selected language into the node Available Languages.
    Please provide the code snippet how to achieve this.
    BR
    X- CW

    Hi Carlin,
    Find below code to copy selected record from one node to another.
    Here I am copying it_lips node into pack_mat node.
    DATA: wa_temp TYPE REF TO if_wd_context_element,
                lt_temp TYPE wdr_context_element_set,
                count type c.
          DATA : lo_nd_it_lips TYPE REF TO if_wd_context_node,
                 lo_el_it_lips TYPE REF TO if_wd_context_element,
                 ls_it_lips TYPE wd_this->Element_it_lips,
                 lt_it_lips TYPE wd_this->Elements_it_lips,
                 ls_unpack TYPE wd_this->Element_unpack,
                 lt_unpack TYPE wd_this->Elements_unpack.
    * navigate from <CONTEXT> to <IT_LIPS> via lead selection
          lo_nd_it_lips = wd_context->path_get_node( path = `ZRETURN_DEL_CHANGE.CHANGING_3.IT_LIPS` ).
          CALL METHOD lo_nd_it_lips->get_selected_elements
            RECEIVING
              set = lt_temp.
    * navigate from <CONTEXT> to <PACK_MAT> via lead selection
          lo_nd_pack_mat = wd_context->get_child_node( name = wd_this->wdctx_pack_mat ).
          LOOP AT lt_temp INTO wa_temp.
            CALL METHOD wa_temp->get_static_attributes
              IMPORTING
                static_attributes = ls_it_lips.
                  ls_pack_mat-vgbel = ls_it_lips-vgbel.
                  ls_pack_mat-vgpos = ls_it_lips-vgpos.
                  append ls_pack_mat to lt_pack_mat.
                  CLEAR ls_pack_mat.
          endloop.
            lo_nd_pack_mat->bind_table( new_items = LT_PACK_MAT
                                        SET_INITIAL_ELEMENTS = abap_true ).
    Cheers,
    Kris.

  • Can one copy Audio from one clip minus its video...to paste to another?

    I'm working on a painting video...as an artist/teacher...and easily created a 3 minute trailer on YouTube using iMovie...
    http://www.youtube.com/watch?v=8LXWxjjGkAg
    I have Final Cut Express 3.5.1 on my intel...and thought I'd best use this higher standard software for the making of my 90 minute DVD...but dang, its coming hard for me. Trying to make sense of the help manual. With iMovie it was nothing to copy an audio track, copy and paste elsewhere...but with FCE I can't seem to separate the audio of the track from one clip to copy and paste elsewhere without that video clip wanting to come along.
    The original clip is me painting by a waterfalls..the original narrative voicing was weak, so I did a voice over with a mic and toneport tonight, now I want to paste in the sound of the falls behind copied from a clip where I did no speaking.
    I have Soundtrack as well. Am I better off just putting my video clips together in FCE...then importing the whole thing to Soundtrack to edio audio? Seems audio with FCE is tough...well, for me anyway. Thanks

    Hi -
    In FCE, select the clip on the timeline that has the audio and video stuck together. Go to the menu Edit and toggle Linked Selection (the check mark will go away).
    Now you should be able to copy and paste one without the other.
    Hope this helps.
    MtD

  • RAC-DATA FILE ACCESSING ISSUE FROM ONE NODE

    Dear All,
    We have a two node RAC (10.2.0.3)running on Hp Unix. From yesterday onwards, from one instance accessing data from a specific data file showing the below error, whereas accessing from other node to the same datafile is working properly.
    Errors in file /oracle/product/admin/tap3plus/bdump/tap3plus4_dbw0_24950.trc:
    ORA-01157: cannot identify/lock data file 75 - see DBWR trace file
    ORA-01110: data file 75: '/dev/vg_rac/rraw_tap3plus_temp_live05'
    ORA-27041: unable to open file
    HPUX-ia64 Error: 19: No such device
    Additional information: 2
    Tue Jan 31 08:52:09 2012
    Errors in file /oracle/product/admin/tap3plus/bdump/tap3plus4_dbw0_24950.trc:
    ORA-01186: file 75 failed verification tests
    ORA-01157: cannot identify/lock data file 75 - see DBWR trace file
    ORA-01110: data file 75: '/dev/vg_rac/rraw_tap3plus_temp_live05'
    Tue Jan 31 08:52:09 2012
    File 75 not verified due to error ORA-01157
    Tue Jan 31 08:52:09 2012
    Thanks in Advance

    user585870 wrote:
    We have a two node RAC (10.2.0.3)running on Hp Unix. From yesterday onwards, from one instance accessing data from a specific data file showing the below error, whereas accessing from other node to the same datafile is working properly.That would be due to some kind of failure in the shared storage layer.
    RAC needs the very same storage layer to be visible and available on each RAC node - thus this needs to be some form of shared cluster storage.
    Should a piece of it fails on one node, that node would not be able to access the RAC database files on that shared storage layer - and will throw the type of errors you are seeing.
    So how does this shared storage layer look like? Fibre channels (HBAs) connected to a Fibre Channel Switch and SAN - making SAN LUNs available as shared storage devices?
    Typically a shared storage failure would throw errors in the kernel log. This is because the error is not an Oracle error, but a kernel error. As it is in your case. The bottom error on the error stack points to the root cause:
    ORA-01157: cannot identify/lock data file 75 - see DBWR trace file
    ORA-01110: data file 75: '/dev/vg_rac/rraw_tap3plus_temp_live05'
    ORA-27041: unable to open file
    HPUX-ia64 Error: 19: No such device
    So HP-UX on that node is not seeing a specific shared storage device.

  • Can I move sessions from one node to another in Oracle RAC 11g?

    Hi everybody,
    When I need to shutdown one node for maintenance, can I move the sessions connected to that node to the other one? I know TFA but I'm not using it right now, I just wanted to know if I may move the sessions without warning everyone that some of them will be disconnected.
    Thanks for your help.

    2686998 wrote:
    sol.beach, thanks for your answers, just a few words:
    When you answered "NO, shutting down a node will disrupt every session on that node". it was confusing, as I wasn't asking for the behavior of the sessions when the node is shut down, you should've answered "NO, there's no way to manually relocate a session", that would have been clear since the beginning, also asking me to post a SQL didn't help much either, I honestly thought I didn't explain well my doubt.
    Thanks anyway.
    The answer is a no but the question for you, why you want to do that anyways?
    Aman....

  • ADF: Passing parameters from one page to another using setPropertyListener

    Hi,
    I'm trying to find a simple way to pass a parameter from one page to another.
    On the first page I have a table, the second page is a history page, showing the change history of rows from the table on the first page.
    In the table on the first page there's a unique column (an order number), the value of which is never changed for a given row.
    What I would like is to be able to pass the order number from the currently selected row of the first page on to the history page, making the history page show only the history for the given order number.
    Using the task-flow for the history page, I've defined an input parameter (an order number), defined a criteria and so on. I've tested the functionality of this in the Application Module, and it seems to work.
    My problem is passing the order number from the first page to the second.
    I've created a Managed Bean, with a variable for the current order number, including accessors. On the table on the first page, I've created a contextMenu, and added an Item called "Show history" with an action that navigated from the first to the second page (a control flow I've defined in adfc-config). I've included a setPropertyListener in the "Show history" item. I've set the "From" property of the setPropertyListener to "#{row.ordernumber.attributeValue}" and the "To" property to point at the order variable in the Managed Bean. Finally, I created a new page for the history, dragged the history task flow onto this page as a region, using the Managed Bean order variable as input parameter.
    The result is this: When I bring up the context menu from a row in the table on the first page and select "Show history", I get this error: "The class 'java.lang.String' does not have the property 'attributeValue'."
    That's a bit puzzling to me, seeing as I used the Expression Builder to fill out the "From" property. I've tried using "inputValue" instead of "attributeValue", but that simply changes the error message to: "The class 'java.lang.String' does not have the property 'inputValue'."
    What am I doing wrong?
    Regards,
    Andreas

    Hi Timo and Puthanampatti,
    I actually tried something similar to what you have suggested before starting this thread, but still got an error. What I hadn't spent a lot of time investigating initially was that it gave a DIFFERENT error. But after reading Timo's suggestion, I went back to this other error and found out that it was connected to my Managed Bean. For some reason, I had made the mistake of giving the bean the same name (in adfc-config) as the actual java class. And this leads to a circular reference error (that I would only get to see when I didn't get the java.lang.String error first).
    Having fixed this, I can successfully pass my parameter from one page to another (with the "From" property of the setPropertyListener set to "#{row.ordernumber}").
    Thanks for your time,
    Andreas

  • How to pass all values from one node element to created node element?

    Hi
    I have model node element under which there are 7 values, and I've created value node element and trying to pass the values from the model node Element to this value node element. But instead of passing all the values its listing only one value.
    How do we rectify this problem!!!
    Thanks in Advance
    Srikant

    Hi Anil
    I've created the node named: TableNode
    and the name of the node from which i want to get the data is : Li_Required_Node
    the Node Structure is
    Context
      |_ Zs_Quantity_Input
         |_Output
           |_Node_Required_Node
              |_Schddt
      |_TableNode
        |_CmpDate
    The Schddt has some 7 values
    The code Snippet is as follows:
    IPublicPricesComp.ITableNodeElement nodeElement;
    IPublicPricesComp.ILi_Required_NodeElement scheduleElement;
    int counter3Max = wdContext.ILi_Required_Node().size();
    for( int counter3= 0 ; counter3 < counter3Max ;counter3++ )
    nodeElement = wdContext.createTableNodeElement();
                             scheduleElement = wdContext.nodeZs_Quantity_Input().nodeOutput_Contract_Qty().nodeLi_Required_Node().getLi_Required_NodeElementAt(counter3);
    nodeElement.setCmpDate(scheduleElement.getSchddt());
    wdContext.nodeTableNode().addElement(nodeElement);               
    On writing the above code and then binding the node to a table column only one value getting displayed
    Where can be the error?
    Thanks in Advance
    Srikant

  • File Adapter not writing file when processed from one node in a clustered environment

    In our environment, we have 4 server nodes running. We are using a file adapter to write file to a location in the server. the adapter is writing files when its processing data in all nodes except one.
    Below is the JCA File
    <connection-factory location="eis/FileAdapter" adapterRef=""/>
    <endpoint-interaction portType="Write_ptt" operation="Write">
    <interaction-spec className="oracle.tip.adapter.file.outbound.FileInteractionSpec">
    <property name="PhysicalDirectory" value="/data/prd"/>
    <property name="FileNamingConvention" value="Sample.dat"/>
    <property name="Append" value="true"/>
    </interaction-spec>
    </endpoint-interaction>
    the File Adapter health is running OK. What would be the potential cause

    In our environment, we have 4 server nodes running. We are using a file adapter to write file to a location in the server. the adapter is writing files when its processing data in all nodes except one.
    Below is the JCA File
    <connection-factory location="eis/FileAdapter" adapterRef=""/>
    <endpoint-interaction portType="Write_ptt" operation="Write">
    <interaction-spec className="oracle.tip.adapter.file.outbound.FileInteractionSpec">
    <property name="PhysicalDirectory" value="/data/prd"/>
    <property name="FileNamingConvention" value="Sample.dat"/>
    <property name="Append" value="true"/>
    </interaction-spec>
    </endpoint-interaction>
    the File Adapter health is running OK. What would be the potential cause

Maybe you are looking for

  • Can't transfer videos and photos taken with my ipad (3rd gen) from camera roll to iMovie

    Hey guys, Last week I purchased iMovie for Ipad! I was looking forward making some nice clips, trailers etc. but I realized, I can't add videos nor photos what I've took with the iPad to iMovie! When I click on 'add photos' or 'add videos' option, no

  • Opening a pages document in Word

    Hi there. I am mainly using Pages to edit documents that have been generated in Word by other computers. I have no problem opening and editing these files but when I am finished, is there a way of saving them so that I can email them back to the othe

  • Ora-00932 inconsistent data type expected date got number

    Hi all, I have got an error ora-00932 inconsistent data type expected date got number in the below part of query. NVL (TRUNC (wdj.date_completed), '14-NOV-2012') BETWEEN NVL (TRUNC(:p_wo_completion_date_from), NVL (TRUNC(wdj.date_completed), '14-NOV-

  • Purchased app for icloud to sync, to do app, cannot see on desktop?

    I purchased a detailed To Do app - to sync with my icloud account.  I like to input from my desktop. I cannot locate this new app, restarted, made sure icloud was up to date. contacted apple support, they did not know???!!!! any ideas?

  • 10g EE setup for 64-bit OS

    Hi All, I am currently using the below given Oracle Exp. Edition. Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product PL/SQL Release 10.2.0.1.0 - Production "CORE     10.2.0.1.0     Production" TNS for 32-bit Windows: Version 10.2.0.1.0