How can I implement a Session Variable in Acumatica?

南楼画角 提交于 2020-01-15 12:35:06

问题


I have a processing page in Acumatica that performs a Validation. When we run this process, then switch to another record to perform the process again, we don't want to rerun Validation every time. So, I need something outside of the scope of the BLC (like a flag) that I can set and will keep set until the Session or Page expires. How can I do this?


回答1:


You can use PXContext.Session.SetString(key, value); to set string value in the session. And PXContext.Session[key] to retrieve value.



来源:https://stackoverflow.com/questions/28865736/how-can-i-implement-a-session-variable-in-acumatica

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!