Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Number of user hits on report

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Number of user hits on report
 Login/Join
 
<ABHINAV BALI>
posted
Hi,

I want to create a report which can give me information as which user has run which report and number of hits or number of times user has run the report along with timestamp.

so , for example:

userid, reportname, hits,timestamp

Does anyone has done similar before?

Thanks
Abhi

This message has been edited. Last edited by: Kerry,
 
Report This Post
Expert
posted Hide Post
This has been asked before, and from memory, several answers were given.

We here have a fex included, effectivly in each report that writes the required info, who/what/when, into a db, that can then be reported on.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Master
posted Hide Post
Here's the fex we use:
-* File outcmusr.fex
 FILEDEF OUTCMUSR DISK &&BASEAPP..outcmusr.txt ( LRECL 80 RECFM V APPEND
-RUN
-SET &NOW=HHMMSS('A8');
-SET &DTLPGM=EDIT(&FOCFOCEXEC,'$99999999');
-WRITE OUTCMUSR &DATEYYMD &NOW &DTLPGM &OUTPUT &RUSER &&STAFF_NAME
-RUN


We just do a -INCLUDE of this program wherever we need it. Obviously those items that are not system variables (&RUSER, &&STAFF_NAME and &OUTPUT) have to be established prior to the -INCLUDE.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Expert
posted Hide Post
Of course, the downside of appending a file is thta if two users try to update the file at precisely the same time, there is a chance of one of the updates not being performed.

You'd be better off creating a FOCUS DB on a sync machine or using an RDBMS like MS SQL for your repository.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Virtuoso
posted Hide Post
An example of what T proposes is what I use at one of my clients:
-SET &RUSER = UPCASE(8, &RUSER, 'A8');
SQL SQLMSS
INSERT INTO DBO.DS_LOG ( FEX_NAME,  USER_ID,  SERVER_ID,  LOG_DATE, LOG_TIME )
                VALUES ( '&WEBRPC', '&RUSER', '&&SERVER', '&YYMD',  '&TOD'   );
END
SQL SQLMSS
COMMIT;
END

&WEBRPC contains the name of the fex which is being set in the report or maintain itself. &&SERVER is being set in the edasprof.prf.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Expert
posted Hide Post
What ever the destination of the info, there is a level of infrastructure that needs to be put in place.

My suggestionnis to have one generic fex that is included in all fexes, and this one can then include any other peices of code that needs to be set for all fexes.

An example of this would be stats gathering, and generic constants.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
You can have a sink machine process that writes to a database, but instead of -INCLUDing the code in each focexec, you can insert a run entry into DEFAULT.WFS before the target focexec is executed. In this way, you can also have a piece that runs after the focexec that can capture the run time into the same usage auditing database via the sink machine. The nice part about this approach is that the usage database can also accommodate a record of run parameters or other relevant statistics.


Max...

Production: WebFOCUS 7.67, ArcIMS 9.1, MRE, BID
Test: WebFOCUS 7.67, ArcIMS 9.1
Platform: Win 2003
 
Posts: 4 | Location: Melville, NY | Registered: November 06, 2007Report This Post
Platinum Member
posted Hide Post
If you have purchased the WebFOCUS Pro Server you already have a component called "Resource Analyser". Just turn it on and you get all kinds of reports about who is using what and when. Plus you can do your own reports from the data file of all usage that is kept.


Release 7.6.9
Windows
HTML
 
Posts: 226 | Registered: June 08, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Number of user hits on report

Copyright © 1996-2020 Information Builders