Node Information
Hi,
Is there a way to get information on a node in a tree.
I have a tree and when I click on a node I want to get the node and tree information.
Thanks,
Marc.
The problem is that the PARENT NODE is in another table !
Let me EXPLAIN (or re-explain) the scenario:
A template contains a COMPONENT (top Level). This is represented in the TEMPLATE_CONTENT table:
CREATE TABLE TEMPLATE_CONTENT
TEMPLATE_CONTENT_ID NUMBER(10) NOT NULL,
TEMPLATE_COMPONENT_ID NUMBER(10) NOT NULL,
TEMPLATE_ID NUMBER(10) NOT NULL,
EFFECTIVE_DATE DATE NOT NULL,
DATE_CREATED DATE NOT NULL,
USER_CREATED NUMBER(10) NOT NULL,
EXPIRY_DATE DATE,
DATE_UPDATED DATE,
USER_UPDATED NUMBER(10)
)INSERT INTO TEMPLATE_CONTENT ( TEMPLATE_CONTENT_ID, TEMPLATE_COMPONENT_ID, TEMPLATE_ID,
EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE, DATE_UPDATED,
USER_UPDATED ) VALUES (
20, 195, 1, TO_Date( '06/04/2007 09:29:37 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:29:37 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_CONTENT ( TEMPLATE_CONTENT_ID, TEMPLATE_COMPONENT_ID, TEMPLATE_ID,
EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE, DATE_UPDATED,
USER_UPDATED ) VALUES (
21, 197, 1, TO_Date( '06/04/2007 09:29:37 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:29:37 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
COMMIT;
The COMPONENT can also contain NESTED Components, represented in the TEMPLATE_COMPONENT_NESTING table:
CREATE TABLE TEMPLATE_COMPONENT_NESTING
TEMPLATE_COMPONENT_NESTING_ID NUMBER(10) NOT NULL,
TEMPLATE_COMPONENT_ID_IN NUMBER(10),
TEMPLATE_COMPONENT_ID_CONTAINS NUMBER(10),
EFFECTIVE_DATE DATE NOT NULL,
DATE_CREATED DATE NOT NULL,
USER_CREATED NUMBER(10) NOT NULL,
EXPIRY_DATE DATE,
DATE_UPDATED DATE,
USER_UPDATED NUMBER(10)
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
26, 85, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
27, 89, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
36, 93, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
34, 97, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
38, 109, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
39, 113, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
22, 117, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
37, 125, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
25, 129, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
35, 133, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
23, 198, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
24, 199, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
41, 238, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
40, 257, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
42, 258, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
285, 259, 197, TO_Date( '08/29/2007 02:46:51 PM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '08/29/2007 02:46:51 PM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
43, 262, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '08/29/2007 03:01:24 PM', 'MM/DD/YYYY HH:MI:SS AM')
, 2);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
29, 269, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '08/29/2007 03:01:11 PM', 'MM/DD/YYYY HH:MI:SS AM')
, 2);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
31, 271, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '08/29/2007 03:01:11 PM', 'MM/DD/YYYY HH:MI:SS AM')
, 2);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
33, 273, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '08/29/2007 03:01:11 PM', 'MM/DD/YYYY HH:MI:SS AM')
, 2);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
44, 275, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
48, 277, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
52, 279, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
46, 281, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '08/29/2007 03:01:39 PM', 'MM/DD/YYYY HH:MI:SS AM')
, 2);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
50, 283, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '08/29/2007 03:01:51 PM', 'MM/DD/YYYY HH:MI:SS AM')
, 2);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
54, 285, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '08/29/2007 03:02:01 PM', 'MM/DD/YYYY HH:MI:SS AM')
, 2);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
47, 287, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '08/29/2007 03:01:39 PM', 'MM/DD/YYYY HH:MI:SS AM')
, 2);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
51, 289, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '08/29/2007 03:01:51 PM', 'MM/DD/YYYY HH:MI:SS AM')
, 2);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
55, 291, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '08/29/2007 03:02:01 PM', 'MM/DD/YYYY HH:MI:SS AM')
, 2);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
45, 293, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
49, 295, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
53, 297, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
56, 299, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
57, 301, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
58, 303, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
59, 305, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '08/29/2007 03:02:14 PM', 'MM/DD/YYYY HH:MI:SS AM')
, 2);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
60, 307, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '08/29/2007 03:02:14 PM', 'MM/DD/YYYY HH:MI:SS AM')
, 2);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
28, 315, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '08/29/2007 03:01:11 PM', 'MM/DD/YYYY HH:MI:SS AM')
, 2);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
30, 317, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '08/29/2007 03:01:11 PM', 'MM/DD/YYYY HH:MI:SS AM')
, 2);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
32, 319, 197, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '08/29/2007 03:01:11 PM', 'MM/DD/YYYY HH:MI:SS AM')
, 2);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
64, 51, 198, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
61, 269, 198, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '08/29/2007 03:02:14 PM', 'MM/DD/YYYY HH:MI:SS AM')
, 2);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
62, 271, 198, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '08/29/2007 03:02:14 PM', 'MM/DD/YYYY HH:MI:SS AM')
, 2);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
63, 273, 198, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, TO_Date( '08/29/2007 02:49:32 PM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '08/29/2007 03:02:14 PM', 'MM/DD/YYYY HH:MI:SS AM')
, 2);
INSERT INTO TEMPLATE_COMPONENT_NESTING ( TEMPLATE_COMPONENT_NESTING_ID, TEMPLATE_COMPONENT_ID_IN,
TEMPLATE_COMPONENT_ID_CONTAINS, EFFECTIVE_DATE, DATE_CREATED, USER_CREATED, EXPIRY_DATE,
DATE_UPDATED, USER_UPDATED ) VALUES (
65, 59, 199, TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM'), TO_Date( '06/04/2007 09:23:54 AM', 'MM/DD/YYYY HH:MI:SS AM')
, 2, NULL, NULL, NULL);
COMMIT;Now, is there a way to display the tree for component_id 197?
I want the PARENT (197) to be displayed first then all the children (NODES). I'm using this query to populate the tree in my form, it works but the PARENT (197) is not displayed:
SELECT 1 NODE_STATE, LEVEL NODE_DEPTH, nvl(tc2.template_component_id,tc.template_component_id)||':'||nvl(tc2.TEMPLATE_COMPONENT_NAME_EN,tc.TEMPLATE_COMPONENT_NAME_EN) CHILD_NODE_VALUE,
NULL NODE_ICON, tc.template_component_id||':'||tc.TEMPLATE_COMPONENT_NAME_EN PARENT_NODE_VALUE
FROM template_component_nesting tcn, template_component tc, template_component tc2
where tc.TEMPLATE_COMPONENT_ID = tcn.TEMPLATE_COMPONENT_ID_CONTAINS
and tc2.TEMPLATE_COMPONENT_ID(+) = tcn.TEMPLATE_COMPONENT_ID_IN
START WITH tcn.TEMPLATE_COMPONENT_ID_CONTAINS = 197
CONNECT BY PRIOR tcn.TEMPLATE_COMPONENT_ID_IN = tcn.TEMPLATE_COMPONENT_ID_CONTAINSPlease Help,
Marc.
Similar Messages
-
Mobile Node Information is missing
Hi, everyhing was working very fine, WDS is correctly authenticated, WLCCP credentials are correct and the "Security Keys Setup" message appears on the WDS APs. But after I made some changes from console and upgraded the AP using the templates of the WLSEE, now I can´t see the Mobile Node Information in Wireless Services > WDS in my browser of the active AP WDS.
All my AP have IOS version 12.3(4)JA, what do I have to do to view the Mobile Node Information via the browser??
Thanks for your help.Does the mobile nodes have all ip address zero? just check with the command "show mobility mn"
http://www.cisco.com/en/US/products/hw/wireless/ps430/prod_technical_reference09186a0080362bd0.html#wp998980 -
How to get current server node information uses webdynpro?
Hi,everybody!
Can I use webdynpro to get the current logined on sever node informaition,such as server node id,server node number.This problem is resolved.
-
How to change the replication group information after db files are created
Since group information is persisted in the database, I am wondering if there is a way to update the information.
We want to implement some kind of Berkeley DB master relay mechanism for our two data centers, which has slow link in between. Basically have one master populating a database file and launch another two node as master to replay that to other nodes of its own group. It will be much efficient this way so we don't have to copy the data multiple times over the slow link.
We periodically (once a day) update the Berkeley DB content from customer's feed on a backend node and upload (rsync) the Berkeley DB File to two the data centers. We would like to have a master node in each data center to read the pre-populated data file, replicate the changes to the web node (read only) while they are still running. I simulated local and if I trick the nodeName and nodeHostPort setting, it should work (basically, fake the replication node on the backend node using tampered hostfile so they get registerred). However, it is not very convenient and definitely a dangerous hack on the production servers.
If there is a way, after the creation, to update the group information (for example, change all the nodes information) without corrupt the log file/replication stream, it will be much easier for us. Basically, we would like to have the node/group information and data file de-coupled?
Any ideas how to do that, or is there a better way to design such a replay of data using Berkeley DB?
Thanks in advance!2. You mentioned to not clean up the log file. Is there a point where I can safely call clean up on the environment when BDB is still online as I can imagine we will run out of space very soon if we don't clean up.The approach outlined above (steps 1 to 5) will ensure that no log files are deleted on A while you are updating B and C. The use of DbBackup ensures this. For more information on how this works, see the DbBackup javadoc.
Whether this causes you to run out of disk space on A is something you'll have to evaluate for yourself. It depends on the write rate on A and how long it takes to do the copy to B and C. If this is a problem, you could make a quick local copy of the environment on A, and then transfer that copy to B/C. But you must prohibit log file deletion during the copy, using DbBackup, or the copy will be invalid.
You should perform explicit JE log cleaning (including a checkpoint) before doing the copy to B/C. This will reduce the number of files that are copied to B/C, and will reduce the likelihood that you'll fill the disk on A. See the javadoc for Environment.cleanLog for details on how to do an explicit log cleaning.
In your earlier post, it sounded like the updates to A were in batch mode -- done all at once at a specific time of day. If so, you can do the copy to B/C after the update to A. In that case, I don't understand why you are afraid of filling the disk on A, since updates would not be occurring during the copy to B/C.
--mark -
Hi experts,
I am creating a node dynamically in WDDOINT and creating an input field in WDDOMODIFYVIEW , but am getting an error "attribute not found". Am pasting below my code...
Code in WDDOINT of a view :
data lr_par_node type ref to IF_WD_CONTEXT_NODE_INFO.
data lr_node type ref to IF_WD_CONTEXT_NODE_info.
data lr_node_info1 type ref to IF_WD_CONTEXT_NODE_INFO.
data lr_node1 type ref to IF_WD_CONTEXT_NODE.
data lr_attribute type WDR_CONTEXT_ATTRIBUTE_INFO.
data lt_child_node_map type wdr_context_child_info_map.
*****to get context parent node information
lr_par_node = wd_context->get_node_info( ).
*****to get child node of the parent
lt_child_node_map = lr_par_node->get_child_nodes( ).
*****check for the existence of node
read table lt_child_node_map transporting no fields with table key name = `RESULT`.
if sy-subrc = 0.
" REMOVE_CHILD_NODE
lr_par_node->remove_child_node( `RESULT` ).
endif.
*****inserting new node in context
CALL METHOD lr_par_node->ADD_NEW_CHILD_NODE
EXPORTING
NAME = 'RESULT'
* IS_MANDATORY = ABAP_FALSE
* IS_MANDATORY_SELECTION = ABAP_FALSE
IS_MULTIPLE = ABAP_TRUE
IS_MULTIPLE_SELECTION = ABAP_TRUE
* IS_SINGLETON = ABAP_FALSE
IS_INITIALIZE_LEAD_SELECTION = ABAP_false
* STATIC_ELEMENT_RTTI =
IS_STATIC = ABAP_TRUE
* ATTRIBUTES =
* IS_RANGE_NODE =
RECEIVING
CHILD_NODE_INFO = lr_node.
lr_node1 = wd_context->get_child_node( name = 'RESULT' ).
lr_node_info1 = lr_node1->GET_NODE_INFO( ).
*********Adding attribute
lr_attribute-NAME = 'TEST_GROUP'.
lr_attribute-TYPE_NAME = 'PLNNR'.
lr_attribute-NODE_INFO = lr_node_info1.
CALL METHOD lr_node_info1->ADD_ATTRIBUTE
EXPORTING
ATTRIBUTE_INFO = lr_attribute.
clear lr_attribute.
Code in the WDDOMODIFYVIEW :
method WDDOMODIFYVIEW .
if first_time = abap_true.
data : lt_header_block type zcdp_tt_mfte_header.
lt_header_block = WD_COMP_CONTROLLER->MT_HEADER_BLOCK.
DATA :lr_container TYPE REF TO cl_wd_uielement_container,
lr_input TYPE REF TO cl_wd_input_field,
lr_caption type ref to CL_WD_CAPTION,
lr_column type ref to CL_WD_TABLE_COLUMN,
lr_trans_cont TYPE REF TO CL_WD_TRANSPARENT_CONTAINER.
data lr_lbl type ref to CL_WD_TEXT_VIEW.
******to get root element container
lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
lr_trans_cont ?= VIEW->GET_ELEMENT('TRANS_CONT_HEADER_BLOCK').
* Created one transparent container in the view.......
CALL METHOD CL_WD_TEXT_VIEW=>NEW_TEXT_VIEW
EXPORTING
* CONTEXT_MENU_BEHAVIOUR = E_CONTEXT_MENU_BEHAVIOUR-INHERIT
* CONTEXT_MENU_ID =
* DESIGN = E_DESIGN-STANDARD
* ENABLED = 'X'
* H_ALIGN = E_H_ALIGN-AUTO
* ID =
* LAYOUT = E_LAYOUT-NATIVE
* SEMANTIC_COLOR = E_SEMANTIC_COLOR-STANDARD
TEXT = 'TEST'
* TEXT_DIRECTION = E_TEXT_DIRECTION-INHERIT
* TOOLTIP =
* VIEW =
* VISIBLE = E_VISIBLE-VISIBLE
* WIDTH =
* WRAPPING =
RECEIVING
CONTROL = lr_lbl
cl_wd_matrix_head_data=>new_matrix_head_data(
element = lr_lbl ).
lr_trans_cont->ADD_CHILD( lr_lbl ).
CALL METHOD CL_WD_INPUT_FIELD=>NEW_INPUT_FIELD
EXPORTING
BIND_VALUE = 'RESULT.TEST_GROUP'
ENABLED = 'X'
* EXPLANATION =
ID = 'ABCD'
RECEIVING
CONTROL = lr_input.
cl_wd_matrix_data=>new_matrix_data(
element = lr_input ).
lr_trans_cont->ADD_CHILD( lr_input ).
endif.
endmethod.
Pls help me in this.....
Thanks
Aisurya.Hi,
looking at code it seems that you are adding textview and inputfield. please check in debugging if the correct context node/attribute is being created and you are providing its reference while adding UI elements.
Thanks,
Chandra -
Error in installing Oracle Software while adding node in RAC
Hi All
Oracle Version: 11.1.0.6.0
Linux
In the RAC environment, I am in the process of adding a node to the existing rac environment.
I have succssfully installed cluster software in the new node. all gsd, ons and vip services are running perfectly for new node in the existing and new nodes.
Next step, I started installing oracle software by executing the script $ORACLE_HOME/oui/bin/addNode.sh.
Here after specifying the the new node information (public host, private host and vip details) and when I pressed next,
OUI is giving following error - "Error occured while retrieving node numbers of the existing nodes. Please check if clusterware home is properly configured".
I ran olsnodes -n, it is giving proper node number.
Can somebody help me in identifying the problem and solution.
ThanksI am hitting the same issue, my problem was when I added the new node initially it fails because of the hint8-priv1. I followed the link below to remove and cleanup the last install. olsnode show only my existing nodes NOT including the new node.
http://download-west.oracle.com/docs/cd/B12037_01/rac.101/b10765/adddel.htm
then I ran
./addNode.sh -silent CLUSTER_NEW_NODES={hint-8} CLUSTER_NEW_PRIVATE_NODE_NAMES={hint8-priv1} CLUSTER_NEW_VIRTUAL_HOSTNAMES={hint8-vip}
I am getting this when use command line:
Error ocurred while retrieving node numbers of the existing nodes. Please check if clusterware home is properly configured.
SEVERE:Error ocurred while retrieving node numbers of the existing nodes. Please check if clusterware home is properly configured.
also run addNode.sh via GUI, the new node name still listed and can't continue.
BTW, adding new node should support online, shutdown is not required -
ADF Tree: how to access root node after "Show as Top" selected on sub node
I am currently working on a project that using ADF tree and implementing some search/filter functionality. I need to find the java API calls to get the new root node information after UI user select a sub node in the tree and clicked “show as top"(so search are done only on the current tree. Can someone help on this?
Hi ,
In our project we require to implement ADF menu tree inside <af:menulist>.
We require to show 3-4 child menuitems inside 2 parent menus.
Home
--> Inbox
-->Search
Patient
--> Information
--> Search
Can you please tell steps to implement <af:menutree> to have child menuitems like Inbox, Search inside parent like Home ? I searched on ADF sites but not much of help there.
Thanks
Suhas -
Tree node with (...)
i construct a tree with model,but the node do not display fully. i.e: node info is "node information", but it display "node infoma...".
i have a Node class that log node property. In this class i override toString method, and return node's name (in order to log treepath that not change).
model extends treemodel, thr root is Arraylist and its elments are Node object.
i have renderer (in order to display node information that may be change) extends defaulttreecellrenderer,and override getTreeCellRendererComponent method, the code is following:
public Component getTreeCellRendererComponent(JTree tree, Object value,
boolean sel, boolean expanded, boolean leaf, int row,
boolean hasFocus) {
JLabel label = (JLabel) super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf,
row, hasFocus);
path = tree.getPathForRow(row);
if (path != null) {
if (path.getLastPathComponent() instanceof ArrayList) {
value = "Invocation Tree";
} else {
node = (Node) path.getLastPathComponent();
value = node.getTreeshowing();
setText((String)value);
return label;
thandks in advanceCould it be that your problem is described here
http://dotuseful.sourceforge.net/doc/why.htm
Denis Krukovsky
http://dotuseful.sourceforge.net/
http://dkrukovsky.blogspot.com/ -
Finding a model node in runtime
Hi, I'm presently migrating a old application to webdynpro.
In that application, I have a FieldDescriptor, which has the information of which table to search in order to find the info to be displayed.
Concretely I have:
A class called BapiInfoField. This class has an attribute which is the name of a table. I need to retrieve the node associated to that table.
To resolve this, I thought about making a mapping between the old table name and the new one compatible to webdynpro.
On the other hand, I don't know how to fetch an node at runtime in webdynpro. The only way I do usually, is by using the "wdContect.node*" way. I know how to fetch elements in a node dynamically, but not the node itself.
I also found a function called "getChildNode(String arg0, int arg1)" in the wdContext class. Unfortunately, the function is undocumented.
If there's no appropriate getter function in webdynpro for my problem, I'll resolve by making a mapping between the string of the old table name, and a Method Object linked to the proper "node*" method.
Anyone has any suggestions?
Thanks in advance,
AlexisBrrr...
I do not understand your requirements completely, but can provide some hints regarding getting nodes information at runtime.
First, you are misinformed: getChildNode is documented. First parameter is node name, second is index of parent element of subnode (i.e. index within "this" node).
Next, there are 2 different situations: you need only meta-information or you need physical data.
For first case:
void traverse(final IWDNodeInfo parent)
for (final Iterator i = parent.iterateChildren(); i.hasNext(); )
final IWDNodeInfo child = (IWDNodeInfo)i.next();
traverse( child );
traverse( wdContext.getNodeInfo() );
For second case:
void traverse(final IWDNodeElement parent)
final IWDNode nParent = parent.node();
final IWDNodeInfo niParent = nParent.getNodeInfo();
final int idxParent = parent.index();
for (final Iterator i = niParent.iterateChildren(); i.hasNext(); )
final IWDNodeInfo child = (IWDNodeInfo)i.next();
traverse( nParent.getChildNode( child.getName(), idxParent ) );
void traverse(final IWDNode parent)
for (int i = parent.size() - 1; i>= 0; i--)
final IWDNodeElement element = parent.getElementAt( i );
/* Workaround for singleton nodes */
/* parent.setLeadSelection( i ) */
traverse( element );
traverse( wdContext.currentContextElement() );
Second case is quite "interesting": first, it will fails for singleton nodes with cardinality 0..n or 1..n (see commented workaround); second, it quite resource-consuming, namely, invokes all supply functions and populating all elements during traverse.
Hope this will serve you as good starting point
VS -
Creating Context Menu for JTree Node
Hi to all,
I need to create Context Menu, when i right click on any Tree Node.
Context Menu should contain selected node information.
if you click on one tree node named as "AAAA"
Context Menu Format is as follows
AAAA
Create New
Delete
If any one knows, please help meHere is something for you to start
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=538065
Denis Krukovsky
http://dotuseful.sourceforge.net/ -
Hello,
I am trying to query an XML which is stored in XMLTYPE datatype column in oracle table. I am using the below SQL:
select
EXTRACTVALUE (column_name, '/Person/Customer/Customer_First_Name'),
EXTRACTVALUE (column_name, '/Person/Customer/Customer_Last_Name'),
from TABLE_1 A, TABLE ( XMLSEQUENCE (EXTRACT (A.column_name, '/sdi_header//Person')) ) P
Sample XML:
<sdi_header>
<Person>
<Customer_First_Name>ABC</Customer_First_Name>
<Customer_Last_Name>DEF</Customer_First_Name>
</Person>
<warehouse>
<Person>
<Customer_First_Name>XYZ</Customer_First_Name>
<Customer_Last_Name>MNO</Customer_First_Name>
</Person>
</warehouse>
</sdi_header>
In the above query the Alias P has a //Person which means I am trying to extract all the repeating person Nodes information in XML. Retrieving all persons is working but I want to extract the parent node information of each Person like for Example in the above sample XML, it has two persons in it
1) 1 Person is coming under sdi_header node , in such case I need to get <sdi_header/> in SELECT statement
2) 1 Person is coming under warehouse node , in such case I need to get <warehouse/>in SELECT statement
How can the parent node information be extracted in SELECT statement.
Any suggestion/Help is much appreciated.
Thanks,
SKM
Edited by: user9116854 on Mar 1, 2010 10:24 AM
Edited by: user9116854 on Mar 1, 2010 10:30 AM
Edited by: user9116854 on Mar 1, 2010 10:35 AM
Edited by: user9116854 on Mar 1, 2010 10:45 AM
Edited by: user9116854 on Mar 2, 2010 8:05 AMSounds like you are looking for something like this
Connected to Oracle Database 11g Enterprise Edition Release 11.1.0.6.0
SQL> WITH table_1 AS
2 (SELECT XMLTYPE('<sdi_header>
3 <Person>
4 <Customer_First_Name>ABC</Customer_First_Name>
5 <Customer_Last_Name>DEF</Customer_Last_Name>
6 </Person>
7 <warehouse>
8 <Person>
9 <Customer_First_Name>XYZ</Customer_First_Name>
10 <Customer_Last_Name>MNO</Customer_Last_Name>
11 </Person>
12 </warehouse>
13 </sdi_header>') column_name
14 FROM dual) -- WITH simulates your table I do not have
15 select t1.*
16 from TABLE_1,
17 XMLTABLE('for $i in /sdi_header//Person
18 return <root>
19 {$i/Customer_First_Name,
20 $i/Customer_Last_Name}
21 <parent>{$i/../name()}</parent>
22 </root>'
23 PASSING table_1.column_name
24 COLUMNS
25 fname VARCHAR2(20) PATH 'Customer_First_Name',
26 lname VARCHAR2(20) PATH 'Customer_Last_Name',
27 pnode VARCHAR2(20) PATH 'parent') t1;
FNAME LNAME PNODE
ABC DEF sdi_header
XYZ MNO warehouseYou can find out how formatted that message by looking in the FAQ in the upper right. It uses the { code } tag (without spaces). -
Connecting nodes with uninode -apply is not taking affect
Connecting nodes with uninode -apply
is not taking affect.
<P>
There are two problems with the utility uninode. They address different issues
and require different workarounds. Please review carefully.
<P>
<OL>
<LI>Applying changes to a nodes.ini
file using uninode where there is a mixture
of + and - nodes.
<P>
There is a problem with uninode where the flag -ALL doesn't completely update
all of the remote node information. If you are removing a node from a node
network, keep in mind that it is really a two step process: <P>
1)Connect to all "+" nodes and remove the "-" node from each of their databases.
2)Connect to the "-" node and remove the "+" nodes from that database.
<P>
The best possible workaround is to run uninode -apply ALL followed by
uninode -apply all.
<P>
<LI>Applying changes to a nodes.ini
file using uninode where there are special
rules of node connections (e.g. A->B: +1, etc.).
<P>
With this you are forced to use unidbfix -export
to generate your remotenodes.ini
file, and then you must manually edit this file as required. Run
unidbfix -import to
update the remotenode.dat file.
<P>
Run unidbfix -export
and then unidbfix -import
to update all the remote nodes
with the new information.
</OL>HI All,
I've used the OITM along with the ITM1 and I still receive the "Updated Successful" message but no changes.
I created another pricelist within SAP B1 Client and updated the prices within that pricelist and it worked just fine.
I noticed when I queried everything from OPLN that the pricelists that I am trying to import have a different value for "Data Source" which is equal to O, I copied these price lists with Copy Express. The pricelist I created within SAP B1 Client has a Data Source = "I".
I've included the OITM and ITM file I used which was returning a successful result but no change.
ITM1
ParentKey LineNum PriceList Price Currency
ItemCode LineNum PriceList Price Currency
85108 25 26 55.00 $
OITM
ItemCode
ItemCode
85108 -
HELP: How to get only the text of an element Node
Hello
I am using XPath for the following XML document:
<Start>
<User>
<LoginName>abc</LoginName>
<Password>qqq</Password>
</User>
<User>
<LoginName>xyz</LoginName>
<Password>ttt</Password>
</User>
</Start>
Now I want to get the password for the LoginName = 'xyz'.
The XPath I have written is:
//User[LoginName='xyz']/Password[text()]"
The result I get is:
<Password>ttt</Password>
But what I want is ONLY the password TEXT i.e the value of the password and NOT the complete node information. What Should I do with the Xpath string so that the result only gives: ttt
Please help me with this as this has hold me now for quite a long time.
Thanx.
ArshadUse this method to get the text in Java
public String getTextContents ( Node node )
NodeList childNodes;
StringBuffer contents = new StringBuffer();
childNodes = node.getChildNodes();
for(int i=0; i < childNodes.getLength(); i++ )
if( childNodes.item(i).getNodeType() == Node.TEXT_NODE )
contents.append(childNodes.item(i).getNodeValue());
return contents.toString();
} -
Guys,
We are upgrading our 11.5.10.2 instance to R12. Ours is a 2 node installation. Node A has DB and Concurrent processing services and Node B has Web and Forms services. As per these guides, we have followed the all the steps and
started rapidwiz (Rapid wizard version 12.0.0.21). Here are the options we
selected in the rapidwiz screens:
1. "Upgrade to Oracle Applications Release 12" in the select wizard operation screen
2. "Create Upgrade File System" in the Select Upgrade Action screen.
And then we entered the port details, Database Configuration and Application User information in the respective screens. Then we got the "Primary Applications Node configuration" screen.
Here are our questions:
1. We entered "Server A" as the DB host and "Server B" as the host for the primary application node. We are able to select the services for the Primary application node using the "edit services" option in the "Primary applications node configuration" screen. But there is no such option for selecting the services for "Server A" on which the CCMs would be running. So how can we make sure that the config file created by rapidwiz has the correct details. Do we need to add "Server A" as the secondary Applications node using the "Add Server" option in the "node information" screen.
2. Rapid Install guide says "Using ftp, copy the
<10g ORACLE_HOME>/appsutil/conf_<SID>.txt configuration file to each Applications node" and then run rapidwiz on the application nodes like "rapidwiz -silent -config <configuration file>". Do we need to make any changes in the
configuration file before ftping it to the other node.
3. As we mentioned earlier, our DB is already on 10.2.0.2. We use the same oracle home for many other databases. So we don't want autoconfig to run on the 10g Oracle home as it is shared by many other databases. Also we don't want to have separate oracle homes for all the instances running on the server A. But rapidwiz installs a new oracle home based on the details provided. So what are the
options we have for upgrading to R12 without affecting our existing oracle
home.
Hoping to get an anwer from you guys.
Thanks,
JohnJohn,
1. Yes, the R12 methodology is to assume the DB host will be a DB only host. If you still wnat to run concurrent managers there, you will need to add a host on the Applicatiosn Node screens.
2. You should not need to modify the context file before copying/ftp-ing to the other server.
3. Unless you are absolutely strapped for disk space, I have never advocated running other databases out of an Apps database oracle home. If you want to upgrade your Apps database to 10.2.0.3, then you cannot until all of the other database owners agree to the database upgrade. If you want to use your existing 10.2.0.2 Oracle Home, you will need to apply 35 RDBMS patches via opatch and complete all actions from the readmes.
Oracle 10gR2 Database Preparation Guidelines for an E-Business Suite Release 12 Upgrade
http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=403339.1
It would be less work to accept the new rapid install delivered 10.2.0.2 Oracle Home, and leave your existing databases running out of the old 10.2.0.2 Oracle Home. Note 403339.1 was recently updated to indicate you can switch existing 10.2.0.2 Apps databases to the rapid install delivered Oracle Home.
If you follow the R12 upgrade doc (Oracle Applications Upgrade Guide: Release 11i to Release 12 (zipped) B31566-01), you can easily generate your 10gR2 context file and run autoconfig on the rapid install delivered 10.2.0.2 Oracle Home. If you are using the rapid install delivered 10.2.0.2 Oracle Home, you will not disrupt any other databases using your old 10.2.0.2 Oarcle Home.
Update the RDBMS ORACLE_HOME file system with AutoConfig files.On the application tier (as the APPLMGR user):
Log on to the APPL_TOP environment (source the environment file).
Run the following Perl script to create appsutil.zip in <INST_TOP>/admin/out.
perl <AD_TOP>/bin/admkappsutil.pl
On the database tier (as the ORACLE user):
Copy or FTP the appsutil.zip file to the <RDBMS ORACLE_HOME>.
cd <RDBMS ORACLE_HOME>
unzip -o appsutil.zip
2.Run AutoConfig on the database tier nodes.UNIX:
<RDBMS ORACLE_HOME>/appsutil/scripts/<CONTEXT_NAME>/adautocfg.sh -
Hi,
I am configuring some JMS scenarios. For establishing connection with JMS system the client provided me with IP address and port for the JMS systems.
Alongwith the above information the client also gave me Routing Node details for each of the JMS-system. Do we use this Routing Node information anywhere in SAP PI?
Thank you,
Pankaj.Hi,
Ok. I was confused after searching on google. So it means that though Routing Node is a part of JMS communication it is not used/ required in SAP PI.
Thank you,
Pankaj.
Maybe you are looking for
-
How to partition my drive for Mac and XP use? from a novice
I would like to use my MacBook Pro for both Mac ad PC programs (Office and others) and hear that I can partition the drive. How is the best way to do that? Also I have an external Seagate FreeAgent GoFlex external drive to set up that supposedly ca
-
URGENT HELP NEEDED - InDesign CC
Hi, I use InDesign CC for work and I recently reformatted my laptop due to a hardware issue. Now, I am not able to download InDesign now and I keep getting this error message: ====== - 0 fatal error(s), 2 error(s) ----------- Payload: Microsoft Visua
-
I have been trying to find out exactly what software comprised the original bundle that came with the PowerMac G4 400. This has turned out to be a lot more difficult than I had expected, even though have the original packaging and documents. I own on
-
Hello Iam working on a small project at my school, where Iam building a digital control system using a stepper motor. My buget for this project is between 50 to 80 dollars. THe equipment I have at school is NI Elvis II with a built in DAQ board, LABV
-
DBIF_REPO_SQL_ERROR ABAP Dump
Hi Experts I am getting Following ABAP Dump when i intializing the Planning area and Displaying CVC's of the MPOS.. Runtime Errors DBIF_REPO_SQL_ERROR Date and Time 12/29/2008 15:46:29