Unable to form relationship [message #565334] |
Mon, 03 September 2012 11:58 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
|
I have two tables and i am trying to form a relationship but unable to do, its giving me error .error while parsing ,can someone help me resolve this, i really dont know.actually there is one table ot_insp_item which is referred in two blocks and the other is detail block.
|
|
|
Re: Unable to form relationship [message #565338 is a reply to message #565334] |
Mon, 03 September 2012 13:24 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
You should really know by now that you need to give precise details of what you are doing.
Describe the table, what goes in each block and what the relationship between them should be.
|
|
|
Re: Unable to form relationship [message #565369 is a reply to message #565338] |
Tue, 04 September 2012 01:29 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
|
Thanks cookiemonster for the help, yeah i agree with you actually the problem is i have that form which i cannot attach due to this site limitation but when i build relationship using seperate form its working , the tables go like this .One header ot_insp_head,one detail linked to it ot_insp_item and another detail linked to this detail as stacked ot_insp_heat.
create table OT_INSP_HEAD
(IH_SYS_ID NUMBER,
IH_TXN_CODE VARCHAR2(12),
IH_NO NUMBER);
CREATE UNIQUE INDEX OT_INSP_HEAD_PK ON OT_INSP_HEAD
(IH_SYS_ID);
ALTER TABLE OT_INSP_HEAD ADD (
CONSTRAINT OT_INSP_HEAD_PK
PRIMARY KEY
(IH_SYS_ID));
create table OT_INSP_ITEM
(II_SYS_ID NUMBER,
II_ITEM_CODE VARCHAR2(12),
II_QTY NUMBER,
II_QTY_LS NUMBER);
CREATE UNIQUE INDEX OT_INSP_ITEM_UK ON OT_INSP_ITEM
(II_SYS_ID);
CREATE INDEX OT_INSP_ITEM_NX_01 ON OT_INSP_ITEM
(II_IH_SYS_ID);
ALTER TABLE OT_INSP_ITEM ADD (
CONSTRAINT OT_INSP_ITEM_FK_01
FOREIGN KEY (II_IH_SYS_ID)
REFERENCES OT_INSP_HEAD (IH_SYS_ID));
create table OT_INSP_HEAT
(IG_SYS_ID NUMBER,
IG_II_SYS_ID NUMBER,
IG_QTY NUMBER);
CREATE INDEX OT_INSP_HEAT_IDX_01 ON OT_INSP_HEAT
(IG_II_SYS_ID);
CREATE UNIQUE INDEX OT_INSP_HEAT_PK ON OT_INSP_HEAT
(IG_SYS_ID);
ALTER TABLE OT_INSP_HEAT ADD (
CONSTRAINT OT_INSP_HEAT_PK
PRIMARY KEY
(IG_SYS_ID));
ALTER TABLE OT_INSP_HEAT ADD (
CONSTRAINT OT_INSP_HEAT_FK_1
FOREIGN KEY (IG_II_SYS_ID)
REFERENCES OT_INSP_ITEM (II_SYS_ID));
--i want to build the relation between ii_sys_id and ig_ii_sys_id in forms6i but couldnt
|
|
|
|
Re: Unable to form relationship [message #565423 is a reply to message #565420] |
Tue, 04 September 2012 06:33 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
|
Steps only 2 , i tried first building relationship manually as you said by linking ot_insp_heat.ig_ii_sys_id = ot_insp_item.ii_sys_id it failed then i tried using wizard by creating the block again it failed.can i send you the form as attachment to your email id cookiemonster if you have one please share the email id to me.
|
|
|
|
|
|
|
|
|
|
|
Re: Unable to form relationship [message #565438 is a reply to message #565435] |
Tue, 04 September 2012 07:46 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
|
Appreciate your help cookiemonster , but unfortunately the form which i am having is from the vendor himself and i am unable to do what you did , can i send you thru email so that you can check.THanks for your help littlefoot , its not an operating system issue too as i tried on other os as well and removed the block and tried too.
|
|
|
Re: Unable to form relationship [message #565439 is a reply to message #565438] |
Tue, 04 September 2012 07:50 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
Then maybe you should ask the vendor to fix it?
Have you checked that the blocks contain the items you are trying to link on like I asked?
And no you can't email it to me, sorry.
|
|
|
|
|
Re: Unable to form relationship [message #565448 is a reply to message #565439] |
Tue, 04 September 2012 08:39 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
|
Hi cookiemonster is there any workaround like without doing relationship can we do the same thing manully what relationship does by writing necessary triggers like on-populate details and on-check delete.
|
|
|