Saturday 25 March 2017

Get All Tabs and Sections using javascript in Dynamic CRM.

Tabs and Section in CRM

Description:

In this example we explain that how to get all Tabs and Setions  using javascript in Dynamic CRM.or how to fetch all Tabs of the form in dynamic crm using javascript.or how to controlling Tabs and Sections with javascript in Dynamic CRM.

Here is the code to get or fetch all Tabs and all Sections in dynamic CRM using javascript.
Code:

function getAllTabs() {
      var tabs = Xrm.Page.ui.tabs.get();
    for (var i in tabs) {
        var tab = tabs[i];
                               alert(tab.getName())
    }
}
 
function getAllSections() {
        var tabs = Xrm.Page.ui.tabs.get();
    for (var i in tabs) {
        var tab = tabs[i];
        tab.sections.forEach(function (section, index) {
                               alert(section.getName())
 
            
        });
    }
}



1 comments: