Let's Reconnect, thank you for making 2022 our best year yet.

Look Back
Hide write count in BUI using Extensions — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Hide write count in BUI using Extensions

Accepted answer
17
Views
3
Comments
edited May 28, 2021 12:53AM in Agent Desktop 3 comments

Content

I'm trying to hide the Count of Records, by manipulating elements by javascript.

But when it is executed it does not find, if I paste the code separately on the console, it works.

How can I manipulate this element using extensions?

this is my code:

 

ORACLE_SERVICE_CLOUD.extension_loader.load("removeCount", "1")
    .then(function (extensionProvider) {
        extensionProvider.registerWorkspaceExtension(function (workspaceRecord) {
            workspaceRecord.addCurrentEditorTabChangedListener(customImplementation);
            //console.log('Quantidade de nodes: ' + document.querySelectorAll('.boldFontLabel.reportRecordCount').length)

        });
    });

function customImplementation(workspaceRecordEventParameter) {
    // Custom implementation goes here.
    console.log('Starting')
    function hideCount() {
        myVar = setInterval(hiddenCount, 15000);
    }

    function hiddenCount() {

        //document.querySelectorAll('#superContainer-AC-100554.superContainer .boldFontLabel.reportRecordCount')
        console.log('Quantidade de nodes: ' + document.querySelectorAll('.boldFontLabel.reportRecordCount').length)

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!