Fetching values into a multi record block from another table [message #123470] |
Mon, 13 June 2005 12:05 |
vinodkumarn
Messages: 60 Registered: March 2005
|
Member |
|
|
Hi,
I have one multi record block in which i want to fetch values
(more then one record) from another table using select statement
I have achieved this by using cursors, but i heard that there is a way to do this without using cursors.HOW DO I DO THIS WITHOUT USING CURSORS.
can anybody help me
|
|
|
|
|
|
|
|
Re: Fetching values into a multi record block from another table [message #124031 is a reply to message #124030] |
Wed, 15 June 2005 21:15 |
vinodkumarn
Messages: 60 Registered: March 2005
|
Member |
|
|
You have one block A which is based on table X -- CORRECT
but you also have fields in the block that you want to populate from table Y --- WRONG
I do not have any extra fields to populate from table Y, i have only fields from table X, i have to populate records from table Y into these fields itself
Yes, there is no relationship between tables X and Y
i hope i have answered your doubts
|
|
|
|
|
|
Re: Fetching values into a multi record block from another table [message #124222 is a reply to message #124136] |
Thu, 16 June 2005 21:47 |
|
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
Base the block on a view which is table y MINUS table x and then put a check-box on each line. If the user adds the extra data then the check-box is automatically 'ticked'. The user can also manually tick the check-box. When they push the 'add' button, via a loop through the block, all records that have been 'ticked' are inserted in table x.
David
|
|
|