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);

Similar Messages

  • Problem with trees(Duplication of the parent node in creation of  children)

    Hi guys i am experiencing a slight problem with the creation of trees.Here is a clear explanation of my program.I created a program that generates edges from a set of datapoints then use each and every edge that is generated to create multiple trees with the edge as the rootnode for each and every tree.Everything up to so far everything went well but the problem comes when i want the program to pick every single tree and traverse through the set of generated edges to create the children of a tree.What it does at the moment for each tree is returning the a duplication of the parent node as the child nodes and that is a problem.Can anyone related with this problem help.Your help will be appreciated.
    The code
    TreeNode class
    package SPO;
    import java.util.*;
    public class TreeNode
            Edge edge;
            TreeNode node;
         Vector childrens = new Vector();
            public TreeNode(Edge edge)
                    this.edge = edge;
            public synchronized  void insert(Edge edge)
                    if(edge.fromNode == this.edge.toNode)
                            if(node == null )
                                    node = new TreeNode(edge);
                                    childrens.add(node);
                            else
                        node.insert(edge);
                                    childrens.add(node);
    Tree class
    package SPO;
    import java.util.*;
    public class Tree
            TreeNode rootNode;
         public Tree()
                    rootNode = null;
            public Tree[]  createTrees(Vector initTrees,Vector edges)
                   Tree [] trees =  new Tree[initTrees.size()];
                   for(int c = 0;c < trees.length;c++)
                      trees[c] = (Tree)initTrees.elementAt(c);     
                   for(int i = 0;i < trees.length;i++)
                            for(int x = 0;x < edges.size();x++)
                                    Vector temp = (Vector)edges.elementAt(x);
                                    for(int y = 0;y < temp.size();y++)
                                           trees.insertNode((Edge)temp.elementAt(y));
    return trees;
    public void printTree(Tree tree)
    System.out.print("("+tree.rootNode.edge.fromNode.getObjName()+","+tree.rootNode.edge.toNode.getObjName()+")");
    Vector siblings = tree.rootNode.childrens;
    for(int i = 0; i < siblings.size();i++)
    TreeNode node = (TreeNode)siblings.elementAt(i);
    System.out.print("("+node.edge.fromNode.getObjName()+","+node.edge.toNode.getObjName()+")");
    System.out.println();
    public Vector initializeTrees(Vector edges)
    Vector trees = new Vector();
    for(int i = 0;i < edges.size();i++)
    Vector temp = (Vector)edges.elementAt(i);
    for(int j = 0;j < temp.size();j++)
    Tree tree = new Tree();
    tree.insertNode((Edge)temp.elementAt(j));
    trees.add(tree);
    return trees;
    public synchronized void insertNode(Edge edge)
    if(rootNode == null)
    rootNode = new TreeNode(edge);
    else
    rootNode.insert(edge);
    EdgeGenerator class
    package SPO;
    import java.util.*;
    import k_means.*;
    public class EdgeGenerator
         public EdgeGenerator()
    public Vector createEdges(Vector dataPoints)
    //OrderPair orderPair = new OrderPair();
    Vector edges = new Vector();
    for(int i = 0;i < dataPoints.size()-1 ;i++)
    Vector temp = new Vector();
    for(int j = i+1;j < dataPoints.size();j++)
    //Create an order of edges
    Edge edge = new Edge((DataPoint)dataPoints.elementAt(i),(DataPoint)dataPoints.elementAt(j));
    temp.add(edge);
    edges.add(temp);
    return edges;
    Edge class
    package SPO;
    import k_means.*;
    public class Edge
    public DataPoint toNode;
    public DataPoint fromNode;
    public Edge(DataPoint x,DataPoint y)
    if (x.getX() > y.getX())
    this.fromNode = x;
    this.toNode = y;
    else
    this.fromNode=y;
    this.toNode = x;
    Entry Point
    package SPO;
    import java.util.*;
    import k_means.*;
    public class Tester {
         public static void main(String[] args)
              Vector dataPoints = new Vector();
              dataPoints.add(new DataPoint(140, "Orange"));
              dataPoints.add(new DataPoint(114.2, "Lemmon"));
              dataPoints.add(new DataPoint(111.5, "Coke"));
              dataPoints.add(new DataPoint(104.6, "Pine apple"));
              dataPoints.add(new DataPoint(94.1, "W grape"));
              dataPoints.add(new DataPoint(85.2, "Appletizer"));
              dataPoints.add(new DataPoint(84.8, "R Grape"));
              dataPoints.add(new DataPoint(74.2, "Sprite"));
              dataPoints.add(new DataPoint(69.2, "Granadilla"));
              dataPoints.add(new DataPoint(59, "Strawbery"));
              dataPoints.add(new DataPoint(45.5, "Stone"));
              dataPoints.add(new DataPoint(36.3, "Yam"));
              dataPoints.add(new DataPoint(27, "Cocoa"));
              dataPoints.add(new DataPoint(13.8, "Pawpaw"));
    EdgeGenerator eg = new EdgeGenerator();
    Vector edges = eg.createEdges(dataPoints);
    Tree treeMaker = new Tree();
    Vector partialTrees = treeMaker.initializeTrees(edges);
    Tree [] trees = treeMaker.createTrees(partialTrees,edges);
    for(int i = 0;i < trees.length;i++)
    treeMaker.printTree(trees[i]);
    The program output
    Each and every "@" symbol represents the start of a tree
    @(Orange,Lemmon)(Lemmon,Coke)(Lemmon,Coke)(Lemmon,Coke)(Lemmon,Coke)(Lemmon,Coke)(Lemmon,Coke)(Lemmon,Coke)(Lemmon,Coke)(Lemmon,Coke)(Lemmon,Coke)(Lemmon,Coke)(Lemmon,Coke)
    @(Orange,Coke)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)
    @(Orange,Pine apple)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)
    @(Orange,W grape)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)
    @(Orange,Appletizer)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)
    @(Orange,R Grape)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)
    @(Orange,Sprite)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)
    @(Orange,Granadilla)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)
    @(Orange,Strawbery)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)
    @(Orange,Stone)(Stone,Yam)(Stone,Yam)(Stone,Yam)
    @(Orange,Yam)(Yam,Cocoa)(Yam,Cocoa)
    @(Orange,Cocoa)(Cocoa,Pawpaw)
    @(Orange,Pawpaw)
    @(Lemmon,Coke)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)(Coke,Pine apple)
    @(Lemmon,Pine apple)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)
    @(Lemmon,W grape)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)
    @(Lemmon,Appletizer)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)
    @(Lemmon,R Grape)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)
    @(Lemmon,Sprite)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)
    @(Lemmon,Granadilla)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)
    @(Lemmon,Strawbery)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)
    @(Lemmon,Stone)(Stone,Yam)(Stone,Yam)(Stone,Yam)
    @(Lemmon,Yam)(Yam,Cocoa)(Yam,Cocoa)
    @(Lemmon,Cocoa)(Cocoa,Pawpaw)
    @(Lemmon,Pawpaw)
    @(Coke,Pine apple)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)(Pine apple,W grape)
    @(Coke,W grape)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)
    @(Coke,Appletizer)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)
    @(Coke,R Grape)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)
    @(Coke,Sprite)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)
    @(Coke,Granadilla)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)
    @(Coke,Strawbery)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)
    @(Coke,Stone)(Stone,Yam)(Stone,Yam)(Stone,Yam)
    @(Coke,Yam)(Yam,Cocoa)(Yam,Cocoa)
    @(Coke,Cocoa)(Cocoa,Pawpaw)
    @(Coke,Pawpaw)
    @(Pine apple,W grape)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)(W grape,Appletizer)
    @(Pine apple,Appletizer)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)
    @(Pine apple,R Grape)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)
    @(Pine apple,Sprite)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)
    @(Pine apple,Granadilla)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)
    @(Pine apple,Strawbery)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)
    @(Pine apple,Stone)(Stone,Yam)(Stone,Yam)(Stone,Yam)
    @(Pine apple,Yam)(Yam,Cocoa)(Yam,Cocoa)
    @(Pine apple,Cocoa)(Cocoa,Pawpaw)
    @(Pine apple,Pawpaw)
    @(W grape,Appletizer)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)(Appletizer,R Grape)
    @(W grape,R Grape)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)
    @(W grape,Sprite)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)
    @(W grape,Granadilla)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)
    @(W grape,Strawbery)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)
    @(W grape,Stone)(Stone,Yam)(Stone,Yam)(Stone,Yam)
    @(W grape,Yam)(Yam,Cocoa)(Yam,Cocoa)
    @(W grape,Cocoa)(Cocoa,Pawpaw)
    @(W grape,Pawpaw)
    @(Appletizer,R Grape)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)(R Grape,Sprite)
    @(Appletizer,Sprite)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)
    @(Appletizer,Granadilla)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)
    @(Appletizer,Strawbery)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)
    @(Appletizer,Stone)(Stone,Yam)(Stone,Yam)(Stone,Yam)
    @(Appletizer,Yam)(Yam,Cocoa)(Yam,Cocoa)
    @(Appletizer,Cocoa)(Cocoa,Pawpaw)
    @(Appletizer,Pawpaw)
    @(R Grape,Sprite)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)(Sprite,Granadilla)
    @(R Grape,Granadilla)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)
    @(R Grape,Strawbery)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)
    @(R Grape,Stone)(Stone,Yam)(Stone,Yam)(Stone,Yam)
    @(R Grape,Yam)(Yam,Cocoa)(Yam,Cocoa)
    @(R Grape,Cocoa)(Cocoa,Pawpaw)
    @(R Grape,Pawpaw)
    @(Sprite,Granadilla)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)(Granadilla,Strawbery)
    @(Sprite,Strawbery)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)
    @(Sprite,Stone)(Stone,Yam)(Stone,Yam)(Stone,Yam)
    @(Sprite,Yam)(Yam,Cocoa)(Yam,Cocoa)
    @(Sprite,Cocoa)(Cocoa,Pawpaw)
    @(Sprite,Pawpaw)
    @(Granadilla,Strawbery)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)(Strawbery,Stone)
    @(Granadilla,Stone)(Stone,Yam)(Stone,Yam)(Stone,Yam)
    @(Granadilla,Yam)(Yam,Cocoa)(Yam,Cocoa)
    @(Granadilla,Cocoa)(Cocoa,Pawpaw)
    @(Granadilla,Pawpaw)
    @(Strawbery,Stone)(Stone,Yam)(Stone,Yam)(Stone,Yam)
    @(Strawbery,Yam)(Yam,Cocoa)(Yam,Cocoa)
    @(Strawbery,Cocoa)(Cocoa,Pawpaw)
    @(Strawbery,Pawpaw)
    @(Stone,Yam)(Yam,Cocoa)(Yam,Cocoa)
    @(Stone,Cocoa)(Cocoa,Pawpaw)
    @(Stone,Pawpaw)
    @(Yam,Cocoa)(Cocoa,Pawpaw)
    @(Yam,Pawpaw)
    @(Cocoa,Pawpaw)

    Your program description makes no sense. What exactly is it supposed to do?
    Your errors make no sense. What is it doing wrong?
    Your program output makes no sense. Look up pre-order, in-order, and post-order notation for representing trees. Pick one of those that you think would be best. I would go with pre-order. Because what you are doing isn't understandable.
    By the way, I think your concept of a tree is flawed. A node in a tree has 3 things. it has a reference to its parent, it has references to any of its children, and it has some key value that represents the node (if each node were represented by numbers, the value would be an integer or something). In the case of the root, its reference to its parent is null. I don't know what you are doing with your tree, but it is highly confusing.

  • Problem with tree view

    Hello and good morning,
    i´ve got a problem with a tree view in one of our web dynpro applications.
    The tree view act´s as a menu. For example:
    the highest element is: personal
    If you open personal you see:
    recruiting
    payment
    and so on...
    Our Problem is...
    You can open the tree element by clicking on the little box left from the tree-element text.But we want that the tree-element is also "line-sensitieve". This means, the next elements should not only appear by clicking the box, also by clicking simply the line.
    Is this possible.
    PS: Sorry for this bad application, but i don´t know how to explain it better

    method ONACTIONTOGGLE .
      data:
        Elem_Context                        type ref to If_Wd_Context_Element,
        Stru_Context                        type If_Menu_Tree=>Element_Context ,
        Item_IS_OPEN                        like Stru_Context-IS_OPEN.
    data parent_key type string.
        data children_loaded type wdy_boolean.
    data x_node type ref to IF_WD_CONTEXT_NODE.
    * get context via lead selection
      Elem_Context = wd_Context->get_Element(  ).
    * get single attribute
      Elem_Context->get_Attribute(
        exporting
          Name =  `IS_OPEN`
        importing
          Value = Item_Is_Open ).
      if Item_Is_Open = abap_true.
        Item_Is_Open = abap_false.
      else.
        Item_Is_Open = abap_true.
      endif.
      Elem_Context->set_Attribute(
      exporting
        Name =  `IS_OPEN`
        Value = Item_Is_Open ).
    endmethod.

  • Interesting Problem with a video

    I have an mp4 video on my iPod. It plays fine on the computer, but when i play it on my iPod, about 2 minutes in it restarts the video. It's just this video, and if i Fast Forward past this part it works just fine. Any ideas?

    I think this is a problem with iTunes itself, maybe not be allocated enough processing power.
    I've got a Mac Mini 1.42 and the same thing happens, especially on longer videos.

  • Interesting problems with the 1.2.2 Debugger and String.substring(int)

    Guys/Gals,
    Here's an interesting problem to ponder...
    I define the following values in my class:
    private String descriptorClassName = null;
    private String userObjectClassName = null;
    private String name = null;
    I run the following piece of code as part of the constructor:
    descriptorClassName = this.getClass().getName();
    userObjectClassName = descriptorClassName.substring(0, descriptorClassName.indexOf("Descriptor"));
    name = userObjectClassName.substring(userObjectClassName.lastIndexOf(".")+1);
    The first line assigns the value of "com.foo.user.UserDataDescriptor" to descriptorClassName.
    The second line assigns the value of "com.foo.user.UserData" to userObjectClassName.
    The third line assigns the value of "UserData" to name.
    As I step through the code, I see the first two values being set, and yet the third value for name is reported by the debugger as:
    "name = null".
    I added a call to log4j, which reports that that value of name has been correctly set!
    This seems to be a result of the String.substing(int) call, as the call to Sring(substring(int, int) is fine.
    Has anyone come accross this one before?
    Does anyone have any workarounds other than:
    name = userObjectClassName.substring(userObjectClassName.lastIndexOf(".")+1, userObjectClassName.length());
    Cheers all.
    Regards,
    Chris.

    I've been trying to reproduce this problem and it always works perfectly. The debugger tells me that name = "UserData". I'm using JDev 3.2.2 and my project is using JDK1.2.2_JDeveloper. Here's the exact source code I'm trying.
    package com.foo.user;
    public class UserDataDescriptor {
    private String descriptorClassName = null;
    private String userObjectClassName = null;
    private String name = null;
    public UserDataDescriptor() {
    descriptorClassName = this.getClass().getName();
    userObjectClassName = descriptorClassName.substring(0, descriptorClassName.indexOf("Descriptor"));
    name = userObjectClassName.substring(userObjectClassName.lastIndexOf(".")+1);
    System.out.println("end of constructor");
    public static void main(String[] args) {
    UserDataDescriptor userDataDescriptor = new UserDataDescriptor();
    null

  • [Win/CS3] Problem with tree view nodes display In Release Version of InDesign

    b [Win/CS3]
    Hi All,
    I am Facing a problem from last few days.I have a dialog on which i have a treeview ListBox.I am filling this listBox dynamically.On a Button click Event.
    My requirement is to show Some text value on the node and Index value on the back end.So When i select String1 the index1 should be Selected.
    b This Listbox is working fine ON Debug Version. But Crashing On Release Version.That seems Strange to me..........?????????
    b in DialogObserver::Update on button click event
    NodeID node = IDCGridNodeID::Create(IndexX);
    treeMgr->NodeAdded(node);
    b and in TreeviewMgr::ApplyDataToWidget
    TreeNodePtr<IDCGridNodeID> nodeID(node);
    PMString IndexNo= nodeID->GetName();
    I am going to database and retrieving string value according to that
    IndexNo.
    WCHAR Buf[200];// this contains value retrieve from database
    Then i am converting WCHAR[] to CHAR[] BY using
    size_t origsize = wcslen(Buf) + 1 ;
    const size_t newsize = 100;
    size_t convertedChars = 0;
    char nstring[newsize];
    wcstombs_s (&convertedChars, nstring, origsize, buf, _TRUNCATE);
    PMString StringToDisplay(nstring);
    //Till here its working fine
    But when i am setting this value as Node name
    style.Translate();
    setNodeName( widgetList, StringToDisplay, kIDCTVTextWidgetID );
    and function return kTrue; statement executed The application is crashing.
    With error showing
    b INdesign Encountered a problem Needs to close.
    I Am not able to find out why this is not working on Release while it is working fine on debug version..???????????????????
    Is I am missing or Made some changes For release version..????
    Thanks,

    Hi Michael,
    Thanks for your reply.
    The lines
    NodeID node = IDCGridNodeID::Create(IndexX);
    treeMgr->NodeAdded(node);
    are working fine for Both Debug N Release version.The Application Is crashing In tree view manager class as i explained.
    while it works fine without having even a single warning in debug version.
    I read the document and i find out if i want to add node in treeview i have to call
    treeMgr->NodeAdded(node);
    which will call manager
    b and in TreeviewMgr::ApplyDataToWidget
    i am getting my node name as
    TreeNodePtr<IDCGridNodeID> nodeID(node);
    PMString IndexNo= nodeID->GetName();
    I don't think that something is wrong in this but i am not sure becoz i am new in indesign development.
    for adding nodes i referred the SDK examples.I found the same code for adding.

  • Problem with tree

    Hello,
    first I want to say, that I have read the how-to for tree creation but I still have some problems.
    I have a table with YEAR, MONTH, LOCATION, DATA
    example entry:
    2002, 1, NY, test
    2002, 1, NY, test2
    2002, 2, NY, test
    2002, 2, LA, test
    2002, 3, LA, test
    2002, 3, LA, test1
    2003, 1, NY, test
    etc.
    Now I want to have a tree displaying me the following ...
    2002
    1
    NY2
    NY
    LA3
    LA
    2003
    1
    NY
    If I click on '2003>1>NY' (for example) I want to be shown all datas for the 2003,where month = 1 and location = 'NY'.
    Is this possible to display? I didn' t get the start point created and also the month and locations are not shown.
    Please help ...
    thanks
    Message was edited by:
    chrissy

    Hi Earl,
    thanks that anybody wants to help me, because I'm going crazy with the tree ...
    So normally I have only one table (TABLE_MAIN) with fields:
    YEAR
    MONTH
    LOCATION
    DATA
    Now I want to have a tree looking like this
    root
    YEAR
    MONTH
    LOCATION
    with click of Location, all data of the location (also year and month should be observed, if possible) should be shown.
    After this I have created three views:
    VIEW_YEAR: ID_YEAR, YEAR_NAME
    VIEW_MONTH: ID_MONTH, YEAR_ID, MONTH_NAME
    VIEW_LOC: ID_LOC, MONTH_ID, LOC_NAME
    But I never get a UNION, thats shows me the result I wanted. Please, please help me.
    I think another thing will be to filter my data by click on location for year and month also. Is that possible?
    Thanks for your help
    Chrissy

  • Problems with Tree View

    I am using Forms 6 to display a hierarchical tree strucure in a departmental application. I am able to use it for displaying the hierarchy but unable to do anything programatically with the tree. Could somebody help me please, with some insight - which would be much appreciated. Thanks in advance.

    Hi Sumer!
    U can do any thing with the tree programatically.
    Tell me which tree u r using if it is activex provided by forms.
    U can find all the methods and functions in the forms help search for Heirarchical trees topic.
    Even u r facing any problem write me I will get u the solution.
    Mayank Sharma
    [email protected]

  • Problems with sound/regional setings

    Hi,
    I am from Lithuania. I have MSI TV Anywhere Master card. OS is Windows XP Pro SP2. I have installed MSI drivers and software from CD. First problem is sound. To be correct there is no sound only some noise. Video is OK. I get sound when I change in Properties->TV->Country or Region from Lithuania to Kazakhstan... But then I have to manualy change Properties->Device->Standard from SECAM_D (corect for Kazakhstan) to PAL_B (corect for Lithuania).
    It is quiet annyoning.
    What I have to try to correct this situation? It is interested that in any other TV software (Winamp, ChrisTV and others) there is no sound only noise to.
    How can I correct this?

    if you have a TV@nywhere Master, then download the drivers in the sticky thread at the top
    uninstall your old drivers first, then RESTART your pc before installing the new ones

  • Might be Name Resolving Problem with Tree-Name

    I have no clue, if this the correct forum, but since the biggest changes happened in our dns-dhcp-setup before the problem started, I will give it a chance here.
    We have a Netware-6.0-sp5-Server running dhcpsrvr.nlm and named.nlm. We moved the whole lan for some future changes from 192.168.x.x to 172.16.x.x and since then have some W2K-workstations with the Novell-Client have problems to login to the server.
    After booting the workstation from the advanced options of the Novell-Client you can browse to tree, where the single tree is shown. But when trying to browse the context one received the message "Cannot access tree.". Same happens when trying to browse to the server. You can browse context and server, though, when the ip-address is entered in the tree-field. When login is started the error-message pops up: "The tree or server cannot be found. Choose a different tree or server." When trying after a few minutes (did not stop, make it 5 to 10 minutes) login and browsing works fine.
    In dhcp the options 6, 78, 79 (mandatory), 85, 86, 87 are populated with the correct values. "display slpda" on the server-console looks fine and fits with "slpinfo /all" on the workstation-console. After digging through the forums and the knowledgebase I have some indications that the name-resolution of the tree might not work.
    When looking through the named-debug-screen there scroll some messages like looking for "context.treename.domainname.tld" i.e., which does not look perfect to me either.
    Any help or hint is highly appreciated.
    Sincerely
    Karl

    The services list a "service:bindery.novell:///servername".
    Any idea about this or suggestion how to test it out any further?
    Sincerely
    Karl
    Originally Posted by mrosen
    On 29.05.2012 22:56, Karl Kunze wrote:
    >
    > display slpda displays:
    >
    > SLP LOOPBACK : v2 : ACTIVE : DEFAULT : IANA : 10 : 0ms
    >
    > display slp services does display some entries like i.e.:
    >
    > service:nwserver.novell:///servername
    > service:ndap.novell:///treename.
    > service:timesync.novell://serverip
    >
    > There are 12 services listet. Do you mean any specific?
    Well, you need to know if those 12 services contain all you need, e.g
    all servers. Did it list any "bindery.novell" services? Those are the
    crucial ones.
    CU,
    Massimo Rosen
    Novell Knowledge Partner
    No emails please!
    Untitled Document

  • Interesting problem with rendering clips into B&W

    I returned to working on a project after a month hiatus. Half of my project, the clips have been successfully rendered to b&w. But beginning last night, I could no longer do that rendering. It would either make the clip all black, or as for tonight, no apparent difference. Now last night an interesting iMovie 06 window popped up while I was working that asked if I wanted to continue with the new settings or the original. Having never seen this window before, I clicked on the new settings option without fully thinking it through. I wonder if that is my problem.
    I am using the imovie video efx as well as the Slick software, both of which I have absolutely no trouble in the past. Other options seem to work just fine.
    Does anyone have any idea as to what's going on? Do I need to save the project and re-load the iMovie from disk?
    One other note. From first working on the project to now, the project has been moved to drive storage unit and I am working from that unit. Shouldn't make any difference, but then again, who knows with machines...
    thanks in advance.
    ciao
    Jeffrey

    when you create a new sequence (Cmd-N), you have a bunch of choices for formats. You can't change one you've already created in FCE. Choose the one that best matches your video.
    Even if you can't match it exactly, (because FCE is limited in the types of sequences you can create) usually it is not a problem as long as you have Real Time processing on and a reasonable mac that can handle converting formats in realtime.
    In FC Pro you can make a sequence with whatever settings you want.

  • Problem with trees in MiniWas

    Hello all,
    I'm trying to build two tree in a same page.
    The problem is that all  menus in the first tree are displayed again in the second tree before the new menus.
    Has anyone met the problem and solved it ?
    Thnks a lot in advance !
    Sebastien

    OK, here is my code:
    <!-- CASE "Liens généraux" -->
    <htmlb:tray id                = "liens"
                width             = "100%"
                design            = "borderless"
                hasContentPadding = "false"
                hasMargin         = "false"
                title             = "Liens" >
    <htmlb:tree id        = "tree1"
                 height    = "100%"
                 toggle    = "false"
                 showTitle = "false"
                 width     = "100%" >
    <htmlb:treeNode id     = "tree1_node1"
                     text   = "Liens"
                     isOpen = " " >
    <htmlb:treeNode id     = "link1"
                     link   = "http://www.google.fr"
                     target = "main"
                     text   = "Google" />
    <htmlb:treeNode id     = "link2"
                     link   = "http://www.mappy.fr"
                     target = "main"
                     text   = "Mappy" />
    <htmlb:treeNode id     = "link3"
                     link   = "http://www.afp.fr"
                     target = "main"
                     text   = "A F P" />
    </htmlb:treeNode>
    <htmlb:treeNode id     = "tree1_node2"
                     text   = "Liens SAP"
                     isOpen = " " >
    <htmlb:treeNode id     = "link4"
                     link   = "http://service.sap.com"
                     target = "main"
                     text   = "SAP Service MarketPlace" />
    <htmlb:treeNode id     = "link5"
                     link   = "http://www.sdn.sap.com"
                     target = "main"
                     text   = "SAP Developer Network" />
    <htmlb:treeNode id     = "link6"
                     link   = "http://help.sap.com/"
                     target = "main"
                     text   = "SAP Help Portal" />
    </htmlb:treeNode>
    </htmlb:tree>
    </htmlb:tray>
    <!-- FIN DE LA CASE "Liens généraux" -->
    <!-- CASE "Activités" -->
    <htmlb:tray id                = "activites"
                width             = "100%"
                design            = "borderless"
                hasContentPadding = "false"
                hasMargin         = "false"
                title             = "Activités" >
    <htmlb:tree id        = "tree2"
                 height    = "100%"
                 toggle    = "false"
                 showTitle = "false"
                 width     = "100%" >
    <htmlb:treeNode id     = "tree2_node1"
                     text   = "Fonctions"
                     isOpen = "X" >
    <htmlb:treeNode id     = "link7"
                     link   = "page_1.htm"
                     target = "main"
                     text   = "Réceptionner" />
    <htmlb:treeNode id     = "link8"
                     link   = "page_2.htm"
                     target = "main"
                     text   = "Catalogue des produits" />
    <htmlb:treeNode id     = "link9"
                     link   = "page_3.htm"
                     target = "main"
                     text   = "Suivi des livraisons" />
    </htmlb:treeNode>
    </htmlb:tree>
    </htmlb:tray>
    <!-- FIN DE LA CASE "Activités" -->
    THANKS TO ALL !
    Cheers
    Sebastien

  • Problem with tree view alignment

    http://tinypic.com/r/34o1wjl/6
    please view the link !!
    i want the tree for the Finished product just below the Raw Material, where as i am not able to achieve it. The raw material gets place in a separate box and finished in another.
    the code for the above is :
    public VBox addVBox()
    VBox vbox = new VBox();
    vbox.setPadding(new Insets(10)); // Set all sides to 10
    vbox.setSpacing(8); // Gap between nodes
    TreeItem<String> inventoryRM = new TreeItem<String> ("Raw Materials");
    inventoryRM.setExpanded(false);
    TreeItem<String> itemRM1 = new TreeItem<String> ("Add Raw Material");
    inventoryRM.getChildren().add(itemRM1);
    TreeItem<String> itemRM2 = new TreeItem<String> ("Edit Raw Material");
    inventoryRM.getChildren().add(itemRM2);
    TreeItem<String> itemRM3 = new TreeItem<String> ("Delete Raw Material");
    inventoryRM.getChildren().add(itemRM3);
    TreeItem<String> inventoryFinished = new TreeItem<String> ("Finished Product");
    inventoryFinished.setExpanded(false);
    TreeItem<String> itemF1 = new TreeItem<String> ("Add");
    inventoryFinished.getChildren().add(itemF1);
    TreeView<String> treeRM = new TreeView<String> (inventoryRM);
    TreeView<String> treeFinished = new TreeView<String> (inventoryFinished);
    vbox.getChildren().addAll(treeRM,treeFinished);
    return vbox;
    }

    If I understand correctly, you're looking for a single tree with two top-level nodes "Raw Materials" and "Finished Product".
    You can achieve this with
    public VBox addVBox()
      VBox vbox = new VBox();
      vbox.setPadding(new Insets(10)); // Set all sides to 10
      vbox.setSpacing(8); // Gap between nodes
      TreeItem<String> inventoryRM = new TreeItem<String> ("Raw Materials");
      inventoryRM.setExpanded(false);
      TreeItem<String> itemRM1 = new TreeItem<String> ("Add Raw Material");
      inventoryRM.getChildren().add(itemRM1);
      TreeItem<String> itemRM2 = new TreeItem<String> ("Edit Raw Material");
      inventoryRM.getChildren().add(itemRM2);
      TreeItem<String> itemRM3 = new TreeItem<String> ("Delete Raw Material");
      inventoryRM.getChildren().add(itemRM3);
      TreeItem<String> inventoryFinished = new TreeItem<String> ("Finished Product");
      inventoryFinished.setExpanded(false);
      TreeItem<String> itemF1 = new TreeItem<String> ("Add");
      inventoryFinished.getChildren().add(itemF1);
      TreeItem<String> rootNode = new TreeItem<String>("");
      rootNode.getChildren().addAll(inventoryRM, inventoryFinished);
      TreeView<String> tree = new TreeView<String> (rootNode);
      tree.setShowRoot(false);
      vbox.getChildren().addAll(tree);
      return vbox;
    }

  • Problems with ADF regions.

    Hi,
    I have a simple project with 1 jspx page and one jsff page. The jsff page is encapsulated in a taskflow and dropped on the jspx page as a region. However when running the jspx i recieve the follwing error:
    java.lang.IllegalStateException: The expression "#{bindings.OnlineProspectusFlow1.regionModel}" (that was specified for the RegionModel "value" attribute of the region component with id "Onlin1") evaluated to null.
    This is typically due to an error in the configuration of the objects referenced by this expression.
    If it helps, the expression "#{bindings.OnlineProspectusFlow1}" evaluates to "null".
    If it helps, the expression "#{bindings}" evaluates to "null".  Now using an empty RegionModel instead.
         at oracle.adf.view.rich.component.fragment.UIXRegion.getRegionModel(UIXRegion.java:437)
         at oracle.adfinternal.view.faces.taglib.region.RegionTag.doStartTag(RegionTag.java:106)
         at jsp_servlet._page.__index_jspx._jspx___tag13(__index_jspx.java:717)the jsff page has no content but i am recieving the same error every time i re create the project.
    Thanks,
    Dean

    Thanks, but i am still recieving the same error everytime i consume a taskflow as a region. i have checked the page def files and databindings.cpx and everything looks in order.
    Does anyone have any sugestions?
    Thanks
    Dean

  • PPR problem with dynamic regions

    Hello,
    I have an application which starts by displaying a two buttons, each of which is supposed to display a particular bounded task flow in a dynamic region. The first task flow has a .jsff which has a table that displays records in a richtable... no problem there. The second task flow displays records (from a different table in the database) in a PanelFormLayout using inputtext's.
    Now the problem.
    When the first task flow is set to display by default when the application is run, the table works as it should. I click the button to switch the dynamic region to the second task flow and that is fine, but any navigation button I click gives me the following error...
    SEVERE: Server Exception during PPR, #4
    javax.el.PropertyNotFoundException: Target Unreachable, 'Col2Id' returned null
    Now, if I setup this second task flow to display by default, it works as it should.
    The actionlistener I use to switch the tasks in the dynamic region is as follows
      public void testListener1(ActionEvent actionEvent) {
        String varTask;
        //the two buttons have btn1 and btn2 as the id's, so this returns '1' or '2' respectively to generate the correct taskFlowId below
        varTask = actionEvent.getComponent().getId().substring(3);
        // this builds the task flow id based on the value of the variable determined above
        taskFlowId = "/WEB-INF/tasks/task-flow-" + varTask + ".xml#task-flow-" + varTask;
    }and it does switch the task flow to the correct one.
    The .jsff for the second task flow is as follows
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <af:panelBox text="PanelBox1">
        <f:facet name="toolbar"/>
        <af:panelFormLayout>
          <af:inputText value="#{bindings.Col2Id.inputValue}"
                        label="#{bindings.Col2Id.hints.label}"
                        required="#{bindings.Col2Id.hints.mandatory}"
                        columns="#{bindings.Col2Id.hints.displayWidth}"
                        maximumLength="#{bindings.Col2Id.hints.precision}"
                        shortDesc="#{bindings.Col2Id.hints.tooltip}"
                        id="textCol2Id">
            <f:validator binding="#{bindings.Col2Id.validator}"/>
          </af:inputText>
          <af:inputText value="#{bindings.Col2Desc.inputValue}"
                        label="#{bindings.Col2Desc.hints.label}"
                        required="#{bindings.Col2Desc.hints.mandatory}"
                        columns="#{bindings.Col2Desc.hints.displayWidth}"
                        maximumLength="#{bindings.Col2Desc.hints.precision}"
                        shortDesc="#{bindings.Col2Desc.hints.tooltip}"
                        id="textCol2Desc">
            <f:validator binding="#{bindings.Col2Desc.validator}"/>
          </af:inputText>
          <f:facet name="footer">
            <af:panelGroupLayout layout="vertical">
              <af:panelGroupLayout layout="horizontal">
                <af:commandButton actionListener="#{bindings.First.execute}"
                                  text="First" disabled="#{!bindings.First.enabled}"
                                  partialSubmit="true"/>
                <af:commandButton actionListener="#{bindings.Previous.execute}"
                                  text="Previous"
                                  disabled="#{!bindings.Previous.enabled}"
                                  partialSubmit="true"/>
                <af:commandButton actionListener="#{bindings.Next.execute}"
                                  text="Next" disabled="#{!bindings.Next.enabled}"
                                  partialSubmit="true"/>
                <af:commandButton actionListener="#{bindings.Last.execute}"
                                  text="Last" disabled="#{!bindings.Last.enabled}"
                                  partialSubmit="true"/>
              </af:panelGroupLayout>
              <af:commandButton text="Submit"/>
            </af:panelGroupLayout>
          </f:facet>
        </af:panelFormLayout>
      </af:panelBox>
    </jsp:root>the adfc_config.xml is as follows
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <view id="start">
        <page>/start.jspx</page>
      </view>
      <managed-bean>
        <managed-bean-name>backing_start</managed-bean-name>
        <managed-bean-class>programs.view.backing.Start</managed-bean-class>
        <managed-bean-scope>backingBean</managed-bean-scope>
        <!--oracle-jdev-comment:managed-bean-jsp-link:1start.jspx-->
      </managed-bean>
    </adfc-config>Does anyone have an idea what gets missing or confused at the PPR level when I switch task flows in a dynamic region in this manner, and how can it be corrected.
    Thanks

    Hi Frank,
    When I try changing the managed bean scope from backingbean to pageflow (I also had to change the binding in the PageDef.xml file as well), it displays a blank screen when starting and the server log file has the following error message.
    <Apr 27, 2009 8:28:35 AM CDT> <Error> <HTTP> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@164d2b3 - appName: 'FcnTestApp1', name: 'FcnTestApp1-ViewController-context-root', context-path: '/FcnTestApp1-ViewController-context-root', spec-version: '2.5', request: weblogic.servlet.internal.ServletRequestImpl@1c5c9ca[
    ]] Root cause of ServletException.
    javax.el.PropertyNotFoundException: Target Unreachable, 'backing_start' returned null
         at com.sun.el.parser.AstValue.getTarget(AstValue.java:88)
         at com.sun.el.parser.AstValue.setValue(AstValue.java:133)
         at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:255)
         at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:248)
         at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)
         Truncated. see log file for complete stacktrace
    >
    Any idea what might cause this?
    Thanks

