acroFields.setField("Description[k]","MyDescription") should work. k
is the index to the repetition.

Paulo

On Mon, May 7, 2012 at 3:11 PM, DeeJay <[email protected]> wrote:
> Hi,
>
> Just a little more information regarding the mentioned question.
>
> The xfa data from the pdf contains could contain the xml:
>
> <xfa:data xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/";>
> <Struct1>
> <Item>
> <Description>MyDescription1</Description>
> <Value>6000</Value>
> </Item>
> </Struct1>
> <Struct2>
> <Item>
> <Description>MyDescription2</Description>
> <Value>7000</Value>
> </Item>
> </Struct2>
> <Struct3>
> <Item>
> <Description>MyDescription3</Description>
> <Value>8000</Value>
> </Item>
> </xfa:data>
>
>
> As can be seen, the Description element appears several times. I would like
> to change the values - MyDescription1, MyDescription2, and MyDescription3 to
> MyDescription. When i use the
> acroFields.setField("Description","MyDescription") only the first
> Description element is changed to MyDescription.
>
> Kind Regards,
>
> Dee
>
>
> --
> View this message in context: 
> http://itext-general.2136553.n4.nabble.com/AcroFields-setField-for-duplicate-field-names-with-the-same-value-tp4614757p4614905.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

------------------------------------------------------------------------------
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