Setting a PCF mode

It is only possible to set a mode on a PCF file as you create that PCF file. Selecting a file type that allows modes enables the Mode text field in the New PCF File dialog. Selecting a file type that does not allow modes disables the Mode text field.

You are able to set a mode with the following file types only:

  • Accelerated Menu Actions
  • List View
  • Row Set
  • Card View
  • Menu Action Set
  • Screen
  • Chart View
  • Menu Items
  • Toolbar Buttons
  • Detail View
  • Menu Links Set
  • Wizard Steps
  • Info Bar
  • Modal Cell
  • Wizard Step Subgroup
  • Input Set
  • Panel Set

Typically, you use a Gosu expression to define the mode for an included section. You can make this expression either a hard-coded string literal or you can use the expression to evaluate a variable or a method call. For example, PCF file AddressPanelSet (in PolicyCenter) uses selectedAddress.CountryCode as the mode expression variable.

A hard-coded string guarantees that the included section always uses the same mode regardless of the data on the page. If using a hard-coded string expression, Studio shows only that mode and does not show a drop-down above the blue area.