In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
August 06, 2009, 06:19 AM
<JG>
Depending on how and where you are running the code you have varying values for
&FOCFEXNAME, &FOCFOCEXEC and &FOCINCLUDE
Devstudio edaserve
&FOCFEXNAME (returns focexecname.fex when open in editor, focexecname when not open) &FOCFOCEXEC (returns _focexecname.fex when open in editor, _focexecname when not open) &FOCINCLUDE (returns focexecname.fex when open in editor, focexecname when not open)
Devstudio projects
&FOCFEXNAME (returns ADHOCRQ when open in editor, focexecname when not open) &FOCFOCEXEC (returns _ADHOCRQ when open in editor, _focexecname when not open) &FOCINCLUDE (returns ADHOCRQ when open in editor, focexecname when not open)
Devstudio MRE
&FOCFEXNAME (returns ADHOCRQ when open in editor, focexecname when not open) &FOCFOCEXEC (returns _ADHOCRQ when open in editor, _focexecname when not open) &FOCINCLUDE (returns ADHOCRQ when open in editor, focexecname when not open)
This post is a great resource, but there's one situation missing: I have an HTML Composer page that populates a control with an external fex, so this is not INCLUDE or EX. I wonder what the values of these variables are when I open the file in the GUI...
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
October 26, 2012, 01:39 PM
Francis Mariani
Control populated by external procedure - Edit in GUI
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
October 28, 2012, 04:46 PM
Waz
I wonder if that is called by IBIF_adhocfex ?
Does that mean that when you lock down WebFOCUS by turning off IBIF_adhocfex, it breaks ?
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
November 06, 2012, 05:44 PM
Francis Mariani
For some reason, even though I turned off the HTML Composer Preview settings - Report and Graph Preview, my multi-select tree control retrieves all the values.
I thought I could bypass this by detecting if the external procedure that loads the tree control is running via HTML Composer - only retrieve 10 rows, but it doesn't work - all rows are returned.
-* Reduce the number of output rows for HTML Composer design mode only (doesn't work)
-IF &FOCFEXNAME NE 'ADHOCRQ' GOTO NOLIMIT;
WHERE READLIMIT EQ 10
-NOLIMIT
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
November 06, 2012, 07:24 PM
susannah
uh ... i don't see how that would be possible. its adhoc only if the fex is open in the editor. being a drop-down populator external fex, summoned up by the html page, wouldn't constitute the external fex being 'open in the editor'...hence named 'adhoc'. Did i understand what you're doing right?
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
November 06, 2012, 10:21 PM
Francis Mariani
susannah, I was hoping I would be able to detect in the external procedure that loads a control whether or not is was called while running in the HTML Composer GUI editor or called while running normally...
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server