General information
Category:
Third party products
Title:
How to select Preference Set B4 calling Foxfire?
Hi all,
In my ffprefer, I have few preference set records which I want to select before calling the Request Manager of Foxfire. Below is the code I've written but the preference I've selected never shown instead the 1st. record is shown :
* Create ff_batch cursor
SELECT 0
CREATE CURSOR ff_batch ( ;
REQUEST C(8), ;
ACTION C(40), ;
USER_ID C(4), ;
USER_DEPT C(10), ;
CONFIG M(10), ;
TIMEOUT N(4), ;
MACROOK L(1), ;
NOPRTPRMPT L(1), ;
FLTSTRALS M(10), ;
FLTTITLE M(10), ;
FLTARRAYS M(10), ;
FLTDISPLAY M(10), ;
SENDTO C(10) ,;
OUTPUTFILE M(10), ;
DOSPRTR M(10) ,;
WINPRTR1 M(10) ,;
WINPRTR2 M(10) ,;
MACPRTR M(10) ,;
ASKATRUN M(10) ,;
HEADING M(10) ,;
FF_FILTER M(10), ;
FF_FRXNAME M(10), ;
FF_SQL M(10) ,;
FF_COUNT N(9) ,;
SYSTEM M(10) ,;
ERROR M(10) ,;
PREFSET C(20), ;
SERVERFILE M(10), ;
SERVERNAME M(10) )
APPEND BLANK
* tcnmprefset is a preference set parameter passed to this program
REPLACE action WITH 'REQUEST MANAGER', config WITH 'PAYRPT.APP', ;
prefset WITH tcnmprefset
IF FILE("FOXFIRE.INI")
RENAME FOXFIRE.INI TO FFBACK.INI
ENDIF
LOCAL lnFile
lnFile=FCREATE("FOXFIRE.INI")
=FWRITE(lnFile,tcnmprefset)
=FCLOSE(lnFile)
DO ("FOXFIRE")
........
I have also put a WAIT WINDOW at the last line in the ffconfig at the CASE Preference Setup and lwhatpref is equal to the preference set I wanted but when the REQUEST MANAGER it is wrong.
Can someone help me on this? Thanks.
Regards,
Farouk Yew Abdullah
Next
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