Focal Point
[SOLVED] Full name on html page

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

April 02, 2009, 05:06 PM
Enigma006
[SOLVED] Full name on html page
Hai all..

I have a dashboard which has a html page as launch page. My requirement is like this. I need to display first name and last name of the MR user on that page based on the MR user ID who logs in to see that dashboard. Those names are stored in a database or a flat file. How can I achieve this?

thanks..

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


8.1.05
HTML,PDF,EXL2K, Active, All
April 02, 2009, 05:27 PM
Tony A
You could use AJAX techniques to run MR_GET_DOMAINS specifying an IBIMR_returntype of XML. Parse this using JavaScript and a pattern of "//CURRENT_USER". This will give you the MR Userid. Then use this in another AJAX process to access your database.

I actually use this method to obtain the last value selected in a listbox for a user, also to write away a new value when the user changes the selection.

Unfortunately if you are not conversant with JavaScript and AJAX techniques then you might have difficulties.

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 
April 02, 2009, 09:31 PM
Enigma006
Any other views from others?

Thankss


8.1.05
HTML,PDF,EXL2K, Active, All
April 03, 2009, 08:15 AM
<JG>
Easiest way would be to use a site or user profile that set a global variable based on IBIMR_user
April 03, 2009, 02:29 PM
susannah
edit client site.wfs
(ibi/WebFOCUS76/client/wfc/etc/site.wfs)
to ensure that it includes
<SET>IBIMR_user(PASS)

Then recycle tomcat or whatever you're using.
write a fex to read your name database
TABLE FILE mydatabase
PRINT myusersname
WHERE userid EQ &IBIMR_user
ON TABLE SAVE
END
-RUN
-READ SAVE &myusersname.A50 (or however long it is)
..now prepare your default report page displaying this &variable. You can do this now, yes?




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
April 03, 2009, 03:07 PM
Enigma006
thanks susannah..i did that in the morning and was about to update the same and you suggested the same solution.

thanks a lot all..


8.1.05
HTML,PDF,EXL2K, Active, All