It seems that setContent
only is not enought, so this solves the problem:
press: function(oEvent) {
var mainShellRef = sap.ui.getCore().getElementById("mainShell");
var datasetRef = sap.ui.getCore().getElementById("dataSetId");
mainShellRef.setSelectedWorksetItem("navStoreSubList");
mainShellRef.setContent(datasetRef);
}
where navStoreSubList
is the id of the workset item (NavigationItem control) in which I want to go.