These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

exporting table data to pdf page 2

steve941
Registered: Apr 28 2009
Posts: 13

On the first page I have a dynamic table that users can enter the manufacturer, product and description. They can add or subtract rows by clicking on buttons.

On the second page I need this information to appear under the "proof of delivery" section. I've tried using global vs. normal binding, but this just makes all the cells in the dynamic table the same.

I'm starting to think I may have to somehow export the data from the field and then somehow get that data back into the 2nd page.

These can be two different documents if need be.

This also need to be super user friendly, were ideally the user would input the info into the field, hit an button and the "proof of delivery" page would appear in pdf form with the users data.

Is this too complex for livecycle? Or am I approaching the problem from the wrong end?

thanks!

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
You don't need to export/import data to do this.
It can be done with scriptings.

I build a form with two pages and two tables.
One for input the other for the output.
Then I added a FormCalc-script to the calculate:event of the second table, which copies the values from the first table.

;Count rows and columns of input tablevar nRows = Table1.ChartValues.instanceManager.countvar nColumns = Table1.Headline.Col.instanceManager.count ;Set same amount of rows and columns to the output table_ChartValues.setInstances(nRows)Headline._Col.setInstances(nColumns)ChartValues[*]._Col.setInstances(nColumns) ;Variables for the loopvar CloneValuevar CloneLabel ;Loop to get every value from the input table and put it to the output tablefor i=0 upto nRows -1 step 1 dofor j=0 upto nColumns -1 step 1 doCloneValue = Table1.ChartValues[i].Col[j].AmountCloneLabel = Table1.ChartValues[i].Label ChartValues[i].Col[j].Amount = CloneValueChartValues[i].Label = CloneLabelendforendfor

Example:
[url]https://acrobat.com/#d=OgeCgmTpOiY-idFi-NqBmw[/url]

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

steve941
Registered: Apr 28 2009
Posts: 13
Great! thanks for this...gives me much hope.

Quick question, if I'd like to have a set number of columns and just query the data in the rows, is there an easy way to amend the code so it only looks at the row data?

Thanks!

-Steve