Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Write table entries as a string

New Here ,
Jul 26, 2023 Jul 26, 2023

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.

TOPICS
General troubleshooting , PDF , PDF forms
1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 26, 2023 Jul 26, 2023

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 26, 2023 Jul 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 26, 2023 Jul 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 26, 2023 Jul 26, 2023

The form on which I a working is a SAP form for a production order. It represents operations and the materials used to create the end product. The internal table is generated in ABAP code in the interface. This is done in the code initialisation of the interface where a perform (get_item_data) is located. In the code section there's a simple select to retrieve order data (and some other data).  

Through the interface the standard data like HEADER, OPERATIONS as well as my newly added internal table are forwarded to the form so they can be printed on the form. 
For the operations, and materials it is fine to print the tables line for line. But the item list need to be printed in as less as possible space, hence the printing on 1 (or multiple) line(s).

I was hopoing I could solve this, either by java or formcalc. 

In the past I have developed many forms in smartforms where such an issue could be easily solved. But I'm stuck with this Adobe form. 

Software used: SAP S4/Hana, in combination with the Adobe Live cycle designer. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 26, 2023 Jul 26, 2023

Oh, and at the moment I can't make screenshots as I am working remote, but the system is down for maintenance:

Ron31313254cyc9_0-1690395733945.png

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 26, 2023 Jul 26, 2023

> Software used: SAP S4/Hana, in combination with the Adobe Live cycle designer. 

 

Finally, some useful information... Questions about Adobe AEM/LiveCycle should be asked here: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/ct-p/adobe-experience-mana...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 26, 2023 Jul 26, 2023
LATEST

Sorry for going tight around the corner there! Thanks for pointing out the right spot for my question!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines