Previous Topic: List Designer

Next Topic: Preview Forms


Conditional Controls

CA SDM supports conditionally including content on a form. For example, the Request Detail form (detail_cr.htmpl) uses a lookup control for its change attribute only for new requests. For existing requests, it uses a read-only lookup that displays in Design view.

WSP shows both Textbox controls for the change attribute side by side, even though the user will only see one at a time. It shows the conditional control as a word in red text, such as, for example, If or Else. You can view the Properties dialog for a conditional control the same way as you display the Properties dialog for a typical control.

The conditional controls displayed by WSP correspond to PDM_IF and its associated tags. PDM_IF: Conditional Processing discusses these tags, including the syntax of a conditional.

WSP shows four types of conditional controls:

Control

Icon

Description

If

Begins a conditional.

Elif

(Optional) Specifies an alternative condition (else if). There can be any number of elif controls.

Else

(Optional) Specifies an alternative. If provided, must be the last control before endif.

Endif

(Required) Ends the conditional.