Apex_util.set_session_state与分配操作员之间的Oracle Apex差异
我想知道 此::p10:=:p10
,此:apex_util.set_session_state('p10',:p10)
我知道这个自我分配看起来很奇怪,但是它给出了不同的导致我的应用程序,我无法弄清楚为什么并且找不到任何不同行为的位置。谢谢
I would like to know what is the difference between
this: :P10 := :P10
and this: apex_util.set_session_state('P10', :P10)
I know this self-assignment looks strange, but it gives a different result in my app, I can't figure out why and can't find any place for the different behavior. Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
两者都这样做,他们在Apex会话中设置了页面项目的值。但是,如果您使用它们混合使用,则可能会导致问题,因为执行它们的顺序并不能保证它们在会话中设置的顺序。去年,迪米特里·吉利斯(Dimitri Gielis)在一次会议上就这个主题进行了演讲,这是我从那次演讲中唯一记得的事情。
所以...不要混合它们。我个人仅使用
apex_util.set_session_state
当我动态设置项目值时(示例:Both do the same, they set the value of a page item in the apex session. However, if you use them mixed, then this might cause issues since the order is which they are executed does not guarantee the order in which they are set in the session. There was a talk at a conference by Dimitri Gielis on this subject last year and this is the only thing I remember from that talk.
So... don't mix them. Personally I only use
apex_util.set_session_state
when I dynamically have to set the item values (example: