When designing your web screens you can use screen blocks in order to reuse contents that are already built and are common to several screens. In a screen flow, the Screen Block is created by the Web Block elements, according to the screen flow type.

How to add a Screen Block:

  1. Open the Web Flow.

  2. Drag the specific screen block tool, from the Tools tree, onto your screen flow canvas.

The layout of screen blocks is designed, just like any screen, through the Web Screen Editor.

You can add the following elements to your Screen block:

Screen Blocks must be self-contained, since they are evaluated independently from the screen where they are inserted. To communicate with a Screen Block, you have to define its input parameters, and instantiate them in the screen. How?

When working with web blocks inside other web blocks, that is, a sequence of web blocks including other web blocks (nested web blocks) be extra careful regarding the loops. A web block loop happens in a nested web blocks scenario if, at some point, a web block includes a prior web block. This leads to an endless include situation because the web block build process will keep turning back. At design time, the offending web block preview will be stopped and a "Block loop detected in block '<block>'" error message is displayed inside it.

What Happens when a Web Block is Found During Screen Rendering?

For each web block found during screen rendering, the following steps are followed:

When an End element is used in the screen action, the web block's current execution context is kept the same way the screen is.

On the Flow canvas there are, however, some differences between Screen Blocks and screens:

See Also

About Screen Blocks | Change a Screen Block | About Caching Contents | Adding JavaScript