Maybe you are looking for

  • Rajesh/Sadhu/RobertoUrgent :- Open Sale Order Value not getting Reduced?

    Hi,    Upon Executing FD33 and clicking the status view for a Customer say XYZ , and then choosing EXTRAS-Open Sale Order . Say the value of open sale orders being shown is 75000. Even after closing the open sale orders (By Selecting VA05 and Putting

  • Setting dynamic default values in a list/menu

    To save problems with inserting dates into a Mysql database, I have split the input fields on the file insert form into three drop down lists containing the day, month and year. In order to make it easy for users, I wish to take the current date, spl

  • Adobe Media Encoder CC 2014.0.1 (8.0.1) update is now available

    Today, the Adobe Media Encoder CC 2014.0.1 (8.0.1) update was released. This update addresses several bugs, adds support for 4K in H.264, new and simplified presets for YouTube, and other features. Read about the details of the update here: http://bl

  • GTS Block when running SPL Address simualtion does not show blocked

    When running a GTS SPL Screening for general address, transaction /SAPSLL/SPL_CHSS3; the simulation does not show a block for Transavia; however if I change the name to Transavia Network it will block.  I need this to block on the name Transavia.  I

  • Modbus TCP/IP Help

    Hello Labviewers, So I just hooked up a couple of Honeywell UDA2182 controllers to my computer using an ethernet connection.  I've established communications using modbus (specifically the Datalogging and Supervisory Control module's Modbus I/O serve