Is it possible to retrieve records from a datablock same as retrieving records from a cursor,
I am having two data blocks in two different tabs, Say B1 in Tab1, B2 in Tab2
B1 is filled with two records, now when I switch to Tab2,
I want all records of B1 in B2, assuming that blocks are having the same structure.
The code I wish to write is,
Take all the records like a cursor,
Is this possible???
I need to show it before saving,
I tried this and it is successful somehow, do not know about any further problems,
I took the record count of both blocks
if :B1.reccount <> :B2.reccount
for i in 1..:B1.reccount
assign values from B1 to variables.
assign values from variables to B2
This is working, Now I just want to know, if my block is having numerous fields, say more than 100 (may not be a value for large databases)
how can I replace these variables here.
I mean is it possible to declare something like a cursor record type.
For eg : r1 cursor%rowtype