The current node to display all the levels at the atomic scale

Hi all

If anyone has example of expand/collapse the current node to display all the levels at the atomic scale. Please post here. I appreciated the help.

Thank you

James,

try adding a condition just before current node if the next node id is null or not.

Thus, the update procedure will be like that.

PROCEDURE Expand_Collapse_Node (Tree_Name IN VARCHAR2 , Trigger_Node IN VARCHAR2, Str_Type IN VARCHAR2 DEFAULT 'COLLAPSE') IS
     Item_Id ITEM;
     Current_Node FTREE.NODE;
     Starting_Node_Level NUMBER;
     Current_Node_Level NUMBER;
BEGIN
     IF Trigger_Node IS NOT NULL THEN
          Item_Id := FIND_ITEM(Tree_Name);
          IF NOT ID_NULL(Item_Id) THEN
               Current_Node := Trigger_Node;
               Starting_Node_Level := FTREE.GET_TREE_NODE_PROPERTY(Item_Id, Current_Node, FTREE.NODE_DEPTH);
               LOOP
                    IF FTREE.ID_NULL(Current_Node) OR (Current_Node_Level = Starting_Node_Level) THEN
                         EXIT;
                    ELSE
                         IF Str_Type = 'EXPAND' THEN
                              IF FTREE.GET_TREE_NODE_PROPERTY(Item_Id, Current_Node, FTREE.NODE_STATE) = FTREE.COLLAPSED_NODE THEN
                                    FTREE.SET_TREE_NODE_PROPERTY(Item_Id, Current_Node, FTREE.NODE_STATE,      FTREE.EXPANDED_NODE);
                              END IF;
                         ELSIF Str_Type = 'COLLAPSE' THEN
                              IF FTREE.GET_TREE_NODE_PROPERTY(Item_Id, Current_Node, FTREE.NODE_STATE) = FTREE.EXPANDED_NODE THEN
                                    FTREE.SET_TREE_NODE_PROPERTY(Item_Id, Current_Node, FTREE.NODE_STATE,      FTREE.COLLAPSED_NODE);
                              END IF;
                         END IF;
                         Current_Node := FTREE.FIND_TREE_NODE(Tree_Name, '', FTREE.FIND_NEXT, FTREE.NODE_LABEL, '', Current_Node);
                         IF FTREE.ID_NULL(Current_Node) = FALSE THEN
                              Current_Node_Level := FTREE.GET_TREE_NODE_PROPERTY(Item_Id, Current_Node, FTREE.NODE_DEPTH);
                         END IF;
                    END IF;
               END LOOP;
          END IF;
     END IF;
END Expand_Collapse_Node;

Kind regards

Manu.

If this answer is useful or appropriate, please mark. Thank you.

Tags: Oracle Development

