简体   繁体   English

在Livecycle Designer中复制重复表行

[英]Duplicating a repeating table row in livecycle designer

I have a table on one page in a Livecycle Designer form and would like the repeating row to duplicate to another table on a different page. 我在Livecycle Designer表单的一页上有一张表,希望重复行复制到另一页上的另一张表上。 I have this working on the first table on the first page to the table on the second using the exit event however, if the same information on the second table stays the same, because it is on the exit event, it does not copy to the new table on page 3. I have this code in table 1 on page 1 on the exit event which works: 我使用退出事件在第一页上的第一张表上对第二张表上的表进行此操作,但是,如果第二张表上的相同信息保持不变,因为它在退出事件上,则不会复制到第3页上的新表。在退出事件起作用的第1页上的表1中有此代码:

xfa.resolveNode("Month2.Performancegoals2.updates.details[" + this.parent.index + "]").projectName.rawValue = this.rawValue; 

I thought this code would work using a button which unhides page 2 我认为这段代码可以使用取消隐藏第2页的按钮来工作

xfa.resolveNode("Month1.Performancegoals2.updates.details[" + this.parent.index + "]").projectName.rawValue = xfa.resolveNode("Month2.Performancegoals2.updates.details[" + this.parent.index + "]").projectName.rawValue  

but this does not work. 但这不起作用。 Actually when a value is placed in the field and the button is clicked, the entered value disappears. 实际上,当将值放置在字段中并单击按钮时,输入的值就会消失。

Can anyone help? 有人可以帮忙吗? I'm out of time! 我没时间了!

OK, looks like you're assigning values backwards. 好的,看起来您正在向后分配值。 Values in Javascript are assigned from right to left. Javascript中的值是从右到左分配的。 So, whatever is on the right of the '=' get put into the left side. 因此,'='右边的任何东西都放在左边。

eg, 例如,

x=5; //assigns the value 5 to x
y=x; //assigns whatever is in x to y
Month1 = Month2; //Month2 is assigned to Month1. 

If Month2 is blank, then Month1 becomes blank 如果Month2为空白,则Month1为空白

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM