on 2018 Oct 31 7:03 AM
I'd like to give my users the chance to reformat table cells after data has been loaded into the table. I thought a neat way to do this, is adding the functionality to the column menu. So when clicking on a table column, the menu appends with the standard "filtering, sorting" but also has a row called "formatting" which provides a few options (E.g. format a numeric cell from 55555,55 to 55.555,55)
Unfortunately I was unable to find a way to add a new row to my column menu. My sorting and filtering is added like this:
oTable.bindColumns("/columns", function(index, context) {
var columnName = context.getObject().columnId;
return new sap.ui.table.Column({
label:columnName,
template: columnName,
sortProperty: columnName,
filterProperty: columnName,
});
});
How do I add new lines/functionalities to the column menu?
Thanks maheshkumar.palavalli . I don't exactly understand your "good approach". What should I do ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As you are giving some configuration to the user for the fiori app, you can provide the configuration in a fiori app specific menu.
So that config will appear only for that fiori app. Now when the clicks that menu button, you can show your app specific configuration and one such configuration is to allow the user to change the format. You can see in normal gui apps also that is the case.
So where that menu button appears, in old fiori lanuchpad(before 2.0) it will appear in top right menu. In fiori 2.0 when user clicks on the left side user menu icon, he can see the config as one of the button there..
Best Regards,
Mahesh
User | Count |
---|---|
71 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.