cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Table - same data repeating in all rows

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

i042339
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

i042339
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Prabhakar,

As promised I have solved your problem today itself. It is little tricky.

I am sending you the PDF file through mail.

Hope you will be very happy after receiving it.

Please let me know whether it is solved or not.

I will inform you the solution tomorrow morning.

Cheers

Satya

i042339
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Prabhakar,

Can you please confirm me that the PDF is working fine for you now?

If everything is solved I will inform you the final solution, just waiting for your confirmation.

But If it is not working as expected please get back to me. I will try to solve it.

Cheers

Satya

Former Member
0 Kudos

Hi Satya,

Thank You. Exactly this was the one i am expecting. The form is now perfect, and it is also possible to save the data with the form . How is it possible?

Thanks and Regards,

Prabhakar.

i042339
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

i042339
Product and Topic Expert
Product and Topic Expert
0 Kudos

You will definitely solve your issue if you follow the steps mentioned above.

Former Member
0 Kudos

Hi Satya,

The PDF Which you sent is working fine. I tried with the same steps you said. But same problem.

Thanks,

Prabhakar.

Former Member
0 Kudos

Do I have to change any properties in WebDynpro or Adobe Livecycle Designer or ADS?

i042339
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

i042339
Product and Topic Expert
Product and Topic Expert
0 Kudos

You have to ReAssign the DataSource of the newly created data source to the Table Elements

Former Member
0 Kudos

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

i042339
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Former Member
0 Kudos

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.

i042339
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Former Member
0 Kudos

Hi,Satya

Can you please send me your pdf or xdp working?

my mail is:

michaelbeilin@gmail.com

Regards,

Michael

i042339
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Michael,

I am just waiting for Prabhakar to send me the confirmation. After that I will send you the files But have you refered to all the steps mentioned by me in this post?

Please verify those gain and I am sure you will definitely solve your problem.

Thanks

Satya

Former Member
0 Kudos

Hi Satya,

Plese see the next post.

Thanks and Regards,

Prabhakar.

Former Member
0 Kudos

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.

i042339
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Prabhakar,

I was not able to reply your earlier message.

Please let me know the status. I hope you might have already solve this problem.

Please let me know if it is not solved. I will give you an solution. Also explain me little in detail about the requirements.

Cheers

Satya

Former Member
0 Kudos

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.

i042339
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Prabhakar,

Can you please send me the PDF? Also I will suggest please close this thread and create a new thread regarding the other problem.

Cheers

Satya

Answers (2)

Answers (2)

pbechani
Participant
0 Kudos

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

Former Member
0 Kudos

Hi ,

I am creating a new thread, to continue the discussion. Please [click here|] to access it.

Thanks and Reagrds,

Prabhakar.

i042339
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Prabhakar,

Nice to know that your problem has been resolved.

Please let me know if you are facing any other issue.

Also please close this thread as well.

Cheers

Satya

0 Kudos

please check the cardinality of the context node. It must be 1..n. other wise you have to create your own context node and get the data from custom controller and bind it to the iViews(pdf) context.

Former Member
0 Kudos

Hi Satya,

I am also having the same problem, it would be helpful if you share a doc or step by step process of the same. Thanks for your help.

My mail is revathi.raju@wipro.com

Regards,

Revathi Raju.

Edited by: Revathi Raju on Sep 26, 2008 2:53 PM

Former Member
0 Kudos

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

Former Member
0 Kudos

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

[Thread|;

Thanks&Regards,

Rajesh.