Focal Point
Need a parm which holds user name running the report

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

July 25, 2006, 10:07 AM
oceannative
Need a parm which holds user name running the report
I am using &FOCFOCEXEC to retrieve the report name, but my company is also wanting to pull the user name of the person who logged into the MR dashboard and printed the report. Anyone know what I can use?


Prod: WebFOCUS 7.1.6 - on Win 2K3/Tomcat - MRE/BID/RCaster/VisDis and AS400 (JDEWorld)
July 25, 2006, 10:24 AM
Pete
Hi Ocean,

you can try

-SET &USR = CNCTUSR('A8');

P.


D: WF 7.6.2 P. : WF 7.6.2 on W2003
------------------------------------------------------------------
I see myself as an intelligent, sensitive human, with the soul of a clown which forces me to blow it at the most important moments.

-Jim Morrison-

July 25, 2006, 10:43 AM
oceannative
Would I then put &USR in the footer with my &FOCFOCEXEC statement?


Prod: WebFOCUS 7.1.6 - on Win 2K3/Tomcat - MRE/BID/RCaster/VisDis and AS400 (JDEWorld)
July 25, 2006, 10:46 AM
Pete
If you want to put the reportname and the username in the footer of your report ...yes


D: WF 7.6.2 P. : WF 7.6.2 on W2003
------------------------------------------------------------------
I see myself as an intelligent, sensitive human, with the soul of a clown which forces me to blow it at the most important moments.

-Jim Morrison-

July 25, 2006, 11:07 AM
oceannative
hmmm.... doesn't appear to work... I put the SET in, then put FOOTING
"Prepared on &DATETDMYY by &USR" in the page footer, but when I run it (even in MRE) it prompts for USR to be entered... also, when I try to go back into it in Report Painter, I get a parsing error saying the user is empty.

any thoughts?


Prod: WebFOCUS 7.1.6 - on Win 2K3/Tomcat - MRE/BID/RCaster/VisDis and AS400 (JDEWorld)
July 25, 2006, 11:27 AM
Tony A
ON,

Try

-SET &USR = GETUSER(USERID);

as an alternative.

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 
July 25, 2006, 11:53 AM
oceannative
Tony A - that gave me the administrators user name... I went back and checked Pete and had forgotten the "-" at the beginning -- it works now. Thanks to you both for your time and advice!

ocean


Prod: WebFOCUS 7.1.6 - on Win 2K3/Tomcat - MRE/BID/RCaster/VisDis and AS400 (JDEWorld)
July 26, 2006, 03:02 AM
Pete
Ocean,

Sorry that i wasn't able to help you out immediately , i did my time and went home *smile*


D: WF 7.6.2 P. : WF 7.6.2 on W2003
------------------------------------------------------------------
I see myself as an intelligent, sensitive human, with the soul of a clown which forces me to blow it at the most important moments.

-Jim Morrison-

July 27, 2006, 08:37 AM
oceannative
No worries,Pete! I appreciate anyone taking the time to assist a peer find a solution! Smiler

ocean


Prod: WebFOCUS 7.1.6 - on Win 2K3/Tomcat - MRE/BID/RCaster/VisDis and AS400 (JDEWorld)