Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running a specific Foxfire! request from code rather than the Foxfire GUI.

Status
Not open for further replies.

dmusicant

Programmer
Mar 29, 2005
252
0
0
US
I am pretty sure this is doable, but am not seeing it thumbing through the Foxfire! reference manual. I figure it looks something like DO FOXFIRE WITH ( ... a set of parameters, which would obviously include a preference set and the name of a request and its required parameters, if any).

Does anyone know how to do this?

I just wrote a utility that fixes an error in my data but the proof would be to run the Foxfire request that creates a printable report from that data. I'd like to run that request right from the utility which prompts me for info that allows it to fix the data.
 
I suppose this in the header of FFOXFIRE.PRG gives a good idea of how this can be done:

*-----------------------------------------------------------------------------
**BEGIN SAMPLE**
*-----------------------------------------------------------------------------
* EXAMPLE CALL
* Note: since FFOXFIRE.PRG is the top-level program in FOXFIRE.APP, a
* call of "DO FOXFIRE WITH..." is exactly the same as "DO FFOXFIRE WITH..."
*
* DO FFOXFIRE WITH "REQUEST","User","Department","FFCONFIG.PRG"
* DO FFOXFIRE WITH "REQUEST","Mary","Accounting","MYCONFIG.PRG","INVENTRY"
* DO FFOXFIRE WITH "UTILITIES","REINDEX","","FFCONFIG.PRG"
*
* For additional examples, see FFMODMNU.PRG (in the \GOODIES directory).
*
*-----------------------------------------------------------------------------
**END SAMPLE**
*-----------------------------------------------------------------------------
 
This addition to the utility accomplishes what I was after:

If ALERT("Do you want to see the tracklisting?","Yes;No")=1
lcWasdef=Full(Curd())
Set Defa To W:\Data\Fox\DJ\FF30V5
Do FFOXFIRE With "REQUEST","","","ffCONFIG.PRG","DA_PRCPL"
Set Defa To &WASDEF
Endif

The only parameter needed was the request name, probably because that request is in the default preference set.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top