Skip to Content
author's profile photo Former Member
Former Member

How to change header text of table group ?

Hi guys I use table group below

How to insert manual text marked location in the picture ?

JsFiddle

Thanks for help.

Adsız.jpg (26.6 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2014 at 07:35 AM

    Hi,

    1. Your JSFiddle uses a Table, but your screenshot looks like a TreeTable.. can you update the fiddle?

    2. What exactly do you mean by 'manual text'? What text are you trying to show? Is this text fixed? Is it part of the data in the model?

    Regards,

    Pritin

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Oh sorry, my bad - your fiddle is correct!

      As for your question, I did a bit of digging into the standard implementation of the sap.ui.table.Table control, and it seems like there is no way to adjust this text. While rendering group headers, the following method is used to get the text and there doesn't seem to be any way to override this.

      getTitle: function(iIndex) {

      var oContext = aContexts[iIndex];

      return oContext && !(oContext instanceof sap.ui.model.Context) && (oContext["name"] + " - " + oContext["count"]);

      },

      Also worth noting, is that grouping in sap.ui.table.Table is marked as experimental - API/behaviour can change in future releases.

      Regards,

      Pritin

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2014 at 07:20 AM

    Any help?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.