Repeat data from one growable table into a new one
hi there,
i've managed create table in lc designer4 grows - ie. it's 4 column table header row followed 1 row can add information 3 table cells. if need have row click add row button (placed within header row) , new 1 appears. there's remove button can sytematically removed row. i'll call parent table.
so far good.
maybe it's better explain i'm doing here...
my parent table kind of to-do list call table x. each column such: 1. needs done 2. 3. when done
it's growable, if there more 1 action needs performed add rows.
i want create new table update on to-do list call table y:
column a. needed done (this data pulled directly column 1 on to-do list) column b: did happen? column c: if not, why not - columns b , c new , not pulling data list.
the problem 2 fold: how repeat data column 1 (bearing in mind can't use global data binding column 1 can have multiple different entries) , if can beyond first hurdle, how make make table y automaticall expand same amount of rows table x?
i should mention i'm designer programming expertise severely limited. i've managed create first table looking @ tutorials rather knowing myself. far i'm aware first table done in javascript.
any appreciated!
you need loop through tables , copy data corresponding field.
you'll need adjust sample below reference table , field names.
table1 = table copy from
table2 = table copy to
row1 = name of row fields in
columna = field name being copied
here's script (put on click event of button):
table2._row1.count = table1._row1.count; var vcol1 = this.resolvenodes("table1.row1[*].columna"); var vcol2 = this.resolvenodes("table2.row1[*].columna"); (var = 0; < vcol1.length; ++) { vcol2.item(i).rawvalue = vcol1.item(i).rawvalue; }
More discussions in LiveCycle Designer
adobe
Comments
Post a Comment