Focal Point
[Solved] Display User ID in Dashboard

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

June 18, 2012, 08:33 AM
Danny-SRL
[Solved] Display User ID in Dashboard
A user enters the BID.
How can one display his User-ID?
In the banner?
Elsewhere?

This message has been edited. Last edited by: Danny-SRL,


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

June 18, 2012, 11:09 AM
susannah
Hey Danny, we do it on the public dashboard, we decode the user's login id (his kerberos/siteminder/whatever) using the mre repository to get his displayname,and then issue a 'good morning and welcome {your name}' on the default launch block. that block has links to all the views the user has... we don't force the user to go hunt for the 'views' tab thing...




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
June 18, 2012, 02:27 PM
Danny-SRL
hhhmmm... could you post an example, please?


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

June 18, 2012, 02:48 PM
susannah
an example of....?
surely you don't mean
TABLE FILE WF_MRUSERS
IF USERID EQ '&kerberos'
PRINT USERNAME
ON TABLE SAVE
END
-RUN
-READ SAVE &displayname.A255
-SET &displayname=TRUNCATE(&displayname);
...
FILENAME=WF_MRUSERS, SUFFIX=SQLORA , $
SEGMENT=WF_MRUSERS, SEGTYPE=S0, $
FIELDNAME=USERID, ALIAS=USERID, USAGE=A128, ACTUAL=A128, $
FIELDNAME=PASSWORD, ALIAS=PASSWORD, USAGE=A128, ACTUAL=A128,
MISSING=ON, $
FIELDNAME=LOGINNAME, ALIAS=LOGINNAME, USAGE=A128, ACTUAL=A128, $
FIELDNAME=USERNAME, ALIAS=USERNAME, USAGE=A255, ACTUAL=A255,
MISSING=ON, $
FIELDNAME=EMAIL, ALIAS=EMAIL, USAGE=A64, ACTUAL=A64,
MISSING=ON, $
FIELDNAME=ROLEID, ALIAS=ROLEID, USAGE=A48, ACTUAL=A48, $
FIELDNAME=PROPERTIES, ALIAS=PROPERTIES, USAGE=A255, ACTUAL=A255,
MISSING=ON, $
FIELDNAME=ISACTIVE, ALIAS=ISACTIVE, USAGE=A1, ACTUAL=A1, $




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
June 19, 2012, 03:59 PM
nd
Bookmarking this!

Thanks, Susannah.


WF: WebFocus 7.7.03
Data: Oracle, MSSQL, DB2
OS: Windows
Output: HTML/AHTML,PDF,EXL2K FORMULA, COMT
June 19, 2012, 04:14 PM
susannah
naw...you're kidding. This is bookmark worthy??? no way. Big Grin
June 28, 2012, 05:00 PM
Doug
quote:
This is bookmark worthy???
Sure enough Susannah. If it's good enough for FP then it is Big Grin
June 29, 2012, 01:20 PM
ReddyP
I am not sure of the user ID, but if you want to display their MRE name field, you can do that with dashboard setting.
Go to view builder, select the view where you want to display the user name, and select settings from the view builder.
In the settings, there is an option for showbanner user greeting. select true and you are all set.


7.7.01,windows2008 R2
June 30, 2012, 01:56 PM
Danny-SRL
Reddy,

Thanks. A bit of sleuthing and I found it.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF