Quantcast
Viewing all articles
Browse latest Browse all 3131

SmartTable passing annotations LineItem to see default columns

Hi Experts,

 

I am using a Smart table control inside a SmartFilterBar in a view.

Upon rendering of the view, I could see a blank table and I need to click on personalisation link to select the columns which I want to show in the table.

 

My requirement is to default all the columns in the table as soon as view is rendered. I searched in few of the posts and found that we can use

annotations "LineItem" to shows the initial columns in the SmartTable control.

 

Can you help me on how this can be achieved.

 

Below is the code:

 

View.XML

<smartTable:SmartTable id="Smart_TT" entitySet="View" smartFilterId="smartFilterBar" tableType="ResponsiveTable"  useExportToExcel="false" useVariantManagement="false"  useTablePersonalisation="true" header="Items" showRowCount="true" persistencyKey="SmartTableAnalytical_Explored" enableAutoBinding="false" >

                           

</smartTable:SmartTable>

 

.xsodata

 

service

{

"i0xxxxxtrial.Demo_1.smartfilter::CalcView" as "View" keys ("Room") ;

 

 

}

annotations

{

    enable OData4SAP;

 

 

}

 

Thanks

Arun


Viewing all articles
Browse latest Browse all 3131

Trending Articles