SAP Knowledge Base Article - Public

3160267 - SAP Forms by Adobe: Position of table entries are shifted

Symptom

 You have customized or developed a new form template. After rendering, the position of some table cells are shifted.

You might expect your table to look like this:

Name Value optional value
Item 1

Value 1

OV 1

Item 2

Value 2

Item 3 Value 3 OV 3

But your actual table looks like this:

Name Value optional value
Item 1

Value 1

OV 1

Item 2

Value 2

OV 3
Item 3 Value 3

Environment

 SAP Business byDesign

Cause

The reason for this behavior is the usage of absolute binding instead of relative binding for your table cells.
You can evaluate the type of the data binding by selecting the table cell in Adobe Lifecycle designer and checking Object->Binding property.

If you see a wildcard symbol (e.g. *) you are using absolute binding. For example: $.FormQuote.Item[*].ID.

The results of absolute binding and relative binding will differ if the referenced properties do not exist in every parent node. This is because the wildcard symbol will return the next possible data item. In this case the data from the next parent node is read. This creates a shift in the item positions.

Resolution

Rewrite the table in your form template to use relative binding. In relative binding you assign the data path with the wildcard symbol to the parent container.
Therefore all child elements will have access to the item context.

Absolute binding:

Table:
   rowItem: 
      cell1: $.FormQuote.Item[*].ID

Relative binding:

Table: $.FormQuote.Item[*]
   rowItem: 
      cell1: $.ID

Keywords

ads, form template, table, data binding, absolute binding, relative binding , KBA , AP-RC-FF , Forms Flexibility , How To

Product

SAP Business ByDesign all versions