(non)database blocks issues [message #317214] |
Wed, 30 April 2008 01:03 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
suhasbr
Messages: 23 Registered: April 2008 Location: Chennai
|
Junior Member |
![suhas.begari@gmail.com](/forum/theme/orafaq/images/google.png)
|
|
Hi every one,
I have a non database block in which if i enter a value and press when validate item all the other fields in the block will be populated. Now i also have a database block with me. This block how do i execute. I can't give this block in new form instance and give execute_query. Can any one tell me how do i pass the values from NDataBlock to Datablock. Can any one please let me know how to do it.
Its urgent.
[MERGED by LF]
[Updated on: Fri, 02 May 2008 15:46] by Moderator Report message to a moderator
|
|
|
Re: To pass value from Databaseblock and Nondatabase block [message #317222 is a reply to message #317214] |
Wed, 30 April 2008 01:21 ![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) |
irfan.ocp
Messages: 29 Registered: February 2008 Location: Karachi, Pakistan
|
Junior Member |
|
|
Hi Dear.
Well a little confusion with your query you had posted.
let me clear that what you want to do.
1. Pass tabular data from Non-Database Block to Database Block.
2. Enter data in non-database block which will retrieve data like querying records. or else you want to do.
Kindly clear us for your further help.
Best Regards,
Muhammad Irfan Bakali.
|
|
|
|
|
|
|
|
|
|
|
|
Re: How to get multiple data [message #317726 is a reply to message #317594] |
Fri, 02 May 2008 16:00 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
![](/forum/images/custom_avatars/72104.gif) |
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
Quote: | We can't give next_record for nondatabase block.
|
Whoa! Slow down a little bit, please. What makes you think so? Why couldn't you use NEXT_RECORD for a non-database block? What prevents you to do so? (For your information: yes, you CAN use it).
So, this non-database block displays only one record (in other words, we can assume that its layout is "form" instead of "tabular"). If you want to see all records, obviously, you'll have to scroll through all of them, one by one. Once the block is populated, you don't have to do anything - pressing the "down" arrow key will move to the next record. If you, however, want to code it, you could create a button and write WHEN-BUTTON-PRESSED trigger with only one statement: DOWN. You could even make it fancy by adding some more code to it (or KEY-DOWN trigger):IF :system.last_record = 'TRUE' THEN
message('You are on the last record');
ELSE
down;
END IF;
|
|
|