General information
Category:
Third party products
>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
Farouk,
The PREFSET field in FF_BATCH was never intended as you have guessed it to be: a signal to Foxfire! which preference set you want to be in effect for the current record in FF_BATCH. For documentation on this, see your FFOXFIRE.PRG program, and do a search on PREFSET. Here you will see that PREFSET and several other fields were set up for a Server version of Foxfire!, and are not used in the current version.
In fact, only one preference set can be in effect for any particular FF_BATCH batch cursor. If other than the startup preference is desired, after opening your FF_BATCH cursor, open your FFPREFER.DBF (in another work area), SELECT FFPREFER, move your record pointer to the desired preference set record, and then make your DO FOXFIRE.APP call.
Dan
Foxfire! Technical Support
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