Achieving Conditional-breaks in Adobe Forms
This is one of the scenarios where we need to trigger page breaks based on some condition. For
example, we need to trigger page break for each change of CONNID. For that we use
CONDITIONAL BREAKS in PAGINATION of OBJECT palette.
Step1: Create interface ZTEST_CONDITION_INTERFACE using the transaction SFP.
Step2: Now define global parameter as shown.
In Code Initialization, write the following code.
Save and activate the interface.
Step3:
Come
back
to
ZTEST_CONDITION_FORM.
initial
screen
of
Form
Step4: In layout tab,
Drag and drop the internal table to layout editor.
Change the body page Body from position to flow as shown.
builder
and
create
form
Step5: Now go to DATA-- Object -- Pagination
Click on Edit button. It opens a window as shown below.
Now click on plus button.
Now click on Insert Sample Expression button as shown above with pink color, it shows fields.
Select CONNID field then the following code would be appearing on the space provided on the
text editor automatically.
$record.MAIN.GS_I_GEN.DATA[*].[-1].I ne $record.MAIN.GS_I_GEN.DATA[*].I
Now select the radio button before and for To field select TOP OF NEXT PAGE.
Click on OK button.
Save and activate the form.
Step6: Execute the form.