Home
TeamSite
TeamSite, LiveSite and OpenDeploy
setLabel issues
Andy Knipp
OK, building a table, set of Rows and data points inside the row.
The plan is that id a person puts foo, bar and blah in Row 1, to make the label of each data point for Row 2, 3 4 etc to be foo bar and blah rather than Data. To start I have this running onReplicantAdded & I will worry about other cases later.
No Luck (DCT attached) - I used inline JS to make it easy. Lines 23-27 do the work.
I would be happy of either changing the container (you'll see the line comment out) or the 1st item label. No luck. JS stops after 1st alert and no replicant is added.
If I make these two changes
var newData = Xpath+"/Columns["+(parseInt(idx)+1).toString()+"]/title";
var newItem = IWDatacapture.getItem(newData);
newItem.setValue(label)
Then the replicant is added and the value of title is changed. That is not what I want but it does show my logic is working.
Any ideas ? Tips/Pointers/RTFMs appreciated.
Andy
Find more posts tagged with
Comments
There are no comments yet