on 04-07-2016 7:49 PM
I am using a Master/Detail view FIORI App and would like to add a count variable to go along with the Title portion on the Master view Page using Odata Model. This @ first seemed like a fairly simple request, but has proven to be very painful task. Does anyone have any simple suggestions? Parameter value is being passed in the XML model. Any suggestion/ help is appreciated.
In your S2 controller in the function getHeaderFooterOptions you can write something like below:
var oView = this.getView();
var list = oView.byId("list");// "list" is the ID of the List control that displays the S2 view's list
var binding = list.getBinding("items");
var itemCount = binding.iLength;
return {
sI18NMasterTitle : "SomeText (" + itemCount + ")",
};
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.