baldie
2nd June 2008, 13:49
In a report on detail level I read in an extra field. Not possible to do in programscript.
But this extra field should be the field on which to sort.
Is there a solution to do this?
I tried something like below, and added the extra field as a sort field in input, but had no luck with it:
declaration:
#DEFINE ORIGINAL.FUNCTION() originally.generated.r.write.seq.file()
#DEFINE r.write.seq.file() ORIGINAL.FUNCTION()
detail.1:
before.layout:
select tiitm001.kitm(=extra field)
from tiitm001
where tiitm001._index1 = {:tiitm001.item}
selectdo
endselect
functions:
#UNDEF r.write.seq.file()
function extern r.write.seq.file()
{
ORIGINAL.FUNCTION()
}
But this extra field should be the field on which to sort.
Is there a solution to do this?
I tried something like below, and added the extra field as a sort field in input, but had no luck with it:
declaration:
#DEFINE ORIGINAL.FUNCTION() originally.generated.r.write.seq.file()
#DEFINE r.write.seq.file() ORIGINAL.FUNCTION()
detail.1:
before.layout:
select tiitm001.kitm(=extra field)
from tiitm001
where tiitm001._index1 = {:tiitm001.item}
selectdo
endselect
functions:
#UNDEF r.write.seq.file()
function extern r.write.seq.file()
{
ORIGINAL.FUNCTION()
}