将数据从父重复部分复制到信息路径中的子重复部分
我对重复部分有疑问。场景是我在重复部分内有一个文本框,在重复部分外有一个复选框。我希望在重复重复部分时复制文本框的值。当我单击重复部分之外的复选框时,必须完成此操作。我为此使用了 Xpath 公式。如果我只是重复该部分,但当我单击重复部分之外的复选框时,效果很好。
公式如下
../preceding-sibling::my:RepeatingSection[
count(../preceding-sibling::my:RepeatingSection)
= count(current()/../preceding-sibling::my:RepeatingSection)
- last()
]/my:TextBox
该公式适用于单个重复部分。但如果有嵌套部分,我还有另一个问题。例如,如果我有一个重复部分和其中的另一个重复部分以及嵌套部分内的文本框。问题是编写在各部分中导航的正确路径。
谁能帮我解决这个问题
提前谢谢:)
I am having an issue with the repeating section. The scenario is i am having a text box inside a repeating section and a checkbox outside a repeating scetion. I want the value of the textbox to be copied when the repeating section is repeated. This has to be done when i click teh checkbox which is outside the repeating section. I used Xpath formula for this. it works fine if i just repeat the section but not when i click the checkbox which is outside the repeating section.
The formula is as follows
../preceding-sibling::my:RepeatingSection[
count(../preceding-sibling::my:RepeatingSection)
= count(current()/../preceding-sibling::my:RepeatingSection)
- last()
]/my:TextBox
This formula works fine for a single repeating section. But i also have another problem if there are nested sections. for example if i have a repeating section and another repeating section inside it and the textbox inside the nested section. The problem is writing the correct path to navigate within the sections.
Can anyone please help me with this issue
Thanx in advance :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论