Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
dmohanty
Partner - Specialist
Partner - Specialist

Pass Windows User Name in QlikView (Not the Login Name)

Hi All,

I am developing a script for extracting a table box data into a Notepad into the user's Desktop. User has to do this from the apps from Access Point.

For that Windows User name is required to pass in variable and script, NOT the Login Name for Report Center.

For example -

My laptop's windows username is Firstname.Lastname ( I can get this path as - C:\Users\Firstname.Lastname\Desktop).

My Login name in Access Point is Lastname_Firstname.

Approaches-

  1. If is use OSUser(), i am getting Lastname_Firstname instead of Firstname.Lastname.
  2. Also tried using LET  vExportPath = GetRegistryString('HKEY_CURRENT_USER\Environment\','TEMP');

        Here the variable vExportPath gives the value as %USERPROFILE%\AppData\Local\Temp. If in place of %USERPROFILE%, I can get C:\Users\Firstname.Lastname, that would be helpful.


Can someone please suggests some options, how can I pass the Windows User name is any variable?


Labels (1)
0 Replies