Hide write count in BUI using Extensions
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)