Skip to main content
Nintex Community Menu Bar

Where and how to store user variables (session)

  • May 2, 2018
  • 2 replies
  • 78 views
  • Translate

Hello all, I need to store some user details  (variables) such as the user's ID, his manager's ID etc. In a classic web app, I would store these in a session variable, how can I do it here?

 

I read some comments about using a smart object for that, but smart object is just a data table and I don't want to read from this table each time I refresh a page. What options do I have?

 

If I could for example write the desired value in the SystemValues.CurrentUser.Name object, that would work fine, but does not seem like I can write to these SystemValue objects?

Thanks

Did this topic help you find an answer to your question?

Hello,


 


Since smartforms are stateless by design, you would need to create a SmartObject to reference these variables. You could also create SmartObjects that reference an SQL database that stores IDs.


 


How to create smartobjects:


- http://help.k2.com/onlinehelp/k2smartforms/userguide/current/default.htm#SF_-_SmartObject_Designer_Overview.html.


 


Community article that shows how to create a SQL Instance SmartObject: 


http://community.k2.com/t5/General/How-to-Create-Custom-SQL-Service-Instance-SmartObject/m-p/103094#M3464.


 

Translate

  • May 3, 2018

OK, that means I need to hit the SQL server (through smart object) each page refresh which is what I was hoping to avoid

thank you

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings