I'm pulling in Current_User from an autocode program and the value is QTMHHTP1. I'm looking for the Valence user. This user is not setup in the IBMi.
I found the below code and tried to compile. 7030 Errors for SessonID, sessionDS, VVALIAS, VVHTTP_IN and vvSecure.
Of course, you could also just retrieve the Valence-assigned System i user within your programs straight from the session variable, like this:
Code:
// retrieve session ID
SessionID = vvHttp_in('sid');
// retrieve session variable, plug into session data structure
sessionDS = vvSecure_getSessVar(SessionID :VVSESSVAR);
// plug System i user into local field
Cur_User = SessionDS.VValias;
I found the below code and tried to compile. 7030 Errors for SessonID, sessionDS, VVALIAS, VVHTTP_IN and vvSecure.
Of course, you could also just retrieve the Valence-assigned System i user within your programs straight from the session variable, like this:
Code:
// retrieve session ID
SessionID = vvHttp_in('sid');
// retrieve session variable, plug into session data structure
sessionDS = vvSecure_getSessVar(SessionID :VVSESSVAR);
// plug System i user into local field
Cur_User = SessionDS.VValias;
Comment