on 2016 Dec 01 6:02 AM
Hello
We are currently using a sap.m.Table with the Table Personalization Dialog where the users can hide/show the columns of their own choice. Now how do we persist the data in the backend? I am not looking to persist it on the front end, but backend.
Are there standard services available in fiori UI-AddOn which can persist it?
Any pointers would be helpful.
Thanks
Sandip
Hi Sandip,
I have not used it, but it seems like you can achieve it using control sap.ui.comp.variants.VariantManagement for this.
https://experience.sap.com/fiori-design-web/ui-components/variant-management/
Just to quote from above link
The variant management control can also store table settings (layout, column visibility, sorting, or grouping) independently of the filter settings.
Currently it seems like you might have to create your own OData service entity for storing it in backend.
You may also check this.
https://blogs.sap.com/2015/12/29/variant-management-implementation-guide-ui5/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sure Krishna
Give it a try and let me know. I guess this service works only if you are in Fiori Launchpad.
In my case, the app is standalone and integrated in a different portal.
thanks
Sandip
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Krishna
Yes Variant Management is an option. But I was looking if there is any standard service available for backend persistence.
There is a fiori personalization service
// Get a personalization service provider from the shell
var oProvider = sap.ushell.Container.getService("Personalization").getPersonalizer(oPersId);
// Instantiate a controller connecting your table and the persistence servicvar oTablePersoController =new sap.m.TablePersoController({
table: oTable,
persoService: oProvider
}).activate();
But I not sure if it persist the changes in the backend?
Thanks
Sandip
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
11 | |
10 | |
10 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.