cancel
Showing results for 
Search instead for 
Did you mean: 

how to sort name in xml view ?

former_member231869
Participant
0 Kudos

Hi i want to sort name in xml view?

here is the code.....

<table:title>

              <Text text="Table header"></Text></table:title>

              <table:columns>

                         <table:Column>

                                  <Label text="Name"/>

                                        <table:template>

                                            <Text text="{Name}" ></Text>

                                        </table:template>

                                    

                        </table:Column>

            </table:columns>

</table:title>

Accepted Solutions (1)

Accepted Solutions (1)

former_member231869
Participant
0 Kudos

not working...nothing change in the output ......i use like this..

                   <Text text="{

                          path: 'Country',

                                  sorter : {

                                  path: 'Country',

                                  group: true

                                             }

                                      

                                        }"/>

junwu
Active Contributor
0 Kudos

e:columns>

                         <table:Column sortProperty="Country">

                                  <Label text="Name"/>

                                        <table:template>

                                            <Text text="{Name}" ></Text>

                                        </table:template>

                                    

                        </table:Column>

put it at your table

<table:Table

rows="{
  path : 'invoice>/Invoices',
  sorter : {
  path : 'Country'
  }
  }"

Answers (1)

Answers (1)

saurabh_vakil
Active Contributor
0 Kudos

Hi,

Refer the example given here - SAPUI5 SDK - Demo Kit

Regards,

Saurabh