[progress Communities] [progress Openedge Abl] Forum Post: Kuib 2.0.1 - Side Navigation

Status
Not open for further replies.
J

jts-law

Guest
Hello, Did something change regarding how the side-navigation works between KUIB 2.0 and 2.0.1.13? I have a navigation module that builds the side navigation for one of my modules. I use this as the first step in controlling which views a user has access to. After installing KUIB 2.01.13 my navigation module runs but the .view['side-navigation'] no longer exists. The following code is in my module.run function (this isn't all code but hopefully is enough to see what I'm doing): myNav.run(['$rootScope', '$state', '$injector', '$http', ($rootScope, $state, $injector, $http) => { console.log('myNav->run() start'); let stateParameters = $state.get('module.default.parameters'); if (stateParameters && stateParameters.views && stateParameters.views['side-navigation']) { let ttMenus = []; // This is actually populated, code is not shown here. let htmlMenu = ' ' + ' ' + ' ' + ' Parameters ' + ' '; ttMenus.forEach((menu, index) => { htmlMenu += ' ' + ' ' + ' ' + menu.menuName + ' ' + ' ' ' '; }); htmlMenu += ' '; // Don't allow default menu stateParameters.views['side-navigation'].templateUrl = ""; // Set template with views user has access to stateParameters.views['side-navigation'].template = htmlMenu; } }]);

Continue reading...
 
Status
Not open for further replies.
Top