I have managed a work around to the problem. Instead of using the setField
method to change the field values, I am now extracting the XFA data and
changing the necessary tag values in the xml. I then take the XFA form src
and replace the XFA stream with the updated xml. 

Regards,

Dee


DeeJay wrote
> 
> I have tried using the index as indicated, however it only changes the
> Description field when the index is 0. The other indexes seem to have no
> effect. Also I get back an empty Map and Set when I call the respective
> methods:
> 
>         Map<String, Item> fieldMap = form.getFields();
>         Set<String> fields = form.getFields().keySet();
> 
> I am able to get fields using the getFields(name) method.
> 
> 
> 
> Paulo Soares-4 wrote
>> 
>> acroFields.setField("Description[k]","MyDescription") should work. k
>> is the index to the repetition.
>> 
>> Paulo
>> 
>> 
> 


--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/AcroFields-setField-for-duplicate-field-names-with-the-same-value-tp4614757p4617755.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to