Freigeben über


Switching Views After Merge

Here's a little code snippet on how to programmatically switch views.   This example switches the view after a merge event on a Form Library, which is very cool.

function XDocument::OnAfterImport(eventObj)

{

XDocument.View.SwitchView("ManagerView");

}

This sample had two views on it, an Initiator View and a Manager View.   The form starts in the Initiator View and after a merge occurs in the Form Library where the posts live, the view automatically switches over.   Nice.