General information
Category:
Forms & Form designer
Well, the easiest way I can think of off-hand is--before setting up for the report do CREATE VIEW myView FROM ENVIRONMENT
and then SET VIEW TO myView after running the report. If your app is strictly utilitarian, that might be all you need. If it's an app you're writing for others, then you need something like the following (I'm assuming only one table is open and important--it's more complicated otherwise, so let me know if you want more info)...
***BEGIN EXAMPLE--untested code
LOCAL cAlias, nRecno, nOrder, cFilter
cAlias = ALIAS()
nRecno = RECNO()
nOrder = ORDER()
cFilter = FILTER() && say filter is: ID=49999, cFilter is "ID=49999"
**** do all the report stuff
**** end of report stuff
SELECT cAlias()
SET ORDER TO (nOrder)
SET FILTER TO &cFilter)
GO nRecno
***END EXAMPLE
There are several ways to do this that are way more oopy--for example if you do this in a lot of different places, you'll probably want a class that's responsible for handling this kind of operation. In fact I should, too! <s>
>How do I access the 'data state' ?
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only