Focal Point
turn off a drill down link

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

September 26, 2007, 01:42 PM
Fernando
turn off a drill down link
I have built a drill down that links to an excel file. The file changes every day. However, on some days the file does not exist and I need to turn off the link. (I get the http 404 error).

I do not have direct access to the actual file since not on a server I can reah directly.

How can I turn off the link when the file is not there?

Fernando


Prod WF 8.1.04, QA WF 8.2.03, Dev WF 8.2.03
September 26, 2007, 01:56 PM
Francis Mariani
If a tree falls in a forest and no one is around to hear it, does it make a sound?


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
September 26, 2007, 02:10 PM
Jason K.
"The file changes every day. However, on some days the file does not exist "

can you just make the file empty insted of deleting it?


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
September 26, 2007, 02:24 PM
Tom Flynn
Check this


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
September 26, 2007, 04:15 PM
susannah
JasonK...if its a FOCUS file,
then
CREATE FILE filename NEW
should do the trick for you.
give it a whirl.

Fernando, here's the way i do it.
the STATE command gives a return code of 0 if its there and i-forget-what-but-not-0 if its NOT there...
CMD STATE d:\...\myfile.xls
-RUN
-SET &comment = IF &RETCODE IS 0 THEN ' ' ELSE '-*';
...now in my fex...
&comment.EVAL TYPE=DATA,COLUMN=FRED,FOCEXEC=fexanme(..),$

so the comment is blank if all is well.
and the comment is -* if all is not well.

works for me...
give it a try.

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




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
September 26, 2007, 04:23 PM
Francis Mariani
Since Fernando "does not have direct access to the actual file since it's not on a server he can reach directly" how can any of this work?


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
September 26, 2007, 07:37 PM
susannah
hmmm.
all i can think of is
FILEDEF thatfile DISK \\servername\drive\dir\thatfile.xls
before the STATE bits.
If \\servername isn't on his network, then telepathy might work.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
September 27, 2007, 09:10 AM
PBrightwell
Is the Excel file in the drill down created in a focexec? If it is add "ON TABLE SET EMPTYREPORT ON" and it will create an empty spreadsheet with nothing but the headings. If it is created some other way there are usually server commands that you can check to see if it exists, what operating system are you on?


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes