Adding navigationitems dynamically
I'm trying to achieve the following:
We have divisions within our company,
Each division has their own lease and car management, so therefor when we open the Divisions & Cars group, it will contain a couple other navigation groups (depending on how many divisions, and the title gets fetched from the database(divisions->name).
Each of the division group contains the Lease and Car management, and when we open these, you'll be shown the resource but only get the results that belong to that certain division.
I'm trying to figure out how to map out the navigation for this to work, all i got up to is this, and since i'm still fairly new to all this, i figured it might be better to ask for some help
2 Replies
You'd have to have a resource set for each division, probably under a Navigation Group, and then the necessary filters for each one.
However, not only is this a headache to maintain the code for, it isn't at all scalable.
I would consider other options, including just a session based filter drop down that informs a global scope on your highest model.
Yeah having a resource for every division is not going to work, as eventually other companies will be using it too, and have their own seperate divisions, and indeed for scalability this will not work!
I'll have to look in to it further