cancel
Showing results for 
Search instead for 
Did you mean: 

How to duplicate a table containing detail rows and display three of them on one page?

Karti
Explorer
0 Kudos
172

Hello, I'm K. (This is my first question to the community, so please excuse me if the question is unclear.)

Background: I am developing a Delivery Note for S4 Public Cloud using Adobe Livecycle Designer with JavaScript.

Question: Is it possible to implement in JavaScript a method to duplicate a table containing detail rows and display three of them on one page?

  • Each table has 5 detail rows.
  • If the rows exceed 5, the next set starts from the next page in multiples of 6n.

I will attach a simple diagram below.
----------------------------------------------------------------------------------
(The diagram shows the detail rows extending horizontally, but they should actually be vertical.)
Case 1: When source data is less than 3 (example: 2 items)
Source data (tb1Rows):
[0] [1]

Page 1:
+-------------------+ +-------------------+ +-------------------+
| Table 1 (Row 1) | | Table 2 (Row 2) | | Table 3 (Row 3) |
|-------------------|  |-------------------|    |-------------------|
| [0] [1] [ ] [ ] [ ]   | [0] [1] [ ] [ ] [ ]        | [0] [1] [ ] [ ] [ ]
+-------------------+ +-------------------+ +-------------------+

Case 2: When source data is 5 or more (example: 7 items)
Source data (tb1Rows):
[0] [1] [2] [3] [4] [5] [6]

Page 1:
+-------------------+ +-------------------+ +-------------------+
| Table 1 (Row 1) | | Table 2 (Row 2) | | Table 3 (Row 3) |
|-------------------|    |-------------------|    |-------------------|
| [0] [1] [2] [3] [4]  | [0] [1] [2] [3] [4] |   [0] [1] [2] [3] [4]
+-------------------+ +-------------------+ +-------------------+
Page 2:
+-------------------+ +-------------------+ +-------------------+
| Table 4 (Row 1) | | Table 5 (Row 2) | | Table 6 (Row 3) |
|-------------------|   |-------------------|    |-------------------|
| [5] [6] [ ] [ ] [ ] |   [5] [6] [ ] [ ] [ ] |       [5] [6] [ ] [ ] [ ]
+-------------------+ +-------------------+ +-------------------+

 
SAP S/4HANA Cloud Public Edition 
SAP Forms service by Adobe 
SAP Interactive Forms by Adobe 
(SAP Business ByDesign)

 

Accepted Solutions (0)

Answers (0)