How to binding the same Data View Table item in several tables - SAP Cloud

Avatar

Avatar

RenatoFraga1

Avatar

RenatoFraga1

RenatoFraga1

12-02-2021

Hello Experts,

I need to create an Adobe for Billing Document in SAP Cloud, with a items summary in the first page, and each item details in each next pages. So i will have to print Items table twice or more.

 

So, i am trying to binding the table for a first time in the first page and another time in the next page, doing page breaking by item. I tried to do a simple binding twice, but in the second page the table was printed as blank, it only print the content of table once, in the first time/page.

 

How can i binding the same table twice?

And how can i page break from second page now on, by FIELDS CONTENTS?

 

Remembering: it is for SAP Cloud, so, no interface option, and no chance to do some abap work before. I can only use LiveCycle resources && || javascript.

 

Forms Scheme nodes:

 

PrincipalFirstPage (Page - binding: $.BillingDocumentsNode)

---|formSummary (subform)

-----|table_Items (table binding first time - binding: $.Items)

-------|rowBillingDocumentItem(row - binding $.BillingDocumentItemNode[*])

---------|Material                    (field - biding: $Material)

---------|Material Description (field - biding: $.BillingDocumentItemText)

---------|Amount                     (field - Calculated)

 

 

NextPage (Page2 - binding: $.BillingDocumentsNode - AGAIN)

---|formSummary (subform)

-----|table_Items (table binding first time - binding: $.Items - AGAIN)

-------|rowBillingDocumentItem(row - binding $.BillingDocumentItemNode[*])

---------|Material                     (field - biding: $Material)

-------|rowBillingDocumentItem(row - binding $.ItemPricingConditionsNode[*])

---------|ConditionType           (field - biding: $.ConditionType)

---------|ConditionTypeName (field - biding: $.ConditionTypeName)

---------|ConditionAmount      (field - biding: $.ConditionAmount)

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Kosta_Prokopiu1

Employee

Avatar

Kosta_Prokopiu1

Employee

Kosta_Prokopiu1
Employee

16-02-2021

Using the same data in an XML for >1 dynamic table in a form will not work as the data gets "consumed" by the first table and will not reset.

 

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.

A sample of how the coping could be done:

https://acrobatusers.com/forum/forms-livecycle-designer/how-duplicate-table-form-another-table/

Answers (0)