cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Count to Master view Title

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

saurabh_vakil
Active Contributor
0 Kudos

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 + ")",

};