Matching data in 2 different blocks..... [message #191949] |
Fri, 08 September 2006 22:33 |
raizen_underground
Messages: 28 Registered: September 2006 Location: Manila, Phillipines
|
Junior Member |
|
|
Experts.....
A little help guys.....How can I match data's from 2 different block...and if there are records with the same name it will automatically get the record and save it in another table/block...
any help will be appreciated.......
thanks a lot in advance......
raizen.......
|
|
|
Re: Matching data in 2 different blocks..... [message #191991 is a reply to message #191949] |
Sat, 09 September 2006 12:35 |
RJ.Zijlstra
Messages: 104 Registered: December 2005 Location: Netherlands - IJmuiden
|
Senior Member |
|
|
Hi Raizen,
Like to help, but...
What exactly do you mean by
records with the same name
?
Does this mean some column in block A has the same value as some column in block B? Or whatever, please explain.
Also 'it will automatically get the record' etc
Do you mean that a row from block A must be inserted in the base table of block B?
Regards,
Rob Zijlstra
|
|
|
|
|
|
Re: Matching data in 2 different blocks..... [message #194273 is a reply to message #194193] |
Thu, 21 September 2006 06:26 |
raizen_underground
Messages: 28 Registered: September 2006 Location: Manila, Phillipines
|
Junior Member |
|
|
david....
here's the scenario...I have 2 Tabular Blocks with with the same row but it came from different table...now the requirements is whenever there is same record in the 2 tabular blocks...the record will automatically copied in another tabular block w/c have the same row like the other 2 blocks....and i will decide if i will savew it or not...I already use global variable but still not working....plssss help me with this one.....desperately need this....
tnx....
raizen....
|
|
|
|
Re: Matching data in 2 different blocks..... [message #194647 is a reply to message #194412] |
Sat, 23 September 2006 09:04 |
raizen_underground
Messages: 28 Registered: September 2006 Location: Manila, Phillipines
|
Junior Member |
|
|
david.....
I did try the code in the URL that you gave to me but still theres no result showed in block c even if there are records in block a and block b that have the same value....can you code it for me plssssss.....Its for my thesis and my defense is 3 days from now but still i havent done anything yet regarding this matter....this is the main requirement of my thesis...plssss if you have an idea or code bout this, plssss post it in this topic....
tnx in advance.....
raizen....
|
|
|
|
|
Re: Matching data in 2 different blocks..... [message #194772 is a reply to message #194764] |
Mon, 25 September 2006 04:10 |
shahidmughal
Messages: 91 Registered: January 2006 Location: Faisalabad Pakistan
|
Member |
|
|
hi
i hope u r fine.
please note the following query
put it into the trigger of that field from which you want to go to the block c
you cant put it in
Key-Next-Item
trigger
----------
go_block('c');
clear_block;
-----------------------------------------------------------
CURSOR example IS
SELECT * from table a union select * from table b;
BEGIN
OPEN example;
loop
FETCH example
----(your all field which are to fetch)
INTO c.v1,c.v2
exit when example%notfound;
next_Record;
end loop;
CLOSE example;
END;
-----------------------------------------------
i hope this will solve your problem
but reply me after checking this procedure
-------------------------------------------
Regards,
Muhammad Shahid Mughal
Faisalabad Pakistan
[Updated on: Mon, 25 September 2006 04:13] Report message to a moderator
|
|
|