Subfile Option Pattern2



This setting overrides the pattern Genie uses to detect subfile options on screen when creating drop-down controls for the subfile option column. This setting allows more flexible detection of subfile options over the default Genie behavior—for example, you can detect any number of characters as options. If there are multiple options per output field, then this setting should be used to overcome limitations of pui["subfile option pattern"].

By default, Genie detects one pattern per output field. Patterns are expected to be two numeric characters followed by an equal sign (=), or one alphanumeric character followed by an equal sign.

The setting, pui["subfile menu choices"], takes precedence over this setting.

Example Setting:

pui["subfile option pattern2"] = /([A-Z0-9]{1,2}) ?(=) ?(\S+ ?\S*)/ig;


This setting allows options to be detected with one or two alphanumeric characters, followed by 0 or 1 spaces, followed by a separator character that is either = or -, followed by 0 or 1 spaces, followed by one or two words. Parentheses cause the expression to “capture” text. The pattern must capture 3 things in this order: the option, the separator, and the label as the last captured group.

Where do you save this configuration option? Here.

This feature is available with Profound UI releases later than Version 6 Fix Pack 6.3.3.