Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Copy Specified Cell in New Instance

$
0
0

Hey everyone,

 

I need some help getting this JavaScript button to act as intended.  I have a table with five columns and three buttons on the left side of each row.  The first button adds a new instance, the second I want to copy part of an instance, and the third deletes the current instance.  I have the add and delete buttons working.  For the copy button, I want it to insert a new instance immediately after the current instance (I have that part working) and then I want it to copy the text in just the first column, which is called "Work Task".  I may want to have it copy more later, but for now just the first cell.  Any help is greatly appreciated.  Thanks!

 

Add Button

this.resolveNode('Table1._Row').addInstance(1);

 

Copy Button

this.resolveNode('Table1._Row').insertInstance(this.parent.parent.index + 1);

 

Delete Button

this.resolveNode('Table1._Row').removeInstance(this.parent.parent.index);

 

Table.JPG

 

Hierarchy.JPG


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>