如何通过嵌套活动从 IN/OUT 参数中获取值
你好,我有 2 个嵌套活动。两者都有名为“SessionID”的参数。子活动有一个名为“SessionIDParam”的 IN/OUT 参数。
我根据父级的 SessionID 设置子级的 SessionIDParam。在子活动中,我从 SessionIDParam 参数设置子活动的 SessionID。
子活动的 SessionID 在子活动执行期间发生变化。在子项结束时,我希望将父项的 SessionID 设置为子项 SessionID 的新值。我猜是因为“SessionIDParam”设置为两种方式就足够了。但父级的 SessionID 未设置。
除此之外我还需要做什么?
谢谢...
Hi i have 2 nested activities. Both have parameters called 'SessionID'. Child activity have an IN/OUT argument called 'SessionIDParam'.
I set the SessionIDParam of the child from SessionID of the parent. In Child activity i set the SessionID of the child from SessionIDParam argument.
SessionID of the child changes during the execution of the child activity. At the end of the child i want the SessionID of the parent to be set to the new value of the SessionID of the child. I guessed the because that 'SessionIDParam' is set as 2 way i would be enough. But SessionID of the parent is not set.
What do i have to do other then that?
Thanks...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,我解决了我自己的问题:)
为孩子的 SessionID 分配了新值。我预计 SessionIDParam 也会改变。当我在活动结束之前将子活动的 SessionID 重置为 SessionIDParam 时,IN/OUT 参数将值返回给父活动并更新父活动的 SessionID。
无论如何谢谢...
Yeah i solved my own problem :)
The was assignin new value to SessionID of the child. I was expecting that to change also SessionIDParam. When i reset SessionID of the child to SessionIDParam before the end of the activity, the IN/OUT parameter returned the value to parent activity and updated SessionID of the parent.
Thanks anyway...