Displaying contents table twice, on different pages | Community
Skip to main content
Level 2
December 30, 2020
Solved

Displaying contents table twice, on different pages

  • December 30, 2020
  • 4 replies
  • 4560 views

Hi there,

currently i display the content of a table on a page, everything works fine.

But now i need to display the same table on other page, i copied the items to the new page and it does not work, i suppose it's an index problem, if that is the case how can i reset it? 

Thanks for any help.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kosta_Prokopiu1

Hi @tafkap95210 

I think you intend to replicate the exact same table on a second page, correct? And the table remains empty because somehow the data is gone?

That is actually as designed. The data you use in your form gets consumed sequentially, once you are through (by rendering the original table) there is no way to "go back".

Simply coping the table design will not work. You will have to use scripting which force feeds the data into the second table OR you duplicate the data in the XML under a second tag which is then assigned to your copy. The second is a bit clunky, the first requires scripting skills.

 

PS I just saw your ZIP and I was right. This approach will not work as mentioned above.

4 replies

Magus069
Level 10
December 31, 2020

Hi there,

 

Changing objects from one location to another may create problems, because the reference_syntax is not the same.

If the issue is that your code is not working, you might want to review it all to make sure it all works accordingly with the new reference objects.

If you would provide more details, such as what is not not working, is there any error displayed in the JavaScript Console... it would be easier to investigate and narrow the issue you are having.

Mayank_Gandhi
Adobe Employee
Adobe Employee
January 4, 2021

@tafkap95210 Copy paste is fine till you are able to bind the objects correctly with the data and scripts. 

Level 2
January 24, 2021

Hi there, 

sorry for the delay... Thank you for your answers but I think we didn't understand each other 🙂

Take a look at my attached example HERE .

In this example I want to display two tables, with the same data, therefore the same binding. For the 1st table it goes well, however for the 2nd nothing is displayed (orange color at the end), why? Is it possible to resolve this? 

 

Thank you.

Kosta_Prokopiu1
Adobe Employee
Kosta_Prokopiu1Adobe EmployeeAccepted solution
Adobe Employee
January 25, 2021

Hi @tafkap95210 

I think you intend to replicate the exact same table on a second page, correct? And the table remains empty because somehow the data is gone?

That is actually as designed. The data you use in your form gets consumed sequentially, once you are through (by rendering the original table) there is no way to "go back".

Simply coping the table design will not work. You will have to use scripting which force feeds the data into the second table OR you duplicate the data in the XML under a second tag which is then assigned to your copy. The second is a bit clunky, the first requires scripting skills.

 

PS I just saw your ZIP and I was right. This approach will not work as mentioned above.

Magus069
Level 10
January 26, 2021
Without any coding, you could have the data duplicated in the XML file by using a new tag such as ITEMS for page 1 and ITEMS2 for page 2, then simply change the data binding for the second table.