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

How can i have a table within a table? The nested table renders a new row of master table.

New Here ,
Dec 31, 2021 Dec 31, 2021

Copy link to clipboard

Copied

Hey there, 
I am trying to render a new dynamic table (lets call it "inner table"), inside another static table(lets call it "outer table").

Now, insider a cell of the outer table, i have added the table tags for the dynamic table.
When I call the Adobe API, the inner table's rows are now being generated in a new row of the outer table, therefore having multiple outer table rows with only one inner table row.

I have attached the expected result from the API and also the actual result that is being rendered by the API in the attachments below.
Can someone please explain what is the issue here or what can be done to over come this problem?

Views

2.3K

Translate

Translate

Report

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 ,
Feb 16, 2022 Feb 16, 2022

Copy link to clipboard

Copied

Is this question referencing the Document Generation API?

Votes

Translate

Translate

Report

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 Beginner ,
Mar 13, 2023 Mar 13, 2023

Copy link to clipboard

Copied

I'm going to guess, yes, since I'm having the same issue when merging a Word doc. 
Scenario: A table is used for layout purposes and a dynamic table is then nested inside of that, the data is looping over the outer table. Simply put: a 1 page nested table with 10 rows becomes a 10 page document with one row on each page. 

Votes

Translate

Translate

Report

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
Adobe Employee ,
Jun 14, 2023 Jun 14, 2023

Copy link to clipboard

Copied

I can confirm this is not working properly. I'll file a bug report. Note that you may have a workaround - passing the table as an HTML string instead. See my first demo here: https://blog.developer.adobe.com/totally-tubular-tabular-tools-for-document-generation-79dae96c7e59

Votes

Translate

Translate

Report

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
Adobe Employee ,
Jun 14, 2023 Jun 14, 2023

Copy link to clipboard

Copied

I did a test where I passed an HTML string containing a table as a member of another table, and it worked properly.

Votes

Translate

Translate

Report

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 ,
Jun 20, 2023 Jun 20, 2023

Copy link to clipboard

Copied

Hi Raymond!

I was able to successfully implement this work-around for one nested table, but when I try to have two HTML strings containing tables, I get the following error: 

Table Tag must be in a separate paragraph;

Any ideas about how to handle this? 

Votes

Translate

Translate

Report

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
Adobe Employee ,
Jun 20, 2023 Jun 20, 2023

Copy link to clipboard

Copied

Use 2 tags. {{ foo }} and {{ goo }} for example. 

Votes

Translate

Translate

Report

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 ,
Jun 20, 2023 Jun 20, 2023

Copy link to clipboard

Copied

LATEST

Thank you!! One more follow-up question - I am getting some wierd text formatting (larger text) from the HTML strings content - is there a way to have it follow the Word template text font & font size or set that within the HTML string?

Votes

Translate

Translate

Report

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
Resources