Deep link a Model Driven App to open on a specific tab (form tab)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var MEA = window.MEA || {}; | |
var accountForm = MEA.accountForm || {}; | |
(function () { | |
this.OnLoad = function (onLoadContext) { | |
var formContext = onLoadContext.getFormContext(); | |
var extraParameters = Xrm.Utility.getGlobalContext().getQueryStringParameters(); | |
var tabName = extraParameters["tab_name"]; | |
if(tabName != undefined){ | |
var defaultTabObj = formContext.ui.tabs.get(tabName); | |
defaultTabObj.setFocus(); | |
} | |
}; | |
}).call(accountForm); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment