Microsoft Dynamics CRM 2015 – Javascript API – Section

Štvrtá časť zo série Microsoft Dynamics CRM – Javascript API zaoberajúca sa prácou so sekciami na formuláry – in english as all posts in this category.  

The CRM javascript API contains methods to manage how it appears as well as accessing the tab that contains the section. Here is most usefull methods (full specification you can find on msdn network) :

1. Section – sections is sub-collection under tab object as describes following code:

var tabObj = Xrm.Page.ui.tabs.get('tabName');

var sectionObj = tabObj.sections.get('sectionName');


2. Label - Use the getLabel and setLabel methods to retrieve or change the label for the section.

sectionObj.getLabel()
sectionObj.setLabel(string)


3. Visibility - Use the getVisible and setVisible methods to check whether the section is visible or hide and show the section.

sectionObj.getVisible()
sectionObj.setVisible(boolean)
Comments are closed