[SHARING] kevlar for &ECHO: a cool idea for dev fexes going to production
-SET &ECHO = IF &FOCFEXNAME IS 'ADHOCRQ' THEN 'ALL' ELSE 'OFF';
Pretty much when you're developing fexes, you're running them live and not saved. When you run them live, the &FOCFEXNAME will be 'ADHOCRQ' regardless of the true fexname. So when you run live, you probably want to see the echo. Once you save your fex, eg on your devbox before it moves over to production, you might want a way to make sure you've turned off those pesky browser-eating Echos... I call it Kevlar... ain't bullet proof...but not too shabby.This message has been edited. Last edited by: Kerry,
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
February 20, 2009, 12:45 PM
j.gross
Nice.
If you amend that to
-DEFAULT &ECHO=OFF; -SET &ECHO = IF &FOCFEXNAME EQ 'ADHOCRQ' THEN 'ALL' ELSE &ECHO;
you get the same effect, but you'll be able to override it (say when testing a driver fex).
February 20, 2009, 12:47 PM
susannah
even sweeter! remembering to switch prompt for parms to OFF before moving to prod.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
February 20, 2009, 02:46 PM
FrankDutch
Nice suggestion
maybe add one single line on top
TYPE the program &FOCFEXNAME crashed, contact 999 for support !
-DEFAULT &ECHO=OFF;
-SET &ECHO = IF &FOCFEXNAME EQ 'ADHOCRQ' THEN 'ALL' ELSE &ECHO;
Even if the fex is tested very well there could be a reason that it failed.
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
February 20, 2009, 03:24 PM
susannah
how bout if i just give 'em your phone number, Frank?? oh its been a long week.!
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
February 20, 2009, 03:34 PM
FrankDutch
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7