Creating a response document via a button

综合技术 Hello, buddy! (源链)

I have two forms, Organisation and Contact. Contact is a response to Org, and each form has an XPage where the form can be filled in, saved etc. When opening edit_contact.xsp directly and creating a document (not as a response to an org), everything works fine.

On edit_org.xsp, I have a button with 2 events. The first copies some values into sessionScope so I can inherit them into the Contact. The second is a “Create Response Document” event which creates a new response with the parent ID being the current org document, and sends the user to edit_contact.xsp. Pressing the button changes XPage correctly and the field inheritance works fine, but pressing “Submit” on the Contact form doesn’t save anything, and no document is created.

This exact same setup works 100% as desired in another database, I have no idea why it won’t work properly here. Is there an obscure setting somewhere I am missing?

                    <![CDATA[#{javascript:var doc = document1.getDocument();

                    sessionScope.PFirstName = doc.getFirstItem("P_Firstname").getValueString();
                    sessionScope.PSurname = doc.getFirstItem("P_Surname").getValueString();
                    sessionScope.PFamily = doc.getFirstItem("P_Family").getValueString();
                    sessionScope.PDOB = doc.getFirstItem("P_DOB")
                    sessionScope.PAGE = doc.getFirstItem("P_Age").getValueString();}]]



Here is a link that shows what I am trying to do (minus the field inheritance):

Currently the forms and views all work, but the document created with the “Response” form appears not to be a response document – it has no $REF field. This setup works perfectly in a different database – what is going on?


SoDiaoEditor电子病历编辑器更新至V3版本,愿与各位一路同行!... 简单闲聊两句…… 记得刚参加工作那会儿,去医院实施,信息科不远处就是手术室,门口每天都挤满了人,他们中大多数都是等待手术结果的患者家属,有的还会把折叠床带来,应该是陪床有段时间了。有时路过,还会听到一群人在手术室门口哭,那是我毕业前最接近死亡的一段时间,当时就想着有天能为医疗行业做点什么。 ...
Comprehensive object enumeration in JavaScript This cool JS snippet implements enumerations for JS: function makeEnum(idField, indexField) { idField = idField || 'id'; indexField = indexFie...
哎呀,脸好疼。130400版本更新导致下拉刷新和scroll-view不能同时使用... 首先,你们能不能把这文章赞到知乎首页去?我好气,开发者社区发帖就被封。 上图二丫的眼神,就是我现在的心情。 二丫,把他们都记到你的名单上,快帮我弄他们。 昨天刚夸微信团队不瞎搞了,这次更新终于不用折腾了。今天就有同学m我说,下拉刷新不可以使用了。脸,好疼。 由...
Easily Extract Debugging Info From FullStory Session replay is a powerful tool for reproducing and solving bugs , but part of that power is in getting the right information out of your sessio...
Pure JavaScript A* maze solving – with a bit of ma... During these days I am working on a project which requires A* algorithm for path finding, so I grabbed my 3 years old post “ Pure JavaScript A*...
Hello, buddy!责编内容来自:Hello, buddy! (源链) | 更多关于

本站遵循[CC BY-NC-SA 4.0]。如您有版权、意见投诉等问题,请通过eMail联系我们处理。
酷辣虫 » Creating a response document via a button

专业 x 专注 x 聚合 x 分享 CC BY-NC-SA 4.0

使用声明 | 英豪名录