Skip to Content
0
May 03, 2019 at 08:11 AM

How bind annotation file and Smart Table

1933 Views Last edit May 21, 2020 at 03:38 PM 2 rev

Hello colleagues.

I have such a question. I create Smart Table in JS Controller. How I can bind this Smart Table with annotation file, where I prescribe columns?

Smart Table creation code:

var mytable = new SmartTable({
    entitySet : "vGatewayStatuses",
    id : "st",
    smartFilterId : "smartFilterBar",
    tableType : "Table" ,
    useExportToExcel : true,
    useVariantManagement :true ,
    useTablePersonalisation : true, 
    header : "Line Items",
    showRowCount : true ,
    persistencyKey : "SmartTableAnalytical_Explored",
    enableAutoBinding : true
});

I try set entitySet, but nothing happens. When I start my UI app, I have Smart Table with "No data".

What could be the problem?

Thanks for answers.