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

Text Field Problem with Form Tables

$
0
0

Greetings,

 

I'm having the worst time getting a table to work, and I know this really shouldn't be that hard. I've built a table (tabgrading) in LiveCycle, and I need it to be dynamic enough to allow for adding rows and columns. The row functionality works well (repeating Row1). To get column adds to work I set up header cell (Cell4) and a text field (TextField8) under subforms (sfgradingheadadd & sfgradingrowadd, respectfully). The add/remove rows and add/remove columns buttons were scripted using the Action Builder and they work fine.

 

The problem comes when I try to add a new row to a table with an added column, or vice versa. The added column is an uneditable area, as though the text field did not carry over. I've tried adding the following script, but with no luck:

 

var intCount = xfa.resolveNode("tabgrading.Row1").instanceManager.count;

xfa.resolveNode("tabgrading.Row1").instanceManager.addInstance(1);

 

xfa.resolveNode("tabgrading.Row1[" + intCount.toString() + "].TextField8").rawValue = xfa.resolveNode("tabgrading.Row1[" + (intCount - 1).toString() + "].TextField8").rawValue ;

 

I'm at a loss. Any guidance you could provide would be greatly appreciated.


Viewing all articles
Browse latest Browse all 5571

Trending Articles