Focal Point
[SOLVED]Drill down to a file not in APP PATH

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/337108843

January 22, 2010, 09:51 AM
CT
[SOLVED]Drill down to a file not in APP PATH
I am creating a drill down from a graph to a .fex in DevStudio. It works fine if I have the .fex in a folder which is in APP PATH. I am trying to access it from a different folder and using the syntax &IBIAPP_app to specify the folder name. I get an error
(FOC295) A VALUE IS MISSING FOR: &IBIAPP_app

ON GRAPH SET STYLE *
TYPE=DATA, COLUMN=N3, JAVASCRIPT=runReport(N4), $
TYPE=HEADING, LINE=1, JUSTIFY=CENTER, $
TYPE=HEADING, LINE=1, ITEM=1, OBJECT=TEXT, FONT='ARIAL', SIZE=9, STYLE=BOLD, $
ENDSTYLE
ON GRAPH HOLD AS GRP1 FORMAT HTMTABLE
END
-HTMLFORM BEGIN
<html>
<SCRIPT LANGUAGE="JavaScript">
function runReport(N4) {
 var uri = '/ibi_apps/WFServlet?IBIF_ex=ct-db-today-datastat-drill&IBIAPP_app=ct_test';
  uri += '%26dataStatusID=' + N4   ;
 window.open(unescape(uri),'','menubar=no,toolbar=no,status=no,location=no,width=700,height=500,resizable=yes,scrollbars=yes,left=800,top=200, titlebar=no, fullscreen=no');

}
</script>
<body>
!IBI.FIL.GRP1;
</body>
</html>
-HTMLFORM END


Thanks for your help.

This message has been edited. Last edited by: CT,


7.6.9, XP
January 22, 2010, 11:36 AM
Francis Mariani
quote:
IBIAPP_app

ct_test must be a sub-folder in the apps folder, even if it's not in the APP PATH. If it's not in the APP PATH, you need to APP MAP it first


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
January 22, 2010, 11:47 AM
Francis Mariani
Wrong answer!

The reason for the error is that WebFOCUS is attempting to translate &IBIAPP_app by looking for a Dialogue Manager variable of that name. WHen you embed an & in non-WebFOCUS code, JS for example, you need to code it like this:

var uri = '/ibi_apps/WFServlet?IBIF_ex=ct-db-today-datastat-drill&|IBIAPP_app=ct_test';
a 'pipe' character right after the ampersand.


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
January 22, 2010, 12:09 PM
CT
Francis,
Thank you. As always, your posts are very helpful Smiler
I added the 'pipe' character, but to make it work I had to move the IBIAPP_app before IBIF_ex.
  
var uri = '/ibi_apps/WFServlet?IBIAPP_app=ct_test&|IBIF_ex=ct-db-today-datastat-drill';



7.6.9, XP