cancel
Showing results for 
Search instead for 
Did you mean: 

Change "No data " message in sap.m.table

0 Kudos

Hi All , I'm working with sap.m.table and it bind correctly when I click in something
but if the table is empty there is a message which shows "no data" by default .
My question is there is a way that I can change this messga by another one like "No Query selected "

Thanks for your help in advance

Accepted Solutions (1)

Accepted Solutions (1)

saurabh_vakil
Active Contributor

sap.m.Table has a property called noDataText. Set it to the required string value and this will appear instead of default No Data text when there no data to be displayed in the table.

Ajinkya_Jadhav
Participant
0 Kudos

How to do it for sap.ui.table

saurabh_vakil
Active Contributor
0 Kudos

For sap.ui.table.Table you can use the noData Aggregation.

class sap.ui.table.Table Aggregations

suma-velpula5
Member
0 Kudos

Hi Saurabh,

noData text is boolean .

How we do pass string to that noData Text?We can select true or false only.Please provide the sample code to pass string.

Thanks,

Suma

Answers (2)

Answers (2)

former_member602601
Discoverer
0 Kudos

Hi Lavanya ,

You can try in this way

if (id of the Facet) { oWorkCenter.attachUpdateFinished(function (evant name)

{

id of the Facet.setNoDataText(i18n translatable key passed.);

});

lavanyar087
Explorer
0 Kudos

Hi,

Can somebody please provide sample code for this.

Regards,

Lavanya