Skip to main content
Participant
July 26, 2023
Question

Write table entries as a string

  • July 26, 2023
  • 1 reply
  • 1010 views

Hi Gurus,

In an Adobe Form I want to output an internal table as a string, not separated lines. 

So, current output is as follows:

item1
item2
item3
etc.

But the desired output is:

item1, item2, item3, etc.

Who can help me out here?

Many thanks,

Ron.

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
July 26, 2023

What do you mean by "internal table", exactly? How are you currently outputting it? Post your code.

Participant
July 26, 2023

In the code I have an internal table with two columns: 

Order  Item
123    0010
123    0020
123    0030
etc.

I want to concatenate the item numbers in the same line on my pdf form:  0010, 0020, 0030 and so on.

At this point the items are below eachother, which might take (too much) space.

Hope this makes it clear?

regards,

Ron.

try67
Community Expert
Community Expert
July 26, 2023

Not really. You just reiterated your question. There's no such thing as "an internal table" in JS or really in PDF files in general. Is this the value of a text field? Is this a 2D array in your code? A data model? Something else? Be more specific, and share your code.