on 11-27-2019 10:05 AM
Hi Gurus,
There are multiple roles (e.g. Supplier, Customer, Vendor) which can be selected by user of my parent Component (selecting roles within the app).
Each role has a dedicated OData service for every module (nested Component) contained in my parent Component.
Supplier_xxx
Customer_xxx
Vendor_xxx
Issue:-
opening a module e.g. xxx for an initial role say Supplier, Component xxx gets loaded & OData service Supplier_xxx gets called perfectly.
then, going back to Home & changing the role to Vendor, & loading the same module xxx, router just directs to the previously loaded Component xxx with cached OData.
What I need:-
1.) make a fresh call for OData from Vendor's OData service on loading of Component xxx for Vendor.
2.) I need a mechanism to synchronize cached OData (from different services) as per the current selected role.
P.S. I am using Component Based Routing approach.
Hi Deep,
For your first issue, you could try adding additional logic in your controller, where the selected role is also checked, and based on the selected role + action, appropriate component routing is done.
Do let me know if this resolves your issue.
Best Regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
72 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.