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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing a Parameter to a FEX and Running that FEX 1

Status
Not open for further replies.

LeonelSanchezJr

Programmer
Jan 26, 2001
522
US
I am trying to run a parameterpage.fex from a calling.fex.
The calling.fex should pass a rptname (parameter) to the parameter.fex

My code goes like this:
-* CALLING FEX
-SET &RPTNAME = 'app/airimpor.fex';
EX gpnpm9fq
-RUN


The parameter does not recognize the parameter being passed to it. It's as if the parameter &RPTNAME never gets passed.

Thanks,

Leo ;-)
 
If you're passing parameters between different fex's, you must use double-ampersand variable field names, i.e. call your field &&RPTNAME. You can reset this at the end by saying: -SET &&RPTNAME =;
 
Better is to -include the called focexec:

-* CALLING FEX
-SET &RPTNAME = 'app/airimpor.fex';
-INCLUDE gpnpm9fq
-RUN

This does not trigger another agent on the server to run the request

Frank van de Kant
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top