Skip to content

Phone Connect Cues

This documentation describes the integration of Phone Connect Cues into a custom Role Center. Decide whether the Cues should operate in Admin or User mode.

Cue Modes

Phone Connect Cues can be used in Admin or User mode.

Admin Mode

In Admin mode, Cues display entries for all Phone Connect users. Activation:

AL
ShowAllEntries(true);

User Mode

In User mode, only the current user's entries are displayed. Activation:

AL
ShowAllEntries(false);

Cue Visibility

Visibility of individual Cue groups (e.g., Recall Requests) can be controlled with the CueGroupVisibility function. Parameters:

  • ParamCallStatisticsVisibleBoolean
  • ParamAllCallsVisibleBoolean
  • ParamRatingVisibleBoolean
  • ParamRecallRequestVisibleBoolean

Set a parameter to false to hide the corresponding group.

Implementing Phone Connect Cues

To integrate Cues, a Role Center and a Page Extension for the "SIM_CTI Admin Information Cue" page are required.

Role Center

Cues are integrated into the Role Center.

AL
 page 00001 "SIM_CTI Demo RC"
{
    Caption = 'My Product - Demo Role Center';
    Description = 'Demo Role Center for My Product';
    PageType = RoleCenter;

    layout
    {
        area(rolecenter)
        {
            part(UserAll; "SIM_CTI Admin Information Cue")
            {
                ApplicationArea = All;
                Caption = 'My Product - Information', Locked = true;
            }
        }
    }
}

Page Extension

The Page Extension passes required values to the Cues. The user is filtered to the correct role using User Personalization.

Info

The role name (Role - Name) must be correctly specified, otherwise only the current user's entries are displayed.

AL
pageextension 00001 "SIM_CTI Demo Extension" extends "SIM_CTI Admin Information Cue"
{
    trigger OnOpenPage()
    var
        LocalRecordUserPersonalization: Record "User Personalization";
    begin
        begin
       // Filters to the user's role
            LocalRecordUserPersonalization.SetRange("User ID", UserId);
            if LocalRecordUserPersonalization.FindFirst() then begin
                LocalRecordUserPersonalization.CalcFields(Role);
               // Ensure the correct role name is inserted here
                if LocalRecordUserPersonalization.Role.Contains('Role - Name') then begin
                   // Activate Admin mode
                    ShowAllEntries(true);

                     // Visibility of groups: CallStatistics, All Calls, Rating, Recall Request
                    CueGroupVisibility(true, true, true, true);
                end;
            end;
        end;
    end;
}