cancel
Showing results for 
Search instead for 
Did you mean: 

on Button Event how to fetch Column Header in sap.m.table

0 Kudos
241

Hi,

I have placed a button inside table. on click on button how to fetch respective Column Header Name?

Please find the screenshot.

image.png

In this Case when I click on Available button it has to fetch "DEC 04,2018". Please guide.

Thanksℜgards,

Gayathri Vijayakumar

View Entire Topic
brian_keenan
Product and Topic Expert
Product and Topic Expert
0 Kudos

when the table is loaded you should save the column header to the view model, then when the button is pressed it can retrieve it from the view model. This is better than looking for data in the dom

0 Kudos

Hi Brian,

Thank you . I will try it out.

Thanks!

Gayathri Vijayakumar