Similar Questions

  • OPS matester detail page: how to have a "Display all" feature on the screen, so that all the master records and details are developed.


    Hello

    I was trying to get a function "SHOW ALL" on the master - detail page

    the detail table is a table of advancec.

    Please help me with entries on how to make the feature "SHOW ALL",

    Currently, you must click on ': show ' for each record to the master level to display the data of the child.

    Trying to reach 'Show all' then featured on click this key records on the page "expands" showiing master records with respective detail records.

    Concerning

    bhuvanm

    Hello

    You should not set DetailFlag = 'Y' in the whereclause, because there is no such record.

    Also detail flag are transitional attribute and not the query column, hence the error "invalid identification Code.

    I asked you to use DetailFlag as a column of query with the static value 'Y '.

    for example:

    SELECT 'Y' detail_flag

    Of

    This will display all the records in the table in expanded format. If you want conditionally then use decoding on some binding settings.

    For example:

    SELECT DECODE (: 1, "SHOWALL", "Y", "N") detail_flag

    Of

    This connection parameter must be passed each time you want to run the query for the table.

    Kind regards

    Sandeep M.

  • How to set programmatically the current node in a tree view of the ADF.

    Hello

    I'm trying to understand how to set programmatically the current node in a tree view of the ADF.

    My use case example is quite simple; If we take the sample application ADF Summit where under Management Summit, we have a tree view on the left with a list of high level of the country which in turn contain a subset of customers; then, in the right pane, we the customer detail information.

    What I'm trying to achieve is a solution by which I can add a new customer, commit and then to the tree show the client newly created as the currently selected entry.

    I use a pop-up dialog box to create my new entry of the customer and everything works well in this area, and my newly created folder is saved in the database.

    I know how to force the tree to cool off, but what I can't understand is how to do so, it highlights the newly created folder.

    Any help would be much appreciated.

    Refer

    https://blogs.Oracle.com/jdevotnharvest/entry/how_to_programmatically_disclose_a

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/78-man-expanding-trees-treetables-354775.PDF

  • No current row to display by clicking the Lov

    Hi all

    I packed a lov to a column. It is a column in the search page. This search page should take some input parameters and the results by calling the api. I created this page by using the transient variable entry and output columns. I added this lov to an input column. "I get this error *" no current line for the view "*." I'm new to the FPÖ. After I have read the discussions, what I realized is that there could be two reasons for this error.
    1. VO uninitialized. -Some body give me a piece of code, how to initialize a VO?
    1 VO query returns 0 number of lines. -I don't have any query in my VO. Everything I have is 4 trasient variable.

    Thanks in advance.

    Double wire

    No current row to display

    You can use under your vo on AM initialization method calling processRequest

    public void createRow()
      {
        OAViewObject vo = (OAViewObject)getEmployeeFullVO1();//Here your VO instance name instead of EmployeeFullVO
    
        if (!vo.isPreparedForExecution())
        {
          vo.executeQuery();
        } 
    
        Row row = vo.createRow();
        vo.insertRow(row);
    
       row.setNewRowState(Row.STATUS_INITIALIZED);
    
      }
    

    Thank you
    -Anil

  • How can I display all recipients of an e-mail when I open the email

    I don't know if this is a duplicate.

    How can I display all recipients of an e-mail when I open the email in Thunderbird. What setting do I change this effect. I don't see that myself as a recipient not anyone else the email is addressed to or even any cc

    'View'-> headers-> all the.

  • 20.0.1 updated: right click on the page displays all THE menu options, many (all?) don't work, no 'view page source', not 'open in a new tab '.

    After 20.0.1 a few hours ago, click Update right displays all THE menu options, do not work a lot (all?), as 'view page source', 'open in a new tab' etc etc.

    To clarify, this happens if you have the active Firebug 1.10.6 addon.
    You can fix it by updating to the version of Firebug 1.11.2

    Here's how:
    Go to your add-ons Manager, right-click on the Firebug add-on and select 'Find updates'.

    Hope that helps.

  • permanently delete messages "additional plugins are required to display all the media on this page.

    Delete message "additional plugins are required to display all the media on this page" permanently. I have no use for ANY Adobe product, either. None are allowed on my network, period. I'm tired of this message. The absence of the FLASH plugin is what triggers it. However, the absence of the plugin is a good thing and that the plugin is totally unnecessary and absolutely not desired.

    You can inspect and change this pref on the subject: config page.

    • the pref plugins.hide_infobar_for_missing_plugin true value
  • Why is the window display all bookmarks empty even though I still see my favorites in Firefox > bookmarks?

    The window display all bookmarks and bookmark side are empty, even though my booksmarks are always accessible from the Firebox menu > bookmarks. Unfortunately, I can't manage my favorites through this option. How can I fix the windows display all bookmarks and Favorites aside to display my favorites?

    One possible cause is a problem with the places.sqlite file that stores the bookmarks and history.

  • Tecra A7-112 of display cannot display all the colors corectly

    Hi, I have the same problem with my screen than that of this post: http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=14718&messageID=54000

    It seems that my screen may not display all colors corectly and it seems protected by a kind of tasks/works of art in most colors.
    Here is a picture, not so good but still, my question:

    http://www.Logicode.ro/test.jpg
    http://www.Logicode.ro/Test1.jpg

    You can see the first color - pure red it seems correct and solid but second it - a small red varation there artifacts / protected by a kind of tasks.

    I learned that it is a problem of dithering that can be set in the BIOS.

    For the Satellite A100-237 the problem has been resolved by downgrading to an older version of bios, but what can I do with my laptop Tecra A7-112? :|

    Post edited by: eStatic

    Hello

    Have you checked whether the BIOS most recent update has been published on the driver page?
    I put t know if it helps but you can also try to update the display driver.

  • Satellite A100: Cannot display all the files on any CD or DVD

    Well straight.

    My brother bought a new laptop today.

    However, there seems to be a problem. When you go to my computer and click on the CD icon, nothing happens. When right click and select "Explorer" hard disk take it just straight up one explores the desktop for some reason any. So, it may not display all of the files on any CD or DVD.

    The drive seems to work very well. He began playing music CDs when they are inserted and it automatically even played and tried to install a game when we tried.

    Help!

    Hello

    I don t think that the driver is up-to-date. The CD/DVD drive using the common drivers of Windows OS and these drivers should work without any problems.
    However, try to remove the drive from Device Manager. After restart of the operating system should recognize the drive again. Check it out.

  • poor print quality, clean the heads, all ink levels ok,

    printing lines, horizontal, poor quality, some missed lines quality fakes. Cleaned heads, nozzle, all ink levels fine

    Hello Stephenagar,

    What operating system you run on your computer? (Windows 7, Vista or XP?)

    What is the printer brand and model? (HP, Canon, Brother, etc..)

    I suggest that you try runing the Microsoft FixIt tool is in the following article:
  • Cannot change the login screen to display all users.

    I'm unable to change the sign on screen to display all users.  It is said to remove the client service for netware (CSNW), when I go to remove only the open is available.  The service has not been started.

    Where did you go to remove the Client Services for Netware?

    Go to network connections (start > run > ncpa.cpl > OK)
    Right-click on the icon for your network adapter (most likely, Local area connection), and then select Properties
    On the general tab, you should see a list under "this connection uses the following items."
    Select the Client Services for Netware, click to remove the check mark, and then click Uninstall.
    OK your way out.
    Restart (it is not automatically)
    After Windows starts, go to control panel > user accounts > Change the way users log on and outside
    Select the options you want and click on apply changes.

    The list of questions should normally (personal computers) include only 4 following:

    Client for Microsoft networks
    QoS Packet Scheduler (optional)
    Sharing files and printers for Microsoft Networks (only if you want to share files or printers)
    Internet (TCP/IP) Protocol

    If you do not see Client Services for Netware on the general tab of the connection to the Local network or if you still have the problem after uninstalling it this connection, examine the properties of other components in the network connections.  For some of them (e.g. Dial-up), the list of questions is on the network rather than on the general tab tab.

    If you can't find the Client Services for Netware for ALL network connections (and therefore cannot remove), reinstall it, and then follow the instructions above to uninstall.

    To reinstall:

    1. go in the network adapter Properties/General tab you use and then click on install
    2. make sure that 'Client' is highlighted, and then click Add.
    3. highlight "Client Service for Netware", click OK
    4. leave your PC restart.

  • My Task Manager displays all of the window. How can I solve this problem.

    original title: Task Manager

    My Task Manager displays all of the window.  How can I solve this problem.

    Looks like you run the Task Manager using tiny/small footprint.

    If you double-click on the empty space around the border of the screen of the Task Manager, it will be
    return to normal mode, and then you should see the tabs you are accustomed to seeing.

    You can read about it here:

    http://www.BROADBANDreports.com/FAQ/6905

    If sfc/scannow solves your problems, I'll send you (or your charitable organization preferred) $10 American.
    Read :--->

  • Is it possible to display all the songs by an artist (instead of just the titles album) (rocket)

    On the "rocket", when you select the name of an artist in the music menu, it displays a list of all titles of the album by that artist. At the top of the list is the ability to 'play together', but I can't understand how to display all the songs of the artist in a large list, regardless of the album. It would be useful if you know who did the song, but don't know what album it's on. Is there a way to get the "rocket" to show you such a list? Thank you.

    Beshara wrote:
    On the "rocket", when you select the name of an artist in the music menu, it displays a list of all titles of the album by that artist. At the top of the list is the ability to 'play together', but I can't understand how to display all the songs of the artist in a large list, regardless of the album. It would be useful if you know who did the song, but don't know what album it's on. Is there a way to get the "rocket" to show you such a list? Thank you.

    The choice of the artist. Then select play all. Then press the menu button (at the bottom of the scroll wheel). Then select back to list of musk. This goes to a list of songs and does not account for the album.

  • I managed to remove the icon to display all open windows one behind the other.

    I managed to remove the icon to display all open windows one behind the other.  Where can I find it now?

    Also, my laptop keeps getting an error when I try to restore to an earlier date and told me that it is impossible to complete.

    Hello

    Which, in my view, that you have a problem with, it's called windows Flip 3D!

    Try this first and see how you go...

    1. To turn on the Quick Launch bar, follow these steps:
    2. Right-click anywhere on an empty spot on the taskbar.
    3. Choose toolbars from the menu that appears.
    4. Select Quick Launch in the following menu so that it is checked.

    You should then be able to click the icon to switch between Windows now and use the 3d Flip...

    Or

    . Right click on the Quick Launch toolbar, but not on an icon
    2. Select the folder from the context menu. It will take you to the Quick Launch folder that should live:

    C:\Users\username\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch

    3. right click in an empty area of this folder
    4. Select new, then shortcut from the context menu
    5. for the location text box, enter the following text:

    C:\Windows\System32\rundll32.exe dwmapi #105

    6. click on the next button
    7. appoint. (Flip3D, for example)
    8. click on finish

    The shortcut will now be in your Quick Launch toolbar.

    Concerning

    GT4U

