Tables are sometimes created with rows having a different
number of columns. This user story describes how to create a table
of terms & conditions, where each row represents one condition
and each condition can have different subparts. Each part is shown
in a separate column.
Implement this scenario by creating three fragment layouts: Fragment layout that contains three rows. Each row has a
single column containing a target area which could be bound to other
fragment layouts. This fragment layout is FLWith3Rows.
Fragment layout that contains a single row with two columns.
Each column contains a target area. This fragment layout is bounded
to target areas in first and third row of FLWith3Rows. This fragment
layout isFLWith2Cols.
Fragment layout that contains a single row with three columns.
Each column contains a target area. This fragment layout is bounded
to target area in second row of FLWith3Rows. This fragment layout
is referred as FLWith3Cols.
To create the forms:
Open LiveCycle Designer and create a Form.
Add a table containing a single row with only one column.
Add subform to the table column. Ensure that you change the
layout of table’s parent subform to flowed and remove the bindings
of the subform in table.
Save the Form (such as TCMain.xdp). This form is used to
create FLWith3Rows.
Create a form using LiveCycle designer.
Add a table with single row and single column to this form.
In table creation dialog deselect both header and footer
row.
Add a subform to the table cell. Ensure that you change the
layout of table’s parent subform to flowed and remove the bindings
of the subform in table.
Save the Form (such as TCSub.xdp). This form is used to create
FLWith2Cols and FLWith3Cols.
Create the fragment layouts, and letter template: Open
the Manage Assets user interface and select option to create new fragment
layout.
Name this fragment layout FLWith3Rows. Select the form you
saved in step 4 for the template.
Select the Table tab and increase the row count to 3.
Save the fragment layout.
Create two fragment layouts FLWith2Cols and FLWith3Cols using
TCSub.xdp. In FLWith2Cols, in the table customization step, increase
the column count to 2. In FLWith3Cols, in the table customization
step, increase the column count to 3. Set the width ratio to 1 for
all the columns to provide equal space in row.
Create a letter template. For main layout, select any layout
that contains at least one target area of sufficient size to accommodate
table.
Go to content tab and map fragment layout FLWith3Rows to
the target area.
There are three targets corresponding to three rows of FLWith3Rows,
map FLWith2Cols to the first and third row, map FLWith3Cols to the
second row.
Map new target areas to text modules representing terms and
conditions.
Create new text modules, if necessary.
Save the letter and render it into PDF. At the time of rendering,
all the fragments are inserted in the base template.
|
|
|