Hi,
I'm using Oracle Forms 6i.
I have a form with 3 blocks on it. Like so:
In block 3 I have a text item which repeats down indefinitely with a scrollbar to the right.
Whenever I insert a new row into Block 3, I check the data and if it's a certain piece of data I update an item in Block 1 and then disable that same Block 1 item using SET_ITEM_PROPERTY.
What I want to do is, everytime I delete a row from block 3, I need to check whether the data deleted was the data that caused Block 1 to be updated. If that data was deleted I would like to reenable the item in Block 1.
The best way I thought I could do this is use the WHEN-REMOVE-RECORD trigger and everytime something is deleted from Block 3, to loop thru the rows left in that block and check whether the data I'm looking for still exists.
How do I do this? I can't seem to get GO_ITEM, PREVIOUS_RECORD, NEXT_ITEM or any other restricted procedure to work in the WHEN-REMOVE-RECORD trigger.
Also, what level should I place this trigger on, I had it at item level but I think that's wrong and it should be at block level?
Any help much appreciated,
Cheers,
Pete
I'm using Oracle Forms 6i.
I have a form with 3 blocks on it. Like so:
Code:
_____________
| BLOCK 1 |
|_____________|
|BLOCK2|BLOCK3|
|______|______|
In block 3 I have a text item which repeats down indefinitely with a scrollbar to the right.
Whenever I insert a new row into Block 3, I check the data and if it's a certain piece of data I update an item in Block 1 and then disable that same Block 1 item using SET_ITEM_PROPERTY.
What I want to do is, everytime I delete a row from block 3, I need to check whether the data deleted was the data that caused Block 1 to be updated. If that data was deleted I would like to reenable the item in Block 1.
The best way I thought I could do this is use the WHEN-REMOVE-RECORD trigger and everytime something is deleted from Block 3, to loop thru the rows left in that block and check whether the data I'm looking for still exists.
How do I do this? I can't seem to get GO_ITEM, PREVIOUS_RECORD, NEXT_ITEM or any other restricted procedure to work in the WHEN-REMOVE-RECORD trigger.
Also, what level should I place this trigger on, I had it at item level but I think that's wrong and it should be at block level?
Any help much appreciated,
Cheers,
Pete