Codeunit 9701 "Cues And KPIs"
System Application · System.Visualization
Across versions
- BC23-30present
Neighbourhood 8 connected objects and pages
System Application · System.Visualization · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Access | Public |
| SingleInstance | true |
Events published
OnConvertStyleToStyleText(CueStyle: Enum "Cues And KPIs Style"; var Result: Text; var Resolved: Boolean)(integration): Event that is called to convert from the style enum to a text value in case of extended enum values. Subscribe to this event if you want to introduce new cue styles.OnBeforeGetCustomizedCueStyleOption(TableID: Integer; FieldNo: Integer; CueValue: Decimal; var CueStyle: Enum "Cues And KPIs Style"; var Resolved: Boolean)(integration): Event that allows definition of cue style for a cue using style enum without the usage of a cue setup table. Subscribe to this event if you want to define a cue style for a cue using custom prerequisites.
Procedures
OpenCustomizePageForCurrentUser(TableId: Integer): Opens the cue setup user page with an implicit filter on table id. The page shows previously added entries in the Cue Setup Administration page that have the UserId being either the current user or blank. The page also displays all other fields the that the passed table might have of type decimal or…ChangeUserForSetupEntry(var RecordRef: RecordRef; Company: Text[30]; UserName: Text[50]): Changes the user of a cue setup entry. A Recref pointing to the newly modified record is returned by var.SetCueStyle(TableID: Integer; FieldID: Integer; Amount: Decimal; var FinalStyle: Enum "Cues And KPIs Style"): Retrieves a Cues And KPIs Style enum based on the cue setup of the provided TableId, FieldID and Amount. The computed cue style is returned by var.PersonalizedCueSetupExistsForCurrentUser(TableID: Integer; FieldID: Integer): Boolean: Checks if a personalized Cue Setup record exists for the current user. The ID of the table containing the field for which the style is wanted. The ID of the field for which the style is wanted.ConvertStyleToStyleText(CueStyle: Enum "Cues And KPIs Style"): Text: Converts a Cues And KPIs Style enum to a style text. Enum values 0,7,8,9,10 are defined by default, if custom values are needed take a look at OnConvertStyleToStyleText event.InsertData(TableID: Integer; FieldNo: Integer; LowRangeStyle: Enum "Cues And KPIs Style"; Threshold1: Decimal; MiddleRangeStyle: Enum "Cues And KPIs Style"; Threshold2: Decimal; HighRangeStyle: Enum "Cues And KPIs Style"): Boolean: Inserts cue setup data. The entries inserted via this method will have no value for the userid field.
Calls
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 9702 “Cues And KPIs Impl.” (6 calls:
ChangeUserForSetupEntry → ChangeUserForSetupEntry,ConvertStyleToStyleText → ConvertStyleToStyleText,InsertData → InsertData, …)
Called by
- Codeunit 5549 “Create Cue Setup” (4 calls:
CreateActivitiesCue → InsertData,CreateFinanceCue → InsertData,CreateRelationshipManagementCue → InsertData, …) - Page 9102 “Job Queue Tasks Activities” (4 calls:
OnOpenPage → InsertData,OnOpenPage → PersonalizedCueSetupExistsForCurrentUser,UpdateJobQueueCountAndStyleExpr → ConvertStyleToStyleText, …) - Codeunit 4006 “Hybrid Cue Setup Management” (2 calls:
GetReplicationSuccessRateCueStyle → SetCueStyle,InsertDataForReplicationSuccessRateCue → InsertData) - Codeunit 9702 “Cues And KPIs Impl.” (2 calls:
ConvertStyleToStyleText → OnConvertStyleToStyleText,GetCustomizedCueStyleOption → OnBeforeGetCustomizedCueStyleOption) - Codeunit 418 “User Management” (1 call:
RenameRecordWithMultipleKeys → ChangeUserForSetupEntry) - Page 1314 “AccountantPortal Activity Cues” (1 call:
SetAccountantPortalAmountFields → SetCueStyle) - Page 1315 “Accountant Portal Finance Cues” (1 call:
SetAccountantPortalFields → SetCueStyle) - Page 1318 “Account Receivables KPIs” (1 call:
OnOpenPage → SetCueStyle)
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Cues And KPIs"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.