I am getting erros stating that formContext is not defined and cannot read"tabs" in the following
var maintab =formContext.ui.tabs.get("tabname");
Used the below method in retrieving record and update record to refresh the tabs.
Retrieve method:-window.parent.xrm.page.retrieverecords():
maintab.refresh();
But am getting error stating undefined..can anyone please help on resolving the above errors.