One of the scripts for this record has caused an error. For more details, download the log file.
TypeError: executionContext.getFormContext(...).ui.tabs.get(...).getDisplayState is not a function at updateUserPreferences (xxx.crm.dynamics.com/.../notify_loader.js
here is the code please suggest we what i need to change
function updateUserPreferences(){
var tabName = primaryControl.getWebResourceTabName(),
tempTabElement,
//var formContext = primaryControl.getFormContext();
isTabExpanded = executionContext.getFormContext().ui.tabs.get(tabName).getDisplayState();
if(!(applicationVersion <= 7)){
SDK.util._retrieveUserPreference(
function(result){
if(result){
tempTabElement = executionContext.getFormContext().ui.tabs.get(tabName);
tempTabElement.setDisplayState("expanded");
trackMashupState({
action: "2",
visibility: true
});
}
}
);
}