Tree Region Example

Hi,
I'm using my apex.oracle.com workspace. I'm trying to create a tree region using the emp table. I'm using the typical wizard but when i run the page the tree is not displayed.
This is the query built by apex with the wizard.
select case when connect_by_isleaf = 1 then 0
when level = 1 then 1
else -1
end as status,
level,
"ENAME" as title,
null as icon,
"EMPNO" as value,
null as tooltip,
null as link
from "#OWNER#"."EMP"
start with "MGR" is null
connect by prior "EMPNO" = "MGR"
order siblings by "ENAME"
http://apex.oracle.com/pls/apex/f?p=41771:3:8143710593092:::::

Run page : runs fine - no errors.
Execute SQL in workshop:
No data found.Okay. So obviously data related.
select * from emp
16 rows returnedGreat.
Connect by start with clause:
start with "MGR" is nullOops. No records where "MGR" is null. No tree!

Similar Messages

  • How to add vertical scrollbar to a tree region

    Hi,
    I have a page containing two regions. The first is a tree region displayed on the left hand side of the page. The second is form region displayed to the right of the tree, showing details relating to the selected node from the tree.
    How can I add a vertical scrollbar to the tree, so that I can I browse all nodes in the tree without affecting the position of the form? Currently, if my tree extends beyond the height of the page I have to use the page vertical scrollbar to view the bottom of the tree. This obviously means that the form is no longer in view.
    Thanks
    Andrew.

    Hi Andrew,
    You can't add a scrollbar directly to the region's contents, but you can wrap the contents within a DIV tag.
    In the Region Header add in:
    <DIV style="height:500px; overflow:auto">
    In the Region Footer add in:
    </DIV>
    Obviously, change the height value to suit your needs.
    Regards
    Andy

  • Tree region doesn't display correctly in IE7.

    I've created a tree region in a page, I put it in the sidebar region position. I'm using theme 13 and my page template is No Tabs with sidebar.
    In Google Chrome and Firefox it displays wonderful... But in IE 7.. the Form Region elements float over the tree. How can I fix it ???

    I also need to add that the font problem exists on the results slide for the reported variables. The default text and the variable are both assigned to the same font yet the variables are defaulting to Times New Roman.

  • Possible Bug in APEX 4.1 Tree Region

    Hello Everybody,
    I am developing an APEX application and want to add a navigation tree.
    So I downloaded the Oracle packaged sample application "Sample Trees".
    I created a tree region like the tree on page "Project Tracking" and realized that the lines at the left of the images were not visible in my application (to be exact: on root level they they are concealed by the bitmaps).
    The reason is that my application uses the a different page template (No Tabs, Left and Right Sidebar, Theme 24 Cloudy).
    The "Sample Tree" application (which has a reduced set of page templates) uses a template without sidebars (same Theme).
    I was able to reproduce this error by switching the page template in the Oracle "Sample Tree" application to "Two level Tabs, Right Sidebar).
    When I do so the tree line on root level disappear in the sample application also.
    As I want to use a sidebar page template and want to use a navigation tree...
    does anybody know a workaround for this behavior ?
    I am using Chrome and Firefox on MacOS and the behavior ist the same in both browsers.
    Thank very much ...
    Telemat
    Edited by: telemat on 03.08.2012 10:19

    Hi,
    I do not have access to your apex.oracle.com application to see what happens when the page template is changed.
    It appears to render identical for various page templates in my local instance. I even tried with custom icons, 24-Cloudy. I am unable to spot the missing lines. Or, I do not see them rendered in any of the page templates ( corollary).
    What appears to me on your apex.oracle.com application is that you are using icon that are not in the three options in the tree wizard (Blue/Classic/Default).
    Moreover, your Tree does not have a single root that is displayed.
    So, you either need to give access to your apex.oracle.com workspace for someone to try changing the template and see what is happening. Or, you need to describe how to locate the lines that find go missing.
    Cheers.
    PS : I am checking with FF 14 on Windows
    Edited by: Prabodh on Aug 6, 2012 5:13 PM

  • R12 upgrade causing HGrid tree region issue

    in 11i the HGrid and tree region was showing the expansion (+ ) node and the child records were being shown
    after upgrade to R12, the child nodes are not being shown. Only the parent node.
    checked the view objects and definition of HGrid region. The view objects return rows and the region definition is similar to a standard OAF page.
    Any clues on what could be missing in R12 ?

    Hi,
    Is this a custom page or standard one ?
    --Sushant                                                                                                                                                                                                       

  • Allignment problem in application express tree region

    hi,
         i have an issue regarding the tree regions allignment in a page. i tried to create a simple tree region with the basic code given below..
    select case when connect_by_isleaf = 1 then 0
           when level = 1             then 1
           else                           -1
           end as status,
           level,
           'xxx'   as title,
           null as icon,
           "RECORD1" as value,
           null as tooltip,
           null as link
    from "#OWNER#"."TABLE_TREE"
    where ex_id = :EX_ID
    start with "RECORD2" is null and ex_id = :EX_ID
    connect by prior "RECORD1" = "RECORD2" and ex_id = :EX_ID
    for the above code used in the tree region type i got the following tree structure.
    the above trees structure display the child records from same parent are not coming in same allignment. the child record with no further child is coming with a space before the record and a child record with further childs to it is getting displayed from the starting of the line.
    please help me out.

    i am unable to attache screen shots. please find the screen shots here
    link: http://postimg.org/image/uasvm7nlt/

  • How to auto refresh a tree region

    Is possible to automaticaly refresh a tree region?

    Anyone can help me with this?
    Edited by: macwadu on 4/Ago/2011 3:10

  • Interesting problem with Tree region...

    HI
    I have a tree region which I am using to show tasks in a task management / change control app. All working fine until I decided it would be good to have a select list at the top which allows me to see either all or just incomplete tasks...
    I set up a list selection item (P9_TASK_STATUS) with the following LOV:
    STATIC:All;101,Incomplete;100
    Then I modified the tree code to include ' AND pcent_complete < :P9_TASK_STATUS ' in the where clause (code below). Now, when I choose All from the drop down I see all nodes. When I choose Incomplete I see nothing... an empty tree! I have checked the value in P9_TASK_STATUS and it is as per the LOV...
    I tested the code by changing it to hard numbers instead of the item - and it works fine when I use ' < 101' but returns nothing when I use '< 100'. Have also tried changing the LOV to 100 & 90 then putting a '<=' in the where clause.
    Yes, there are many tasks with values less than 100!!
    Any ideas?
    Thanks in advance
    Steve
    select case when connect_by_isleaf = 1 then 0
    when level = 1 then 1
    else -1
    end as status,
    level,
    "TASK_NAME" as title,
    null as icon,
    "TASK_ID" as value,
    "DETAIL" as tooltip,
    'f?p=&APP_ID.:9:&APP_SESSION.::::P9_TASK_ID_1,P9_TREE_NODE:'||"TASK_ID" || ',' || "TASK_ID" as link
    from "#OWNER#"."TM020_TASKS"
    WHERE project_id = :F102_PROJID and pcent_complete < :P9_TASK_STATUS
    start with "TASK_LEVEL" = 1
    connect by prior "TASK_ID" = PARENT
    order siblings by dte_sched, priority
    Edited by: Steve In Dorset, UK on Jan 13, 2011 9:46 AM

    Hi
    Interesting point ab out the where clause but that works fine with the single condition to filter by project ID. I've also noticed that the problem only occurs once there are tasks which have been marked as 100% complete! WHen there are no complete tasks the code runs OK. could be an excuse to never finish a task...
    COde to create table & data below
    Thanks
    Steve
    -- DDL for Table TM020_TASKS
    CREATE TABLE "TM020_TASKS"
    (     "TASK_ID" NUMBER(*,0),
         "PROJECT_ID" NUMBER(*,0),
         "TASK_NAME" VARCHAR2(100),
         "PARENT" NUMBER(*,0) DEFAULT 0,
         "REQUESTOR" VARCHAR2(25 CHAR),
         "DETAIL" CLOB,
         "DTE_CREATED" DATE DEFAULT sysdate,
         "DTE_STARTED" DATE,
         "DTE_DUE" DATE,
         "DTE_LIVE" DATE,
         "PRIORITY" NUMBER(*,0) DEFAULT 0,
         "PCENT_COMPLETE" NUMBER(*,0) DEFAULT 0,
         "WORK_SEQ" NUMBER(*,0) DEFAULT 0,
         "TASK_LEVEL" NUMBER(*,0) DEFAULT 1,
         "DEV_NOTES" CLOB,
         "DTE_TEST" DATE,
         "DB_OBJ" VARCHAR2(100),
         "APP_OBJ" VARCHAR2(100),
         "DTE_SCHED" DATE,
         "OWNER" NUMBER(*,0) DEFAULT 0
    REM INSERTING into TM020_TASKS
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (48,13,'Calendar Reports',43,'Anne',to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,null,3,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (39,15,'Bugs',0,'Everyone!',to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,null,1,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (40,15,'Email to Postmaster',39,'Caroline',to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,to_date('14-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,2,0,null,2,null,null,null,to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (41,13,'Create table for tree',19,null,to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),to_date('10-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),to_date('10-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,1,100,null,3,to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),'icdb501_admintree',null,to_date('10-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (42,13,'Bugs',0,null,to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,null,1,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (43,13,'Change Requests',0,null,to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,null,1,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (44,13,'Download CSV Change',42,'Anne',to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,2,0,null,2,null,null,null,to_date('16-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (45,13,'Reports',0,null,to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,null,1,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (46,13,'% Pats screened',45,'Anne',to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,1,0,null,2,null,null,null,to_date('17-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (47,13,'Patient Status',43,'Anne',to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,1,0,null,2,null,null,null,to_date('17-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (49,13,'Positive TCIs',48,'Anne',to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,2,0,null,4,null,null,null,to_date('18-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (14,13,'Make Admin more friendly',0,'Steve',to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,to_date('14-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,2,40,0,1,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (16,15,'Change Requests',0,'Steve',to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,0,1,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (18,17,'Create project docs structure',0,'System',to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,0,1,null,null,null,null,0);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (19,13,'Set up IC Tree region',14,'Steve',to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),to_date('07-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),to_date('18-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,2,50,null,2,to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,to_date('07-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (20,13,'Plan IC tree nodes',19,'Steve',to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),to_date('09-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),to_date('09-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,2,100,null,3,null,null,null,to_date('09-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (21,13,'Create IC node pages',19,'Steve',to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),to_date('07-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,2,100,null,3,null,null,null,to_date('09-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (22,13,'Help & Support',0,'Steve',to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,to_date('21-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,2,0,null,1,null,null,null,to_date('17-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (23,13,'On-Line Help',22,'Steve',to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,to_date('21-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,2,0,null,2,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (24,13,'Written manuals',22,'Steve',to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,to_date('21-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,2,0,null,2,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (25,13,'Helpdesk documentation',22,'Steve',to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,to_date('21-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,2,0,null,2,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (26,15,'Split large fields',16,'Steve',to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,2,0,null,2,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (27,15,'Ward activation',16,'Caroline',to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,2,0,null,2,null,null,'listmanager.asp',null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (28,13,'Set up Micro tree region',14,'Steve',to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,null,2,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (29,13,'Plan Micro tree nodes',28,'Steve',to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,null,3,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (30,13,'Create micro node pages',28,'Steve',to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,null,3,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (32,31,'Clinic Letters',0,'Caroline',to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,0,1,null,null,null,null,0);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (33,31,'Remove interprovide mail',32,'Caroline',to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,1,0,null,2,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (34,31,'PAS',0,null,to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,null,1,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (35,31,'get TRUD',34,'Caroline',to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,2,0,null,2,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (36,31,'Enable samba for trud',34,'Caroline',to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,null,2,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (37,31,'HL7 email',34,'Caroline',to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,1,0,null,2,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (38,13,'Create icdb530_pk_trg',21,'Steve',to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,2,100,null,4,to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),'icdb530_pk_trg',null,to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),1);

  • Using check Box in a Tree Region style

    I want to display some data in a hierarchical manner and use a checkbox for the user to select the node for which he wants to see a report.
    I need to fetch the node value where the user has ticked in the check box.
    I went through the documentation but it does not mention about using a checkbox.
    Can any one please let me know if we can use checkbox to tree nodes and to capture the user checked nodes do we have to make the VO based on an EO or even with a read only VO I can know which node the user has selected.
    Regards
    Hawker

    Don't cross post: http://forum.java.sun.com/thread.jspa?threadID=5130358&messageID=9467688#9467688
    Search google:
    http://www.google.com/search?q=jtree+checkbox
    This is one of the examples you can find:
    http://www.java2s.com/Code/Java/Swing-JFC/CheckBoxNodeTreeSample.htm

  • Netui:tree jsp example

    All,
    Can anyone supply me with an examplpe of using a netui:tree in a JSP portlet(s)?
    I am going to be selecting info from a database and would like to loop through
    that info to populate the tree. I have had zero success in getting the tree to
    render.
    What I want to have happen is 1. select the data 2. populate the tree 3. user
    selects node in tree and another portlet refreshes with parameters for that node
    (such as address, phone number) 4. User edits info 5. Info is written back to
    the DB 6. tree is updated.
    Is any of that even possible? I can't be the only person to ever try it.
    Thanks,
    John

    check whether you have any CSS conflicts

  • Tree Attributes Query Example is Incorrect

    I have been trying to create a Tree region in Application Express 4.0.2.00.07.
    In the "Tree Attributes" page the exmaple and help text are contradicting, the example is oncorrect whereas the help text is correct.
    This is very frustrating!
    See text:
    Syntax: select status, level, name, icon, id, tooltip, link from ... where ... start with... connect by prior id = pid order siblings by ...
    +1. You must select the columns in the following order (e.g. status, level, name, icon, id, tooltip, link..)+
    +2. Ordering applies the order_by_clause to the siblings of the hierarchy+
    Example:
    select case when connect_by_isleaf = 1 then 0 when level = 1 then 1 else -1 end as status,
    ENAME as title
    NULL  as icon,
    EMPNO as value,
    ENAME as tooltip,
    NULL  as link
    from EMP
    start with MGR is null
    connect by prior EMPNO = MGR
    order siblings by ENAME
    When following the example, I kept getting a javascript error when running the page and when viewing the source it was the ORA error No Data Found.
    Once I noticed the contradiction between point 1 of the Syntax help and the code example I tried using the columns in the Syntax help and the tree started working.
    Given the proximity of these two pieces of boilerplate text it'd be great if it could be made consistent.
    Hopefully this post will help anyone else who encounters this problem.

    And should look into this proper documentation http://docs.oracle.com/cd/E17556_01/doc/user.40/e15517/app_comp.htm#BABBCAEJ

  • Is there an example of populating a tabular form by selecting node in tree

    Hi, I am using apex 4.1. I have created a tree region, and would like to click on a child node and have it populate a tabular form. My tree attribute has the following query:
    select case when connect_by_isleaf = 1 then 0
    when level = 1 then 1
    else -1
    end as status,
    level,
    "NODE_LABEL" as title,
    null as icon,
    "SEQ_NBR" as value,
    null as tooltip,
    'f?p=&APP_ID.:900:'||:APP_SESSION||'::::P900_SELECTED_NODE:'||"SPECIES_QC_ID" as link
    from "#OWNER#"."SPECIES_TREE"
    where partner_id = :G_ISSUING_AGENCY and nvl("SPECIES_TREE"."DISPLAY_FLAG",'Y') <> 'N'
    start with "NODE_PARENT" is null
    connect by prior "SEQ_NBR" = "PID"
    order siblings by "NODE_PARENT"
    I am not certain how to set up the tabular form....are there any examples out there? thanks! Karen

    Thanks Tony,
    The application I have is a means of commercial seafood dealers recording what species they have purchased/landed. The page is designed with a tree listing all of the species and their sizes and then the tabular report of landings. The current application uses a collection to display the landings....I was trying to get rid of the collection and populate the table directly.
    thanks for getting back to me. Sounds like I will need to keep the collection....just looking for examples.

  • Tree in sidebar region

    I have a page (No Tabs With Sidebar) that should show a tree region with tree in the sidebar (REGION_POSITION_02) however it doesn't. If I move the tree region to another position (REGION_POSITION_03) then it displays OK.
    If I add a text field to the tree region then that displays OK wherever the region is placed.
    Funny thing is this worked in APEX 2.2 but not now I've moved to 3.0.
    Any ideas?

    I used theme 10 (Sand). I've tried one of the others as well (can't remember which) but this had the same problem. In the mean time I've moved away from sidebar + tree and have opted instead for horizontal DHTML list at the top of my screen (with customized template to automatically open on MouseOver event). This way navigation is only one click instead of two and at the same time it leaves more room on the page itself to show tabular data.
    I do remember that I did seem to be able to display the tree if I first closed my browser and called up the page again. My browser cache is cleared on shutdown so could this perhaps have an effect? B.t.w. I'm using Firefox 3.0 beta 4.
    Also my first post was slightly misleading as I've tested it since in both APEX 2.2 and 3.0 and both had the same problem.
    I can't show my application publically but I'll see if I can knock up something quickly on apex.oracle.com and post a link here. If it is a browser problem though I doubt whether I'll be able to reproduce it.

  • 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...)

  • TREE -  Built Only on Tables/Views Found in Application Schemas

    Problem
    When creating a "TREE" region using the wizard it prompts for a "schema name". The problem is that the table/view I would like to build a "TREE" on does not exist in the schemas listed by the wizard. Only the schemas that are associated with applications in the workspace are listed. It is not possible to base a "TREE" on a table/view that exists outside those schemas listed. This is a point of frustration because the parsing schema/user for my app has privileges to select from the table/view in the non-listed schema.
    Example
    Here is an example I tried. I want to create a tree of all breadcrumb entries (breadcrumb map) in a selected app. I used the data-dictionary view apex_application_bc_entries that is owned by FLOWS_020200. The view apex_application_bc_entries has a public synonym. My parsing schema user can select from that view.
    I selected create a TREE "Based on a SQL Query"
    SELECT aabe.breadcrumb_entry_id id
    ,aabe.parent_breadcrumb_id pid
    ,aabe.entry_label name
    ,aabe.url link
    ,null a1
    ,null a2
    FROM apex_application_bc_entries aabe
    WHERE application_id = :P20_APPLICATION_ID
    I'm using apex version build 2.2.0.00.32.
    Comment
    I understand a possible workaround would be to build a view of apex_application_bc_entries. That would be a "view of a view" and I prefer not to do that.
    Thoughts?
    Todd

    Have you duplicated the entire development environment on your laptop that exists on the other system, including data sources, databases or XML files, wherever the application is pulling the data from.
    Lawrence   *Adobe Community Expert*
       www.Cartweaver.com
       Complete Shopping Cart Application for
       Dreamweaver, available in ASP, PHP and CF

Maybe you are looking for

  • Interaction Center Sales with ERP Sales Order

    We are in the process of upgrading from CRM 4.0 sp 6 to CRM 2007.  We have been using the Web IC and Mobile sales for the last 4 years.  In our original CRM 4.0 implementation (which was developed by SAP) we were using the CRM Web IC to create orders

  • KB11 Quantity problem

    Hi, I want to know if the quantity populated in the BDC for KB11 (field mbgbtr ), is a sum of any quantities or is it directly from a document? If it is a sum, then what are the attributes of the line items so that it sums? Also, most importantly, ho

  • Dynamic history size of xy chart buffer

    Hi all.. My question is that when I wanna plot dynamic xy graph I should use xy chart. Till here everything is ok. But the option""history size"of xy chart buffer forces me to determine how many points of history data will be displayed. But  what i w

  • Problems converting access database to excel

    is there any method to convert access db to excel spreadsheet. currently i'm using a 'cheat' way of retrieving the results to a table and convert to excel using this: response.setContentType("application/vnd.ms-excel"); response.setHeader("Content-Di

  • Azure MFA Server activation fails

    Hi, I installed the Azure MFA on my ADFS server and I cant activate it. It fails with 'Activation fails' error. All the required ports are opened and I have also tried different internet connections. How can I troubleshoot this issue? Best, Kaido