How can I implement a Session Variable in Acumatic

2019-08-07 06:42发布

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?

标签: acumatica
1条回答
等我变得足够好
2楼-- · 2019-08-07 07:20

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

查看更多
登录 后发表回答