We have developed a Service console application and we have used lightning datatable in many instances. In Service console, before the Win21 release, If we used to click on the hyperlink, the table was not getting refreshed. Anyone facing such issues?? Is this a Winter 21 issue?

Below is the code :

<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId" access="global" controller='TestpocWI' >
    <aura:attribute type="Account[]" name="acctList"/>
    <aura:attribute name="mycolumns" type="List"/>
    <aura:handler name="init" value="{!this}" action="{!c.fetchAccounts}"/>
    <lightning:datatable data="{! v.acctList }"
                         columns="{! v.mycolumns }"

JS :

        fetchAccounts : function(component, event, helper) {
            component.set('v.mycolumns', [
                          {label: 'Account Name', fieldName: 'linkName', type: 'url',
                          typeAttributes: {label: { fieldName: 'Name' }, target: '_self'}},
                          {label: 'Industry', fieldName: 'Industry', type: 'text'},
                          {label: 'Type', fieldName: 'Type', type: 'Text'}
            var action = component.get("c.fetchAccts");
            action.setCallback(this, function(response){
                var state = response.getState();
                if (state === "SUCCESS") {
                    var records =response.getReturnValue();
                        record.linkName = '/'+record.Id;
                    component.set("v.acctList", records);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.