show / hide menu

How to create a repeating section?

Creating a repeating section in the form

          Introduction

         Step 1: Create a form as shown below, by dragging the control, External Form.

Figure 1: Designer

Step 2: In the ‘Properties (General)’ section of the External form, click on the ‘Navigate Url’ and select the required forms from the ‘Navigation Form’ window. If multiple forms are selected, select the form that has to be set as default in the Preview.

Figure 2
Figure 3
Figure 4
Figure 5

Step 3: In the ‘Properties’ section of the External form, click the checkbox of Repeat Property.

Figure 6

Various actions and rules are included, in the feature called External Form Repeater.

1. Repeater

It repeats the form with the current view based on the number mentioned in the parenthesis.

Step 1: Enter the rule which is same as the below mentioned syntax and append a trigger to it.

Syntax: Repeater(ExternalFormName,Count)
Example: Repeater(ExternalFormRepeater,2)

Figure 7

Step 2: In the Preview, on clicking on the button (‘Repeater’), the form will be repeated as per the count mentioned in the rule.

Figure 8

2. RepeaterGetFormName

It will give the form name appended with the form index.

Step 1: Enter the rule which is same as the below mentioned syntax and append a trigger to it.

Syntax: RepeaterGetFormName(FormName,Index)
Example: MessageBox(RepeaterGetFormName(ExternalFormRepeater,1))

Figure 9

Step 2: While checking the preview, an arrow sign as shown in the figure can be viewed and by clicking this symbol, a window appears having the actions namely, ‘Repeat’, ‘Remove’ and the selected form names which is termed as ‘View’

Figure 10

Step 3: Click the action called ‘Repeat’ and thereafter, on clicking the button (‘RepeaterGetFormName’), the message box appears showing the form name appended with the index (‘ExternalFormRepeater1’).

Figure 11

3. RepeaterQuickAction

We can enable or disable the repeating property of the external form by using this rule, instead of designer.
Step 1: Enter the rule as per the below mentioned syntax and append a trigger to it.
Syntax: RepeaterEnableQuickAction(ExternalFormName,True/False)

Step 2: If enable quick action is true then the actions, repeat/ remove/ change view should perform and if the enable quick action is false then none of the quick menu actions should take place. Here , if the check box of the ‘Repeat Property’ is clicked in the designer, then the condition in the rule is set as false and if the same check box is unchecked, then the condition is set as ‘true’ and it is triggered using the buttons , ‘RepeaterDisableQuickAction’ and ‘Enable’ respectively.

Figure 12: Enable
Figure 13: Disable

4. External form repeat properties

a)Action : This rule specifies which is the current action that occurred in the external form
b)RepeatCount : This rule specifies the total number of times the form has being loaded.
c)ViewName : This rule specifies the name of the current view that is shown in the form.
In the Preview, click on the arrow symbol and click the action ‘Repeat’ and thus the rule get executed in the formload as per the below given Figures.
Similarly when the action ‘Remove’ is clicked, the same rule gets executed in the below displayed format.
For the Actions, Repeat and Remove, the trigger is performed ‘First’ and the action (Repeat/Remove) is performed as the next second step. Whereas when View Change is done, the action i.e. the change in the view (form that is selected) is performed as the first step and the trigger is performed as the second step.

Figure 14: Rule

ACTION: REPEAT

Message box 1:

Figure 15

Message box 2:

Figure 16

Message box 3:

Figure 17

Result

Figure 18

ACTION: REMOVE

Figure 19

Message box 1:

Figure 20

Message box 2:

Figure 21

Message box 3:

Figure 22

Result:

Figure 23

ACTION: CHANGE VIEW

Figure 24

Message box 1:

Figure 25

Message box 2:

Figure 26

Message box 3:

Figure 27