Codeunit "Caption Class"
Exposes events that can be used to resolve custom CaptionClass properties.
Properties
| Name | Value |
|---|---|
| Access | Public |
| SingleInstance | True |
| InherentEntitlements | X |
| InherentPermissions | X |
Events
OnResolveCaptionClass
Integration event for resolving CaptionClass expression, split into CaptionArea and CaptionExpr. Note there should be a single subscriber per caption area. The event implements the "resolved" pattern - if a subscriber resolves the caption, it should set Resolved to TRUE.
[IntegrationEvent(False,False)]
internal procedure OnResolveCaptionClass(CaptionArea: Text, CaptionExpr: Text, Language: Integer, var Caption: Text, var Resolved: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| CaptionArea | Text |
The caption area used in the CaptionClass expression. Should be unique for every subscriber. |
| CaptionExpr | Text |
The caption expression used for resolving the CaptionClass expression. |
| Language | Integer |
The current language ID that can be used for resolving the CaptionClass expression. |
| Caption | Text |
Exit parameter - the resolved caption |
| Resolved | Boolean |
Boolean for marking whether the CaptionClass expression was resolved. |
OnAfterCaptionClassResolve
Integration event for after resolving CaptionClass expression.
[IntegrationEvent(False,False)]
internal procedure OnAfterCaptionClassResolve(Language: Integer, CaptionExpression: Text, var Caption: Text[1024])
Parameters
| Name | Type | Description |
|---|---|---|
| Language | Integer |
The current language ID. |
| CaptionExpression | Text |
The original CaptionClass expression. |
| Caption | Text[1024] |
The resolved caption expression. |