Problem in relational blocks(Parent Child Grand Child
Hi all
I am working on Oracle Forms 10g Release-2.
I am facing a problem in a form which consists three relational block. Blocks are organised as below:
1.Parent >> 2.Child. >> 3.Grand Child.
In 2.Child Block I have multiple records, each record has detail records in Grand Child block. Now if I move cursor from parent block to child block in a record(2nd,3rd or any other) other than first record for the first time, the child and grand child blocks flash out automatically.But if click on first record of child block for the fisrt time, then this problem is not happening.In Grand child block I am not facing this kind of problem.
Thanks
Mokarem.
'Flash out' means Child block and grand child block is cleared autromatically, if I navidate to the child block for the first time. But if I navigate to first record of child block then I am not getting this problem, but if I click 2nd or higher then this problem is happening.
Thanks
Mokarem.
Similar Messages
-
Problem creating standard ECC Parent-Child Hierarchy in HANA
Hi all -
I've been trying to get a hierarchy to work on the front end of a stand alone HANA system using profit center hierarchy data from SETLEAF / SETNODE tables from ECC. Here is how my test hierarchy looks:
Following another post I found around here, I created an attribute view and filtered SETNAME to 'TST_HANA'.
The resulting data when connected to my attribute view caused an error that there was no root node, so I manually inserted the last row shown here (where PCA_PARENT = SETNAME and PCA_CHILD = SUBSETNAME):
Finally, I created my parent-child hierarchy in the attribute view and connected that view to my data foundation in the analytic view via left-outer join between Profit Center and VALFROM. However, when I go to connect to my view via MDX in excel, I get the following message:
"Hierarchy create error: Multiple parents not allowed for hierarchy node TST_ND1" Clearly from the data, there aren't multiple parents for TST_ND1. It's already a pain that to use a standard hierarchy I have to manually insert a root node, but that doesn't even seem to fix the problem.
Can anyone suggest how to fix this to get a standard profit center hierarchy working?
Thank you!
AZHi,
According to me, Hierarchy level will work fine in ms excel for all analytical, calculation view using MDX Provider..
Do you have any composite primary key or composite foreign key in the tables....
r u getting correct level hierarchy output in Hana studio... plz check with all types of permutation possible.if u r getting correct output in analytical view w.r.t hana but fails to get in Ms excel..
please create Calculation view of that.. & then check the output in ms-excel..
Thanks, -
Representating Hierarchical (Parent-Child) relation graphically using Swing
Hi,
I have to represent a hierarchical data which is having Parent-Child relation using Swing. I am not able to upload the image overhere, so I am represnting the data in such a way so that one can understand this problem. If anyone knows how to upload image on Sun forum, please let me know it will be great help for me.
Parent Root - A
Child of A - B, C, D
Child of C - E, F, G
Child of F - H
Child of D - J, K
The data needs to be represented in two formats-
1. Tabular Format
I am able to represent data in this format using combination of JTree and JTable. The data is getting represented in tabular format and I am able to expand and collapse the parent nodes to see the childs. The tabular data will look like below structure,
A
I_B
I
I_C
I I_E
I I
I I_F
| I |_H
| I
I I_G
I
I_D
I
I_J
I
I_K
2. Graphical Format
This is the other way in which I need to represent the data. The above shown tabular data needs to represented in graphical form. The end result should look like,
I A I
____________________I__________________________
___I___ __I__ __I__
I B I I C I I D I
____________________I____________ ______I________
___I___ __I__ __I__ __I__ ___I__
I E I I F I I G I I J I I K I
__I___
I H I
Each box representing alphabates will be a component (like JPanel) which will have details about the item to be displayed. The parent and child should be connected with each other using line. This representation should be created at runtime using the hierarchical data. Also the parent and child relations should be expandable/collapsible as they are in JTree.
I am not able to find any component or any solution in Swing which can provide me this graphical representation. It will be great help if anyone can help me out in this.
Thanks in advance.Sorry for inconvinience for the data representaion in graphical form. I don't know how this get jumblled. Please try to figure out the tabular/graphical representation using pen and paper as forum is not providing any help to upload an image.
Sorry again for inconvinience.
Thanks
Manoj Rai -
Why in case of parent child relation iterator fetching one duplicate record
Hi,
JDev Ver : 11.1.1.2.0
Technology : JPA/TopLik Service Facade Data Control (Without using BC4J)
I have created JPA/TopLink service facade from DB Tables and on facades I have crated DataControl which I have draged and droped on my screen to create input text, table etc.
In my application, I have many tables having one to many relationships. (Primarykey foreign key).
When I add more then one child columns (foreign key columns) for any one parent column (primary key column), in db its getting inserted properly but in iterator after refreshing also it showing one duplicate entry instead of actual entry.
e.g.
For one Account Id 1234 (primary key) , I am adding 3 account holders name (abc, xyz, pqr) in this case in db its inserting proper 3 entries but in iterator its showing
1234 abc
1234 xyz
1234 abc
so instead of pqr its again showing abc.
To select account holders name I have used selectManyShuttle components.
I have also tried tried dciter.refresh(DCIteratorBinding.RANGESIZE_UNLIMITED); to refresh iterator.
This is generic problem on most of the screen in my application where parent child relation comes.
regards,
devangHi,
Thanks for your reply. I just emailed the screen shot to your email . Please verify and let me know your comment.
Regards,
Kiran Konjeti -
Parent Child relation in one transaction throws error... (
In nutshell, I have a parent->child relation ship in DB and due to the UI requirement, I created view link as Child->parent, it is giving a hack a lot of problems.... (it sounds silly but looks like I am loosing my mind over this)
Let me explain my situation,
- I have a table A with col-a and col-b. I have another table B with col-a (primary key) and col-c. (This way table A is a parent table)
- ON UI side i created relationship like table B is parent and Table A is child using col-a
- I need to create parent-child (one record for each) record programatically.........
I tried following thing:
- from backing bean, as soon as i create Table-B row first, i get error saying too many objects with same key (which is understandable because of table design..... and associaion must be throwing that error)
- from EOImpl file, it doesn't even find the child record being created... so during commit I can't send the foreign key value from Table-a to Table-b
Any suggestion is greatly appreciated?
Thank you,
-Rajthat depends on how you implement the multiple selection of orders.. you have to pass the selectedValues to the backend or store the values in a map or list and pass it..
-
Siebel BIP Integration Objec for Parent, Child and Grand Child
Hi,
I 'm trying to create a one report for displaying Parent, Child and Grand Child.
Service Request
- Quote
- Quote Item.
Successfully create the BIP Integration object and generated the xml file. problem here is when trying to include the fields in BIP desktop word, not able to see the grand child fields, could see only the parent and child fileds and for grand child only 'ListOfQuoteItem' text.
Could some one please let me know the reason for this behavoir and wherther BIP supports 3 levels.
Is there any Out of Box Siebel report showing parent, child and grandchild.
Thanks,
Ravi kanthOne Siebel Adapter Upsert operation should be sufficient to insert the parent and child. In the Integration object definition, you define the Template child instances with the Parent of Template. i.e
You define Template first as an Integration Component and then define
Template child instances to have a Parent as Template.
Thanks
Swarna -
JPA One-To-Many Parent-Child Mapping Problem
I am trying to map an existing legacy Oracle schema that involves a base class table and two subclass tables that are related by a one-to-many relationship which is of a parent-child nature.
The following exception is generated. Can anybody provide a suggestion to fix the problem?
Exception [EclipseLink-45] (Eclipse Persistence Services - 2.0.0.v20091127-r5931): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: Missing mapping for field [BASE_OBJECT.SAMPLE_ID].
Descriptor: RelationalDescriptor(domain.example.entity.Sample --> [DatabaseTable(BASE_OBJECT), DatabaseTable(SAMPLE)])
The schema is as follows:
CREATE TABLE BASE_OBJECT(
"BASE_OBJECT_ID" INTEGER PRIMARY KEY NOT NULL,
"NAME" VARCHAR2(128) NOT NULL,
"DESCRIPTION" CLOB NOT NULL,
"BASE_OBJECT_KIND" NUMBER(5,0) NOT NULL );
CREATE TABLE SAMPLE(
"SAMPLE_ID" INTEGER PRIMARY KEY NOT NULL,
"SAMPLE_TEXT" VARCHAR2(128) NOT NULL )
CREATE TABLE SAMPLE_ITEM(
"SAMPLE_ITEM_ID" INTEGER PRIMARY KEY NOT NULL,
"SAMPLE_ID" INTEGER NOT NULL,
"QUANTITY" INTEGER NOT NULL )
The entities are related as follows:
SAMPLE.SAMPLE_ID -> BASE_OBJECT.BASE_OBJECT_ID - The PKs that are used to join the sample to the base class
SAMPLE_ITEM.SAMPLE_ITEM_ID -> BASE_OBJECT.BASE_OBJECT_ID - The PKs that are used to join the sample item to the base class
SAMPLE_ITEM.SAMPLE_ID -> SAMPLE.SAMPLE_ID - The FK that is used to join the sample item to the sample class as a child of the parent.
SAMPLE is one to many SAMPLE_ITEM
The entity classes are as follows:
@Entity
@Table( name = "BASE_OBJECT" )
@Inheritance( strategy = InheritanceType.JOINED )
@DiscriminatorColumn( name = "BASE_KIND", discriminatorType = DiscriminatorType.INTEGER )
@DiscriminatorValue( "1" )
public class BaseObject
extends SoaEntity
@Id
@GeneratedValue( strategy = GenerationType.SEQUENCE, generator = "BaseObjectIdSeqGen" )
@SequenceGenerator( name = "BaseObjectIdSeqGen", sequenceName = "BASE_OBJECT_PK_SEQ", allocationSize = 1 )
@Column( name = "BASE_ID" )
private long baseObjectId = 0;
@Entity
@Table( name = "SAMPLE" )
@PrimaryKeyJoinColumn( name = "SAMPLE_ID" )
@AttributeOverride(name="baseObjectId", column=@Column(name="SAMPLE_ID"))
@DiscriminatorValue( "2" )
public class Sample
extends BaseObject
@OneToMany( cascade = CascadeType.ALL )
@JoinColumn(name="SAMPLE_ID",referencedColumnName="SAMPLE_ID")
private List<SampleItem> sampleItem = new LinkedList<SampleItem>();
@Entity
@Table( name = "SAMPLE_ITEM" )
@PrimaryKeyJoinColumn( name = "SAMPLE_ITEM_ID" )
@AttributeOverride(name="baseObjectId", column=@Column(name="SAMPLE_ITEM_ID"))
@DiscriminatorValue( "3" )
public class SampleItem
extends BaseObject
@Basic( optional = false )
@Column( name = "SAMPLE_ID" )
private long sampleId = 0;
Edited by: Chris-R on Mar 2, 2010 4:45 PMThanks for the thoroughness. There was a mistake in moving the code over for the forum. The field names are correct throughout the original source code.
BASE_OBJECT_ID is used throughout.
I suspect the problem lies in the one-to-many sampleItem(s) relationship that is based upon the subclassed item class. (The relationship is actually "sampleItems" in the real code and somehow got changed in the move over.)
The problem may lie in the mapping of the attribute override in the child class to the referencing of the item class from the parent side of the relationship in the Sample class.
I further suspect this may be specific to Eclipselink based upon other postings I've seen on the web that have similar problems...
Any thoughts?
Edited by: Chris-R on Mar 3, 2010 9:56 AM -
Problem with saving Parent - Child View Objects in ADF 11g.
Hi Every one,
I have a requirment, something like I will be displaying some data on my jsff screen based on one Transient View Object. Whenever user clicks on Save button, I have to do following steps in my AMImpl.
-> Preapre dynamically Parent View Object Rows based on some logic
-> Prepare dynamically Child View object Rows and invoke insertRow method on respective child view object.
When I say commit() First Parent ViewObject data need to be saved and then Child View object data has to be saved. I am having Parent - Child Key relation ship btw these two ViewObjects. Some how I am populating the Parent Primary key in the Child View Object. Please suggest me If there is any other alternative to this.
ThanksI got the solution, Enabling the check box option for Master - Detail Entity association (CompositionAssociation -> Cascade Update Key Attributes) resolved the issue.
Thanks -
How to delete parent child relation in Toplink
Hi All,
I have 3 tables A,B,C.
In Table A ,I am saving record.
Table B & C has parent child relation.
B-->Parent
C-->Child
So I want to save records in Table A.
And delete from child(C) 1st then from parent(B).
I m writing my code as,
em.getTransaction().begin();
em.persist(Table A);//save in Table A
em.remove(em.merge(Table B));//Remove from Parent
But how to delete records from child table then from parent table.
Thanks
SandipIf you have a @OneToOne relationship between two entities, the join column information is used to order the SQL when you remove two entities. For example, if I have:
@Entity
public class Employee implements Serializable {
@OneToOne
@JoinColumn(name="ADDR_ID")
private Address address;
...Then the following code runs regardless of the order of the remove calls.
em.getTransaction().begin();
Employee parent = new Employee();
Address child = new Address();
parent.setAddress(child);
em.persist(parent);
em.persist(child);
em.getTransaction().commit();
em.getTransaction().begin();
parent = em.merge(parent);
child = em.merge(child);
// order of next two statements unimportant
em.remove(parent);
em.remove(child);
em.getTransaction().commit();If I don't remove the parent and just the child I get the same error you do because of the FK from Employee to Address.
--Shaun -
Hi all,
I am trying to write an sql - and the requirement is as below -
Table data contains columns Parent || Child || Summary_Flag
If Child is Parent again to some other Child then Summary Flag is "Y"
e.g. parent || Child || Summary_flag
P1 C1 N
P2 P3 Y
P3 C2 N
This relation exists to four level - .i.e. level to which child can be parent again.
I am trying to write SQL which will give me data in columns - i.e. Parent1||Parent2||Parent3||Parent4||Child.
Pleas help in any possible way.
thanks
BhushanhI,
What is your desired output ?
Like this.
P1|C1
P2|P3|C2
SELECT REGEXP_REPLACE (MAX (res)KEEP (DENSE_RANK LAST ORDER BY lvl),
) res
FROM (SELECT PARENT,
SYS_CONNECT_BY_PATH ( CASE
WHEN LEVEL = 1
THEN PARENT
END
|| '|'
|| CHILD,
) res,
LEVEL lvl
FROM test_data
WHERE summary_flag = 'N'
CONNECT BY PRIOR CHILD = PARENT)
GROUP BY PARENT
SQL> WITH test_data AS
2 (SELECT 'P1' PARENT, 'C1' CHILD, 'N' summary_flag
3 FROM DUAL
4 UNION ALL
5 SELECT 'P2' PARENT, 'P3' CHILD, 'Y' summary_flag
6 FROM DUAL
7 UNION ALL
8 SELECT 'P3' PARENT, 'P4' CHILD, 'Y' summary_flag
9 FROM DUAL
10 UNION ALL
11 SELECT 'P4' PARENT, 'C2' CHILD, 'N' summary_flag
12 FROM DUAL)
13 SELECT REGEXP_REPLACE (MAX (res)KEEP (DENSE_RANK LAST ORDER BY lvl),
14 '/'
15 ) res
16 FROM (SELECT PARENT,
17 SYS_CONNECT_BY_PATH ( CASE
18 WHEN LEVEL = 1
19 THEN PARENT
20 END
21 || '|'
22 || CHILD,
23 '/'
24 ) res,
25 LEVEL lvl
26 FROM test_data
27 WHERE summary_flag = 'N'
28 CONNECT BY PRIOR CHILD = PARENT)
29 GROUP BY PARENT;
RES
P1|C1
P2|P3|P4|C2
SQL> Regards salim. -
Hi experts,
Please check it my code . in this procedure first cursor only inserted into t1 temp table not inserted second cursor please check it and modified the my code.
i want inserted parent child relation table like bellow
parent child
a b
a c
a d
b l
b m
b n
c d like that only inserted
PROCEDURE TEST_PARENTS_CHILD( p_TABLE VARCHAR2)
IS
CURSOR c(P_TABLE varchar2)
IS
SELECT p.table_name PARENT, c.table_name CHILD
FROM user_constraints p, user_constraints c
WHERE (p.constraint_type = 'P' OR p.constraint_type = 'U')
AND c.constraint_type = 'R'
AND p.constraint_name = c.r_constraint_name
AND p.table_name = P_TABLE;
CURSOR C1(p_child varchar2) IS SELECT p.table_name PARENT_TABLE, c.table_name CHILD_TABLE
FROM user_constraints p, user_constraints c
WHERE (p.constraint_type = 'P' OR p.constraint_type = 'U')
AND c.constraint_type = 'R'
AND p.constraint_name = c.r_constraint_name
AND p.table_name = P_CHILD;
type array
IS
TABLE OF T1%ROWTYPE INDEX BY PLS_INTEGER;
t_data ARRAY;
BEGIN
FOR I IN C(P_TABLE)
LOOP
FETCH C bulk collect INTO T_DATA limit 1000;
--- EXIT WHEN C%NOTFOUND;
FORALL I IN 1..T_DATA.last
INSERT INTO T1 VALUES T_DATA(I);
FOR J IN C1(i.CHILD)
LOOP
FETCH C1 BULK COLLECT INTO T_DATA LIMIT 1000;
--EXIT
--WHEN C1%NOTFOUND;
FORALL j IN 1..T_DATA.last
INSERT INTO T1 VALUES T_DATA(j);
end loop;
END LOOP;
END TEST_PARENTS_CHILD;
Regards,
VenkatYou've been asked before on your previous questions (all of which still appear to be unanswered) to read the FAQ: {message:id=9360002} and post correct details of your question, and use {noformat}{noformat} tags to preserve your code/data formatting on the forum.
But still you post a question lacking all the information and formatting. If you can't be bothered to help us understand your issue (and read your code), why do you expect others will be bothered to try and help you? -
Parent child relation in OBIEE -RPD Issue
Hi,
I created a star schema by taking two tables . Now i want to establish parent-child relation ship .
Now by clicking create logical dimension ----->Dimension with parent-child hierarchy ,the member key is not found.Pls correct me where i went wrong .
Thanks-BhaskarI know you said you have primary key defined already but just to make sure, can you follow these steps:
1) Double click on dimension table
2) go to tab 'Keys'. check if your primary key is defined there.
3) If not, in 'Key Name', type in the key name
4) select the primary key(column) in 'Columns'.
5) Click OK.
and then try to create hierarchy by following these steps:
1) Right Click on the dimension table
2) Create Logical Dimension -> Dimension with Parent-Child Hierarchy...
3) Click OK (if you are OK with default values) -
ForEach iterator in parent child relation
Hi,
How can i use forEach to iterate parent child view object. Issue it is only able to fetch value of parent vo not child view object values, if I use af:iterator instead of af:forEach it works perfectly. So there is no issue with data.
But I am not able to iterate child VO.
<af:forEach items="#{bindings.testVO.rangeSet}"
var="parent" varStatus="parentRow" >
<af:outputText value="#{parent.Name}"/> -- it works fine prints value
<af:forEach items="#{parentRow.childVO.rangeSet}"
var="child" varStatus="childRow" >
<af:outputText value="#{child.subject}"/> ---> It doesn't work
</af:forEach>
</af:forEach>
If i use iterator it works fine... But I have to use forEach to generate dynamic id for each component in forEach LoopI tried to use af:iterator first but the problem is it is not able to handle dynamic id generation for each component:
<af:iterator value="#{bindings.companyVO.collectionModel}"
var="company" varStatus="companyStatus"
rows="#{bindings.companyVO.rangeSize}">
<af:iterator value="#{company.employeeVO}"
var="employee" varStatus ="employeeStatus">
<af:outputLabel id="emp${companyStatus.index}${employeeStatus.index}" value="#{employeee.empId}"/> ->>> here id is always emp it is not able to get index value and if i used the same code in forLopp it works it is able to fetch dynamic id based on index like emp12 emp13 emp14 etc...
</af:iterator>
</af:iterator> -
i have 2 tables;
Table 1
Parent ID
Parent Name
Amount
table 2
DPND_CODE
DPND_NAME
DPND_RELAT_CODE
DPND_DOB
DPND_YN
DPND_SHARE_AMOUNT
DPND_BANK_CODE
DPND_BANK_AC_NO
DPND_AGENT_CODE
the query should check for the WHERE condition that dpnd_yn "Y"
Parent ID Parent Name Amount
001 emp1 200.000
001_01 emp1_chld1 50.000
001_02 emp1_chld2 50.000
001_03 emp1_chld3 50.000
001_04 emp1_chld4 50.000
.i was totally confused n hasty..Sorry to post with so incomplete info.
actually i have a table that stores the total amount paid to an employee.
for that my Table1 above serves the purpose.
Table 1
Parent ID
Parent Name
Amount
the IInd table stores the distribution of the above (TABLE 1) total amount,
to his family in case he has died. so the correct child table 2 struc is;
table 2
DPND_CODE
DPND_NAME
DPND_RELAT_CODE
DPND_DOB
DPND_YN
DPND_SHARE_AMOUNT
DPND_BANK_CODE
DPND_BANK_AC_NO
DPND_AGENT_CODE
dpnd_PARENT_id (Foreign key)
and therefore the result that m looking for is;
PARENT ID PARENT NAME AMOUNT
001 emp1 200.000 <------FROM TABLE 1
dpnd_code dpnd_name dpnd_share_amount
001_01 emp1_chld1 50.000 |
001_02 emp1_chld2 50.000 |__FROM TABLE 2
001_03 emp1_chld3 50.000 |
001_04 emp1_chld4 50.000 |
a condition should check whether dpnd_YN field = "Y",
as all the next-of-kin members details of the deceased family is entered in the system at the time of his death.
where as per rule only few qualify to get the share from the deceased pension as per policy.
therefore the query should pick up only child records whom dpnd_YN IS MARKED As 'Y'.
You've provided (3), but I don't know if that's really a good illustration of your problem.
Do you have just one root (001), or can you have multiple roots (001, 002, 003, etc.)?
Does the parent-child relationship go beyond two levels? (Thta is, can you have 001_01_01 or 001_01_02_03?)
Yes the ROOT is always one, it will never go beyond two levels. (Just 001_01, 001_02...002_01, 002_02...003_01, 003_02..)
Hope i am much better than before.
ty
Edited by: user613563 on Oct 27, 2008 3:01 PM
Edited by: user613563 on Oct 27, 2008 3:05 PM -
How can provide parent-child nodes relation ships?
how can provide parent-child nodes relation ships?
I was under the impression that scenegraph is like a JTree. But in JavaFX only leaf node rendering in scenegraph. This situation was confusing my mind. In JavaFX CustomNode must be extending and return a group for custom leaf. If we want to a create parent-child node hierarchy we are create CustomNode that return a group and this group contain an another group,etc. So there is maybe only a way. If you learning to JavaFX first time.This way don't look familiar.
Maybe you are looking for
-
Beeps when connecting iPod to A/V adapter
Hello, I have a PXP01 from Peripheral Electronics. Whenever I plug my iPod into the dock connector, my iPod beeps twice. Is his normal. I have never used a dock before. Thanks.
-
Hi experts, from online help, it mentions that "Any book can contain data, but for best performance, do the following: Limit the record count to a maximum of 20,000 to 30,000." Does that mean if we have more than 30,000 records in a book that SOD per
-
This is my last port of call... Is there a SYSTEM variable or Form/Application property I can check to see if my form has been called with the query_only option set (from NEW_FORM and CALL_FORM). I can't find anything and if not, I'm going to have to
-
my macbook pro 373, first time is 6965mAh, but now is 6598mAh. is it ok?
-
Class is a BLACK BOX ? Please explain
Hi, I have a query regarding the a class being compared to a Black Box. 'A Java class is compared to a BLACK BOX,and the users of this class use it via its methods that act as its public interfaces and they need not understand the class complexities'