在 xPages 的范围变量中保存当前页面? [英] Saving current page in scope variable in xPages?

查看:16
本文介绍了在 xPages 的范围变量中保存当前页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的用户完成表单后,我希望他们在完成/编辑表单之前返回到他们所在的页面.如何在 xPages 的范围变量中保存当前页面?

After my users complete a form, I want them to return to the page that they were on before completing / editing the form. How can I save the current page in scope variable in xPages?

推荐答案

您是否尝试过使用内置的上一页功能?

Have you tried using the inbuilt previous page function?

选择按钮,转到事件选项卡并创建一个 onclick 事件,在下拉列表中选择 openPage 事件.里面有一个previousPage"选项作为要移动到的页面.

select the button, go to events tab and create an onclick event, in the drop down choose openPage event. Inside there is an option of "previousPage" as the page to move to.

如果您有一些自定义用例,那么为什么不在 XPage 上的beforePageLoad"事件中填充范围并对其进行硬编码,或者在自定义控件中从 URL 中找出它.您将不得不将其从表单页面中删除,否则在任何有链接/按钮移动到另一个页面的地方运行脚本

failing that if you have some custom use case, why not have a scope populate in the "beforePageLoad" event on an XPage and either hard code it or if in a custom control figure it out from the URL. you will have to leave it out of the form page or else run script everywhere there is a link / button moving to another page

这篇关于在 xPages 的范围变量中保存当前页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