DSchneider
6th June 2002, 13:02
Hi all,
does anybody know, if it is possible, to get more than one record, out of zoomed session?
A little example: In session printing Sales statistics (tdsst0401m000) you can fill a special selection with a button on the right site. If I want to fill a new record, I can search it by a zoom-session. In that zoom, I want to get two or more records in one step.
How can I do this? Is there a function, I can program, to get that functionality?

Thanks for any help

Best Regards
Daniel

NPRao
6th June 2002, 20:05
you might try to explore more by coding your own function, here is a brief logic to start with -


for i = 1 to filled.occ
if mark.table(i) then
do.occ(i, get.records)
endif
endfor

function get.records()
{
static count, size
long records.array(1) based
if count > size - 1 then
count = count + 1
size = size + 5
alloc.mem(records.array, size)
endif
records.array(count) = tdpur100.orno
count = count + 1
}


In the function get.records, you need to assign the records into a dynamically growing array and return the array from the zoomed session to the calling session.

~Vamsi
6th June 2002, 20:17
http://www.baanboard.com/baanboard/showthread.php?s=&threadid=816