system.kanoa.config.updateNavigationItem(navItemInfo, userId)
Given a dictionary of information, adds a navigation menu item
Parameters
navItemInfo Dictionary
| - id | Integer | |
| - enabled | String | |
| - icon | String | |
| - name | String | Name of the navigation item |
| - parentId | Integer | parent node Id |
| - project | String | Project name that this navigation should be shown for. None if shown for all projects |
| - roles | List of Strings | Roles reuqired for this naigtation item to be displayed. None if available to all users |
| - sortOrder | String | |
| - type | String | Navigation type i.e. 'view', 'url' or None for folder |
| - viewPath | String | path to the view |
userId Integer
Returns
# of records modified Integer
msg None if success
Example
navItemInfo = {
'id': 4,
'project': 'kanoaMES',
'name': 'Shift Report',
'parentId': 4,
'viewPath': 'Kanoa\reports\shiftReport',
'icon': None,
'type': 'view',
'enabled': True,
'sortOrder': 5
'roles': None
}
userId = 5
retVal, msg = system.kanoa.config.updateNavigation(navItemInfo, userId)