on 01-10-2008 5:31 AM
Hi Satya,
I am creating the PDF form using WebDynpro java application, and the form should be stored in local disk. The user should be able to fill and save the data in the table at any time.
Note : The table used in PDF form is a dynamic table, an empty row will be added, when ADD button is clicked, the row will be deleted when DELETE button is clicked.
The javascript code udes are,
For adding a row,
xfa.form.PDFDataSource.Subform1.Table1.Row1.instanceManager.addInstance(1);
For deleting a row,
Subform1.Table1.Row1.instanceManager.removeInstance(this.parent.index);
I have done the data binding to the fields of the table. I am able to save the data in local disk.
The problem is, when I click ADD button, a new row is created but with the same data in previous row. even if I create 10 rows, all have same data. If I try to change any data any where in the table, it reflects in all the rows.
Can you give me a solution?
Regards,
Prabhakar.
I hope you have reported the same problem in another post.
and I was under the impression that it is solved.
Can you please send me the PDF file in my email address p_satya123@yahoo.com?
I will solve it and let you know the problem.
Cheers
Satya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks. Actually yesterday night I could not do the thorough testing so just waiting for your confirmation.
Actually if you open my PDF in Adobe Life Cycle Designer and check the data binding you will get the answer.
Special care should be taken in designing the context for table attribute.
The attribute type singletone also plays a important role. I have this doubt from the beginning when you have reported this problem for the first time but finally you marked it as solved so i thought there might be some other issues but again when you reported that again i did some analysis.
Now coming to final solution :
For designing a table in adobe interactive form you have consider following
You have to design the view context upto three level, I am explaining you the properties
PDFDataSource (Parent Level1) - Cardinality 1:1 - Signetone -True - This is assigned to datasource
TableList (Parent Level2) - Cardinality (1:1) - Signetone -True
TableWrapper(Parent Level3) - Cardinality (0:n) - Signetone -True
TableData (Parent Level4) - Cardinality (0:1) - Signetone - false (This is the main point)
Then under TableData value node, you have to put all your table attributes.
This Value Node name can be anything but hierarchy should be same as I have mentioned above.
Please try out these steps and get back to me if you have any doubt.
Cheers
Satya
I will suggest please delete the earlier data source and create everything again.
Then import the PDF file which I have sent to you and assign the Newly created data source again.
Analyse the data binding in my PDF, you will be bale to get idea.
This will definitely work. Please follow all the steps carefully. SingleTone - false for the Table data.
I know you can solve this.
Cheers
Satya
Hi Satya,
Success.... I changed the Databinding to $record.TableWrapper[].TableData[].ItemName The data is not repeating in successive rows now.
But, When I try to save the data, the data is not saved with the form. When I open the form again, the form is empty.
In your form also, when I click ADD and save it is working, i.e. the new row with its data is saved with the form. But, for DELETE it is not working.
Thanks,
Prabhakar
Nice to know about it ...
Can you please tell what you were doing earlier ? why it was not woring?
I could not get your point
I changed the Databinding to $record.TableWrapper[].TableData[].ItemName
What you were doing earlier?
Regarding the problem with Save i will try to find a solution for you.
Regards
Satya
Hi Satya,
When I bind the field to the data source , I had this one in binding tab of the TextField : $record.TableList.TableWrapper[].TableData.ItemName . I changed it to $record.TableWrapper[].TableData[*].ItemName , but the cardinalitites of the nodes remained the same as you said above.
Prabhakar.
Hi,
Good news .. your problem is resolved.
Only thing missing with your earlier PDF is you have to do the data binding for the Table1 to $record.TableList and Row1 to TableWrap[*]
If you do this all your problem will be resolved.
Anyway please check the PDF and XDP file and confirm me it is working fine for you.
I have done a thorough testing it is working fine now.
Hope you will be able to solve all your issues now.
Cheers
Satya
Hi Satya,
Thanks for your effort.
I checked your PDF file, its working perfectly.
I tried your steps, I too got the PDF working perfectly.
One more issue. I tried to solve it by myself, but still I can't.
When we add more rows, at one stage, it should go to next page. I followed the steps given in the Adobe LiveCycle Designer Help, under the topic, Setting up a table to span multiple pages.
Its not working. Could you help me in this too.
Thanks and Regards,
Prabhakar.
Hi Satya,
I have solved the issues in dynamic table. Now, the table can span to multiple pages.
Now, I have one more issue with this table, I have selected the header row to be displayed for every page, but I am getting it only for the second page , from 3rd page i am not getting the gheader row of the table.
My actual requirement is to design a PDF form for Materials requesition. The columns will be Material Name, Quantity, and Delivery date.
Thanks and regards,
Prabhakar.
Hi
I am also having the same issue as you had. Can you please guide me on the steps to create a dynamic table. I tried the steps mentioned but could not get anywhere. Maybe you can send me a form that is working so that I can see the binding for the table.
Kind Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am very new to Interactive forms.I need some real help from developers.
My scenario is i am having an Table in PDF Form having dropdown as one column and remaining columns with input fields.
I am trying to populate the data in dropdown in table using value help drop down list and following code.......
IModifiableSimpleValueSet regionCenter = wdContext.nodeVn_Activity().getNodeInfo().getAttribute(IPrivateEss_pdfView.IVn_ActivityElement.VA__ACTIVITY ).getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet();
please suggest me how can i populate the data in table dropdown column.
Thread:
Thanks&Regards,
Rajesh.
Edited by: Rajesh on Jan 5, 2009 11:03 AM
Hi,
I am very new to Interactive forms.I need some real help from developers.
My scenario is i am having an Table in PDF Form having dropdown as one column and remaining columns with input fields.
I am trying to populate the data in dropdown in table using value help drop down list and following code.......
IModifiableSimpleValueSet regionCenter = wdContext.nodeVn_Activity().getNodeInfo().getAttribute(IPrivateEss_pdfView.IVn_ActivityElement.VA__ACTIVITY ).getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet();
please suggest me how can i populate the data in table dropdown column.
please clich the following link for my question
Thanks&Regards,
Rajesh.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.