Maybe you are looking for

  • Satellite R630-13F - bootable ISO need BIOS update

    Hello I have Ubuntu Linux on my R630-13F.There is a known issue with Ubuntu & kernel 2.6.35 and freezing at startup, however the last BIOS 1.80 would have been remedied this. Currently I'm under 2.6.32 kernel to work around this problem, but I would

  • Satellite U300 - it simply changes the DC Jack?

    I accidentally put a power supply of 24 VDC on my laptop, the laptop still works, but I can no longer charge the battery, It is simply changing the dc plug, or would it be irreversible damage to the motherboard?

  • I need a CD for starting a Satellite A300D - 17 M

    Hello! I just bought a Toshiba Satellite A 300 D - 17 M. I forgot to create the DVD before recovery with Paragon Partition Manager, I changed the 2 Partitions. My problem is that the titles of the files on the disk hard to change swap and now Explore

  • 1070ec dv5 startup problem

    Hi all. I have a problem with my laptop Pavilion DV5-1070ec (FM585EA). As usual, I turned off it and next day the morning it does not start. Just the power LED button flashes once and nothing else. I tried the Reset hardware, but not good. Can someon

  • Having a problem with opening a labview project because it is the most recent version of what I have (Labview 8.5)

    I downloaded the project attached labview on this site... It is useful for my project... I tried to open it but no way... If there is no way to open it please help me out here... If you can convert the project and screw to my version, it will be grea