Focal Point
[CLOSED] Capturing variables that users enter

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

May 31, 2011, 04:54 PM
MO Admin
[CLOSED] Capturing variables that users enter
We use Resource Analyzer to track when reports are run by which users. However, we are wanting to capture and log what variables the users enter when running the reports. Does anyone know of a way to do this?

Thanks

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


Kevin
______________________
Production: WebFocus 7.6.11 on Win2K3 Server
Test: WebFocus 7.6.11 on Win2K3 Server
Formats: Excel2K, PDF, HTML
May 31, 2011, 07:51 PM
JohnO
RA does not capture variables. To capture & variables you will need to create a write your own code.

The best way would be to use lower case variable names so that they list below the system variables when you use
  -?&
. You could capture the output from this command and store your variables in a structure of your choice. You would then need to link this data to the RA data using the value of
 &FOCFOCEXEC 
to identify the fex.

Otherwise you will need to hardcode each report's variables and
 -WRITE 
them or
 MODIFY 
them to a data store.

Quite a bit of effort is required...


WF 7.6.8, Windows
Any output format: HTML, Excel, PDF, XML, etc.
May 31, 2011, 09:12 PM
Jim Morrow
You can get the user provided variables and everything else sent to the server in a query string from the IIS log.

A while back there was a thread on reading the IIS log.


Jim Morrow
Web Focus 7.6.10 under Windows 2003
MVS 7.3.3



June 01, 2011, 12:54 AM
<FreSte>
There was also a thread posted by GamP in december 2007 that does exactly what you want.

Write run-time &Variables to a file
June 01, 2011, 05:54 PM
MO Admin
GamP's solutions looks like what I need. One question though. Is that something that needs to be put into each and every report? And if so, at the beginning or end?

Thanks


Kevin
______________________
Production: WebFocus 7.6.11 on Win2K3 Server
Test: WebFocus 7.6.11 on Win2K3 Server
Formats: Excel2K, PDF, HTML
June 03, 2011, 04:56 AM
<FreSte>
Kevin,

That depends. If you only want to capture the variables submittded by the user, then include this file at the begin of your procedure.
If you also need the variables set within the procedure, then include it at the end.
All the variables that are set/available just before the line saying -? & are being captured.

-Fred-

... and yes, you have to include this for every procedure.
June 03, 2011, 11:44 AM
MO Admin
We are only wanting to capture the variables that the users enter. We want to track what accounts they are looking up.

I will do some experimenting with this. Thank you for your help.


Kevin
______________________
Production: WebFocus 7.6.11 on Win2K3 Server
Test: WebFocus 7.6.11 on Win2K3 Server
Formats: Excel2K, PDF, HTML