|
|
|
Re: How to loop thru a multi record block [message #130960 is a reply to message #130936] |
Wed, 03 August 2005 10:45 ![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) |
vijay1974
Messages: 3 Registered: August 2005
|
Junior Member |
|
|
This validation should happen before commiting to the database.
Here is the scenario.
Col1 Col2 Col3 .................
Row 1 A AAAA 1111
Row 2 C CCCC 3333
Row 3 B
.
.
.
User can enter only certain combinations of values in col1, say user cannot enter value B if user already entered A. User should get a error when entered B in the third record.
first_record, last_record, go_record cannot be used in W-V-I or W-V-R or post-change triggers cause they are restricted procedures.
I was wondering is there any other way to loop thru the block.
Any help is appreciated.
Thanks
Vijay
|
|
|
|
Re: How to loop thru a multi record block [message #131033 is a reply to message #130832] |
Thu, 04 August 2005 00:54 ![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) |
manjuvasu
Messages: 22 Registered: May 2005
|
Junior Member |
|
|
hi,
u can try this.
a:=get_block_property('blkname',current_record);
so, it gives u as 1,2,3.... like that as u enter the record.
using for loop as
for i in 1..a loop
u can do u'r validation here.
end loop;
let me know whether it suits u'r need.
|
|
|
|