I'm trying to save session data in sql server table.
I have already enabled variables in wconnect.h file as indicated in the documentation, created tables through your wizard, and set the connection string in my ini file.
Now I'm initializing the session with the command:
Process.InitSession("Test")
when I try to save a variable in session, the command:
Session.SetSessionVar("Matias","1")
return an error because the Session.oData is not an object:
FUNCTION SetSessionVarLPARAMETERS lcVarName, lcValueLOCAL lctext, lcValue, lcOldAlias, loData lcVarName = lower(lcVarname) loData = THIS.oDataIFEMPTY(lcValue) lcValue = ""ENDIF*** New Id value lcText="<"+lcVarName+">"+TRANS(lcValue)+"</" + lcVarName + ">"+CHR(13)IFATC("<"+lcVarName+">",loData.vars) > 0 **** .... ....
This.oData is null and I can not understand if I forget something or if I'm wrong to initialize the session. Does anyone know how to help me or can send some examples?
thank you very much
Matias