|
Go
![]() |
New
![]() |
Search
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Member |
Hi All,
I have a requirement where in I need to embed the script to delete the FOC files when the User CLICKS Close Button from the HTML Browser. I will be putting the Confirmation message after the user clicks Close Button. If the User selects Yes then all the Foc files that will be created in that session should be deleted. Can anybody guide me through this as it is an urgent requirement? Thanks in advance. WebFOCUS 7.1 Windows Output: HTML, Excel & PDF |
||
|
|
Master |
I assume that you are not using the edatemp directory to hold these files
because if you are then the will be deleted automatically. HTML CANNOT delete files on the server All you need to do is create a new focexec that contains !del c:\*.* (actually I would not do that but rather give it the correct directory\*.foc structure) The focexec would be executed when the user clicked the confirm button |
|||
|
|
Virtuoso |
You can also use the APP DELETEF command in the focexec.
Ginny --------------------------------- Prod: WF 7.6.5 with 7.6.6 WFRS; AIX 5.2; WebSphere 6.1.0.15 Dev: WF 7.6.5 with 7.6.6 WFRS; AIX 5.3; WebSphere 6.1.0.15 Primarily self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable |
|||
|
|
Virtuoso |
I think one of the big questions is how are you going to get a procedure to run (which would be something kind of form action, url call, etc.) by clicking on a browser window function. Clicking on toolbars, maximize, close, etc. in a standard browser window is no going to perform some function within the windows itself.
Combined with JG's comments, I don't think your approach to this issue is valid. What is the real problem? Why are you needing to delete the FOC files? Are they in EDATEMP? If not, why? More info please... Regards, Darin WF Server: 7.1.6 on Z/OS and Linux, ReportCaster, Self-Service, MRE, Java Data: DB2, DB2/UDB, Adabas, SQL Server Output: HTML,PDF,Excel2K WF Client: Linux w/WebSphere, Servlet, CGI |
|||
|
|
Member |
Actualy at a time nearly 150-200 users will be accessing the report. The report will be developed to pull the real time data. In order to retain the same resultset(In order to Export to PDF/Excel) we are creating the FOC files with the User name who is accessing the report. So when the user closes the Report we need to delete the Foc file that has got created when the user logged in.
WebFOCUS 7.1 Windows Output: HTML, Excel & PDF |
|||
|
|
Virtuoso |
It might be easier for you to leave them there and then have a Report Caster job or a scheduled Windows script go through the directory (hopefully the same one for all of these user-named files) and delete them based on some sort of date and time criteria.
Or you could upgrade to 7.6.5 and make use of the FOCCACHE option. Ginny --------------------------------- Prod: WF 7.6.5 with 7.6.6 WFRS; AIX 5.2; WebSphere 6.1.0.15 Dev: WF 7.6.5 with 7.6.6 WFRS; AIX 5.3; WebSphere 6.1.0.15 Primarily self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable |
|||
|
|
Virtuoso |
As I mentioned, there is NO functional link between closing a web browser and cleaning up the WF server. You could put a button or link on the report itself which would excute a cleanup fex, but if the user doesn't click it, you still need some mechanism to clean them up after the fact as Ginny suggests. The FOCCACHE stuff I saw at this year's Summit conference would be an ideal option for you.
Regards, Darin WF Server: 7.1.6 on Z/OS and Linux, ReportCaster, Self-Service, MRE, Java Data: DB2, DB2/UDB, Adabas, SQL Server Output: HTML,PDF,Excel2K WF Client: Linux w/WebSphere, Servlet, CGI |
|||
|
|
Master |
Now we have the reason. By far the easiest way to manage this is to have a delete at the beginning of the focexec that creates the first extract and not worry about cleaning up on closing the report. |
|||
|
| Previous Topic | Next Topic | powered by eve community |
| Please Wait. Your request is being processed... |
|

