4 Replies Latest reply on Dec 18, 2012 7:40 AM by gkaiseril

    How to update bindItems data for a Field ?

    dbibhas

      Dear All,

       

      I have a standalone PDF form where into a Field I have binded some data as dropdown. Please see my PDF's XML source for binded data.

       

                          <field h="18mm" name="TAG" w="30mm">
                             <ui>
                                <choiceList>
                                   <border presence="hidden">
                                      <?templateDesigner StyleID aped0?></border>
                                   <margin/>
                                </choiceList>
                             </ui>
                             <font typeface="Arial"/>
                             <margin bottomInset="1mm" leftInset="1mm" rightInset="1mm" topInset="1mm"/>
                             <para vAlign="middle"/>
                             <bind match="dataRef" ref="$.sap-vhlist.REC_ITEM.DATA[*].TAG.DATA[*]"/>
                             <border>
                                <edge presence="hidden"/>
                                <corner presence="hidden" thickness="0.1778mm"/>
                             </border>
                             <bindItems labelRef="LINES" ref="$record.REC_ITEM.DATA[*].TAG.DATA[*]" valueRef="LINES"/>
                          </field>

       

      Now, I am getting proper data from binding for TAG field. But, whenever I have tried to modify offline the binding data by using javascript code "TAG.addItem(...New Value...)" and save the pdf document and again open the document all the updated new data has been lost, only previous data exist.