Top Method Summary
Options Name Purpose
AddControlRules (JsonObject, handle) Adds the enableRules and visibilityRules properties for the control
AddFieldEnabledState (JsonObject, handle) Adds the enabledState attribute for the field
AddValidationRules (JsonObject, handle) Adds the validationRules property for a field
CHARACTER FieldEnabledState (handle) Returns the enabledState for the field

Top Constructor Summary
Options Name Purpose
WebViewerRenderingHelper () Private default constructor for the WebViewerRenderingHelper class


Method Detail
Top

AddControlRules (JsonObject, handle)

Purpose: Adds the enableRules and visibilityRules properties for the control
Notes: Passes the EnableRules and VisibilityRules repository attributes of
the control (field, button, group box, ...) through to the web
client, which evaluates the rules to control the enabled and
visible state of the control (SCL-4111)

Parameters:
poField Progress.Json.ObjectModel.JsonObject
The JSON object representing the control
phAttributes HANDLE
The handle of the buffer with the attributes for the control
Top

AddFieldEnabledState (JsonObject, handle)

Purpose: Adds the enabledState attribute for the field
Notes:

Parameters:
poField Progress.Json.ObjectModel.JsonObject
The JSON object representing the field
phAttributes HANDLE
The handle of the buffer with the attributes for the field
Top

AddValidationRules (JsonObject, handle)

Purpose: Adds the validationRules property for a field
Notes: SCL-6185. Passes the ValidationRules1 to ValidationRules5
repository attributes of the field with the (translated) message
of the matching ValidationMessage1 to ValidationMessage5 attribute
to the web client as an array of { "rule": ..., "message": ... }
objects in the order of the rule number. Empty rules are skipped,
a rule without a message gets the SmartMessage SFR:68 - The value
of "&1" is not valid. - with the label of the field, or with the
instance name of a field without a label (SCL-6250, the same
fallback as the control name in GUI for .NET)

Parameters:
poField Progress.Json.ObjectModel.JsonObject
The JSON object representing the field
phAttributes HANDLE
The handle of the buffer with the attributes for the field
Top

CHARACTER FieldEnabledState (handle)

Purpose: Returns the enabledState for the field
Notes: SCL-5718: the EnabledAlways attribute takes precedence over the
EnabledForUpdate / EnabledForAdd / EnabledOnCopy combination and
returns "always", mirroring the editor button enabledState
(ComponentRenderingHelper:EditorButtonEnabledState, EditorButtonEnabledState, SCL-5599).
SCL-6096: EnabledForViewOnly = true returns "viewonly" (the field
is only enabled while no record is added, copied or modified)

Parameters:
phAttributes HANDLE
The handle of the buffer with the attributes for the field
Returns CHARACTER
The enabledState value


Constructor Detail
Top

WebViewerRenderingHelper ()

Purpose: Private default constructor for the WebViewerRenderingHelper class
Notes: Disable instance creation



©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       09.11.2026 08:17:24