1. Type "MS CRM Trail" Google
2. Click on https://portal.office.com › Signup like the Image below
3. Get started with filling your personal EMail ID and click next
1. Type "MS CRM Trail" Google
2. Click on https://portal.office.com › Signup like the Image below
3. Get started with filling your personal EMail ID and click nextSharePoint Documents are listed under Related – Documents tab. To improve UX, recently came across a requirement to show SharePoint Documents tab by default. This means, user no longer has to click on Related -> Documents to open the tab.
You might ask, as an alternative, we can add a Document subgrid to the form, which is a simple solution. However, Documents subgrid do not show the Folder Structure, which is something we need.
To achieve this, we need to play with formContext.ui.navigation.items.
Let’s dig in!
Problem
Open Document Tab by default (on load).
Solution
On load of the form, set focus on the document navigation Item to load the Documents tab. Then move back the focus to the main tab.
Here are steps to follow:
function openNav(executionContext) {
// get formContext
var formContext = executionContext.getFormContext();
// Get Nav. Item
var navItem = formContext.ui.navigation.items.get("navSPDocuments");
// First set focus on Nav. Item to open related tab
navItem.setFocus();
// get Main tab (replace it with your tab name)
var mainTab = formContext.ui.tabs.get("SUMMARY_TAB");
// Then move to Main Tab
mainTab.setFocus();
}
1. Type " MS CRM Trail" Google 2. Click on https://portal.office.com › Signup like the Image below 3. Get started with filling yo...