Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Forms
Viewing all articles
Browse latest Browse all 61369

FormCalc, Concat - 2nd page script failure

$
0
0

I want ot thank you in advance on any help anyone might give me.

 

I am working on a table with dynamic row instances and contains a hidden text field that concatenates the row's data into one so we can export the data easily to our licensing database.  I originally wrote the code in JavaScript, but that would only duplicate the first row's data when another row was added.  So I did it in FormCalc, and the concatenation worked perfectly........ until I got to the 2nd page.  When I add another row on the 2nd page I get the following script error on the FormCalc concat code:

 

Script failed (language is formcalc; context is xfa[0].form[0].TrainingProgram[0].body[0].Table1[0].Item[2].concatData([0])

script=

Item.ConcatData.rawValue

=Concat(Item.ItemIndex.rawValue, ";",

Program.FormID.rawValue

, ";", Item.Cert.rawValue, ";",

Item.LastName.rawValue

, ";", Item.FirstName.rawValue, ";",

HeaderRow.C1.rawValue

, ";", Item.C1_Hours.rawValue, ";",

HeaderRow.C2.rawValue

 

, ";", Item.C2_Hours.rawValue, ";",

HeaderRow.C3.rawValue

 

, ";", Item.C3_Hours.rawValue, ";",

HeaderRow.C4.rawValue

 

, ";", Item.C4_Hours.rawValue, ";",

HeaderRow.C5.rawValue

 

, ";", Item.C5_Hours.rawValue)

 

Error: accessor "headerRow.C1.rawValue' is unknown......

 

If I change the language to JavaScript as suggested in one forum answer and the error goes away but the concatenation fails.

 

I am still fairly new to this and have learned much from the forums, so I might be coding this wrong.  Any help would be greatly appreciated, I have been working on this problem for days now.


Viewing all articles
Browse latest Browse all 61369

Trending Articles



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