Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Deep link a Model Driven App to open on a specific tab (form tab)
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