Best way to display a report of the hierarchy tree to APEX 4.2

I have a hierarchical query spans four levels over two tables.  The application works very well and also includes columns hierarchical sum (i.e. the parent displays the sum of all children) using functions.

I wonder what is the best way to view these data for users?

At the moment I think I would have a collection now my connection with the edition special 'show' column.  Then I would include HTML to define values correct show/hide and refresh the report when you click on a node.  In my view, this would probably work, but may not be the best way.

I disassembled my request for necessary columns (no column of the sum) and the tree APEX regions work well for this.  Y at - it a plugin alternative jquery or anything that people with what will give me the directory structure 4.2 native while allowing me to display additional columns with links?

If I need to provide more info let me know!

LSDev wrote:

I'm going to use today to test these ideas, and if they don't work I'll go with the classic report hack, I thought.

AEC: I'll try the plugin and report back on the question if I can get the links to work.

The plugin code is clear and simple. However, the links generated HTML text in the query as:

...
'' || apex_escape.html(ename) || '' employee
...

does not work out of the box as the plug-in is escaping in HTML output column values:

    -- Render all other columns
    FOR j IN 3 .. l_value_list.count
    LOOP
      sys.htp.p('' || sys.htf.escape_sc(l_value_list(j)(i)) || '');
    END LOOP;

This can be changed to allow the links:

  -- Render all other columns
    FOR j IN 3 .. l_value_list.count
    LOOP
     IF l_value_list(j)(i) not like '' || l_value_list(j)(i) || '');
    END LOOP;

Tags: Database

Similar Questions

  • Is it possible to connect a simple 1 d array to a digital indicator or what would be the best way to display the numeric values of the array on the front panel?

    Is it possible to connect a simple 1 d array to a digital indicator or what would be the best way to display the numeric values of the array on the front panel? Examples or suggestions would be greatly appreciated.

    Thank you

    Tunis

    Thank you Adam, it's originally in a while loop, I placed it in a loop for example, wired County in the for loop and presto, this son of a digital indicator. It works very well. Thanks for the help folks.

  • Which is the best way for a function called identify the class name of the appellant.

    Which is the best way for a function called identify the class name of the appellant.

    (1) sun.reflect.Reflection using the function call
                    Class caller = Reflection.getCallerClass(2);
                    System.out.println("Caller Class Name ::"+caller.getName());
    Trace of function called battery 2) analysis of current threads
                    StackTraceElement[] stElements=Thread.currentThread().getStackTrace();
                    System.out.println("Caller Class Name ::"+stElements[3].getClassName());
    Y at - it all the other ways to achieve the same. What is the best way?
    Called function does accept no argument, I don't want the arguments of function calling function called t.

    Help, please.

    With greetings
    Paul

    798185 wrote:
    Which is the best way for a function called identify the class name of the appellant.

    Y at - it all the other ways to achieve the same.

    SecurityManager

        // 0 is the anonymous SecurityManager class
        // 1 is this class (also works in static context)
        // 2 is calling class
        static Class getClass(int i) {
            return new SecurityManager() {
                protected Class[] getClassContext() {
                    return super.getClassContext();
                }
            }.getClassContext();} 
    
  • Colorful of the hierarchy tree

    Hello
    This is the first thread write. I searched your discussions for 'how to display the hierarchy tree in forms 10g with different colors and different fonts for different nodes weight '. But I found nothing.
    Looking forward hopefully to your answers.

    Hello

    Forms provides special not integrated to manage the coloring of a tree.
    The only way would be to do it through the Java code.

    François

  • How to use record group to insert data into the hierarchy tree?

    Hello

    I had a hierarchical tree in my block and I want to use the record group to display
    in the hierarchy tree, call david_tree. He did work for the code I try below
    and I think it might be that the create_group_form_query was wrong? or miss an order?


    DECLARE
    htree;
    rg_data RECORDGROUP;
    v_ignore NUMBER;
    BEGIN
    htree: = Find_Item ('tree_block.david_tree');

    rg_data: = CREATE_GROUP_FROM_QUERY ('rg_bank',
    "select name, short_name".
    || "from css_banks");

    -Fill the record with data.

    v_ignore: = POPULATE_GROUP (rg_data);

    -Transfer the data from the record group to the hierarchical
    -tree and bring it to display.

    FTREE. SET_TREE_PROPERTY (htree, FTREE. (RECORD_GROUP, rg_data);

    END;


    Thank you


    David

    David,
    You get an error with your code? Looks like you took your example code help Forms. I don't really see a problem with the code, but the forms example gives an example of how create the record group used by the HTree so the Receiver General may be the cause of the problem. When I used the HTree, I used the FTREE. Procedure ADD_TREE_DATA to fill the tree. When I started working with HTree I created a wrapper package to simplify the process. You can watch how I work with the HTree in a demo that I published called: forms and how to: create a shape of the HIERARCHICAL tree.

    Hope this helps,
    Craig B-)

    If someone useful or appropriate, please mark accordingly.

  • The hierarchy tree tutorial

    Hello dear,

    Please someone help me or share a link to the development of the hierarchy tree on a form.

    I need the following specifications in development.

    that populate database table.
    Add a node that will be recorded in table
    remove a node that erases the precise recording of table
    update a node that update the database table.


    I'll be very thank you all in advance.

    Kind regards

    Zafar Iqbal

    Hello

    It is a starting point


    François

  • Order by in the hierarchy tree

    HelloW All


    My request for the hierarchy tree is

    SELECT 1, LEVEL, name. ' ('| to_char (ID) |')    ', ", to_char (id)+.
    FROM py_emp+.
    CONNECT BY PRIOR id = start catagory_id with+.
    id in (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,+)
    * 21,22,23,24,25,26,27,28,29,30,31,32,33,34,35, *.
    * 36.37.38.39.40.41). *


    Its fine to work, but the hierarchy tree is not stopped by Id

    What can I do?

    2nd I want to start with the id in 1,2,3 do not enter from 1 to 1000 to continue automatically continue


    Concerning


    Wasim Ismail

    1. you can use

    BROTHERS AND SŒURS ORDER BY ID

    2. I do not understand this requirement

  • Best way to display the XML in a database column.

    I have a lot of xml as xmltype.

    The basic data are displayed in a report. If I click on a link in the report that I call a popup page that will display the xml code.

    This XML sometimes exceeds 32K, so I can't use a textarea directly.

    What is the best way to view the xml code?
    I thought maybe a URL region but have not used these before.

    Published by: Keith Jamieson on December 23, 2008 11:38

    Keith:

    Try to view the XML code in a textarea component as in the example below

    htp.p('');
    

    CITY

  • Best way to display the error message to the end user?

    I want a small error message box to the pop-up window on the top layer, when a customer makes a selection incorrect or invalid.

    Can someone help me find the best way to do it?

    attachMovie() allows you to instantiate a library movieclip that contains a dynamic textfield. You can assign to the text property of the textfield object and position the movieclip as needed.

  • What is the best way to display a large number of records?

    I have about 12000 registry to commit to dababase.
    What is the best way to do it?

    Which depends on?

    Today I can't commit so many registry... The dabatase seems hanged!

    Thanks in advance

    Xavi says:

    Today I can't commit so many registry

    It should be possible to insert tens of thousands of lines in a few seconds using an insert even with a complex query as the view object and validation at the end.

    SQL> create table t as select * from all_objects where 0 = 1;
    
    Table created.
    
    Elapsed: 00:00:00.03
    SQL> insert into t select * from all_objects;
    
    32151 rows created.
    
    Elapsed: 00:00:09.01
    SQL> commit;
    
    Commit complete.
    
    Elapsed: 00:00:00.00
    

    I meant RECORDS instead of REGISTERS.

    Maybe that's where you're going wrong, records are to put on the turntables.

  • Best way to display points boundaries of parcel

    WPF C#

    Hi, I need to somehow score points that are off limits on my graph of LinePlotRenderers 4.  This is the data structure:

    Point DataArray []] = new Point [4 256];

    At the moment I think to simply add 4 PointPlotRenderers to display those endpoints (so he total I will have 8 plots).  But I don't know what is the best way to pump data into my chart.  If I still have points outside the limits and dataArray structured as shown above (4 x 256) may be empty, or any combination up to 4 x 256...  What is the best way to pump all that data in my chart?  I mean, I can't join them in the same table 2D because the size of the array of points off limits will not be the same.  If I do the same thing to fill with 0 then my chart will pass to the tent show 0,0.

    Does make sense?  Maybe there is another way to work with limits?

    Thank you

    If you want to use the existing Point[,] rectangular table data source, you could cover the additional plots with NaN values (i.e. new Point( double.NaN, double.NaN ) ), which the graph is not displayed.

    You can also use a Point[][] data source table in stairs, where the berries for out-of-range points can only contain useful numerical values.

    In addition, might be interested in the range of masking slider demo (by using the range of your validation, instead of a slider).

  • Best way to display a set of data rows (15 + columns)?

    Hey,.

    I have a set of data rows in a data from a JAVA call control. Rowset contains about 15 + columns of data that I need to display to the user in a grid. What is the best way to achieve this? When I try to drag the control of data lines in the AMX only obvious choice page seems to be seen list but I can't just use some columns in a list view. Or an iterator. I guess I should use iterator somehow, but what is the best way to present this data?

    Manually, you can go and edit the list to add more columns and place fields in them.

    Check out the application workbetter to see some models list (for example, people discovered) sample.

    Oracle Mobile Application Framework samples

    You might want to rethink your design and have a limited set of fields appear in the list, and then when you select a list item data show the rest of the info.

    a very large list is perhaps not ideal for a mobile screen.

  • Best way to display single Pages Vertical and Horizontal spreads

    My client wants to have a version horizontal and vertical of his folio which presents itself as a two page spread and simple pages vertically. When the device is rotated from vertical to horizontal, the vertical two pages should appear and when you rotate from horizontal to vertical the first page of the spread should appear (like the Ikea catalog).

    I know you can do it by this method:Re: 2 vertical Layouts (page and page from right to left) every 1 horizontal provision (2page Spread). The problem is to have 800 articles is a bit messy. If you use a schooling and _v layouts, pages / "spreads" are not correlated when turned. The items will be InDesign.

    Is there a way to either eliminate/customize the generic table of contents How are done if I go with different items reported in the post on the forum or override/customize (I hope with javascript) what an article page is displayed after the rotation if I use _it and _v layouts?

    Thank you.

    An article by pair of pages is the only sensible way to get the job done. You can automate the production in writing (or commissioning) a javascript that would create the article files and place pages and spreads from a basic document, continuous in h and v layouts. You can place them as pdf or better, live under indesign, that allow you to make changes in the basic document and just update the articles). In the end, you would add interactivity directly in the articles.

    As with the table of contents with 800 entries would be dangerous for the health of your readers, you can try "hide TOC" in Folio Producer, leaving only main feature articles (section covers) visible.

  • Best way to small icons anywhere in the screen.

    Hello

    I am doing for my application kinda like a panel where the user will have a JPG image which will be a map in the background and on top of that I need to have small images or icons that will be nodes of a network and nodes will have attributes that will determine the position of the screen to fit the map below.

    Each node must also be able to click on it to open a window that contains the data of this node.

    I'm new to Java and I don't know which is the best way to do it in Java. Can someone point me to the right direction?

    I thought to use icons or maybe buttons with the image of knot on top. But I don't know if this is the best approach.

    Thank you.

    Most likely, you'll want to extend JButton or an icon to add the attributes, and then add an action listener so he can open a new window and display these attributes.

    class NodeButton extends JButton{
        private Map attributes;
        int xPos;
        int yPos;
        String title;
    
        public NodeButton(int x, int y, String inTitle, Map inAttributes) {
            title = inTitle;
            xPos = x;
            yPos = y;
            attributes = inAttributes;
        }
    
    }
    

    Can do something like this to create a new node

    Map attributes = new HashMap();
    //populate your attribute map
    NodeButton nodeButton = new NodeButton(100, 200, "My Node", attributes);
    nodeButton.addActionListener(new ActionListener() {
    
                   @Override
                   public void actionPerformed(ActionEvent arg0) {
                                //display your new JFrame in here
                   }
              });
    
  • Best way to load separate components of the main sequence

    When loading my flash animation, it takes time to display the loading image because he's too busy to export items on the first image. What is the best way to avoid this, while being able to use the components via the .swf?

    Thanks for any help,
    ~ Oni.

    OniLink wrote:
    > Loading my flash animation, it takes time to display the loading image
    > because it is too busy to export the items on the first image. What is the
    > best way to avoid this, while being able to use the components through
    > the .swf?
    >
    > Thanks for any help,
    > ~ Oni.
    >
    loadMovie ("component.swf", _container);

    the best way is to load on the outside, but if you do not receive it, check
    www.gotoandlearn.com...
    they have the best basic and advanced tutorials.

Maybe you are looking for

  • Non-stationary cursor

    My cursor becomes no longer the cursor that should be when you move to a hyperlink in any program (Safari, Chrome, TextEdit, etc.). There is simply no past action stationary because the actions of hover, a video player from YouTube, where pop control

  • Apple pays lock screen

    When I double tap the home button to lock the screen to bring up the portfolio to pay Apple, all my cards appear with the exception of Starbucks. Someone knows why? I have the Starbucks app on my iPhone 6 s; Starbucks card is already in my portfolio.

  • HP EliteBook 6390p: Windows vista update 7

    Hello, I was reading a post that showed a person solve it issues looking for a driver for their SD card reader after an upgrade. He said there is no update available for the reader to the basic system. It was on a 6910, but I'm sure it would be the s

  • P50 - Turn off hyperthreading

    Is it possible to Turn off hyperthreading? I want to dedicate at least a threaded kernel for single task.

  • What happens if I delete the folder "windows.old"?

    I upgraded my windows Vista. Now on the local drive, I can see a "windows.old" folder that does not use a lot of space. What happens if I delete this file?