javascript - Duplicating a repeating table row in livecycle designer -


i have table on 1 page in livecycle designer form , repeating row duplicate table on different page. have working on first table on first page table on second using exit event however, if same information on second table stays same, because on exit event, not copy new table on page 3. have code in table 1 on page 1 on exit event works:

xfa.resolvenode("month2.performancegoals2.updates.details[" + this.parent.index + "]").projectname.rawvalue = this.rawvalue;

i thought code work using button unhides page 2

xfa.resolvenode("month1.performancegoals2.updates.details[" + this.parent.index + "]").projectname.rawvalue = xfa.resolvenode("month2.performancegoals2.updates.details[" + this.parent.index + "]").projectname.rawvalue

but not work. when value placed in field , button clicked, entered value disappears.

can help? i'm out of time!

ok, looks you're assigning values backwards. values in javascript assigned right left. so, whatever on right of '=' put left side.

e.g.,

x=5; //assigns value 5 x y=x; //assigns whatever in x y month1 = month2; //month2 assigned month1.  

if month2 blank, month1 becomes blank


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -