cancel
Showing results for 
Search instead for 
Did you mean: 

SmartTable passing annotations LineItem to see default columns

arun_sehrawat
Discoverer
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Arun,

maybe this can help you:

Regards

Ullrich

arun_sehrawat
Discoverer
0 Kudos

Hi Ullrich,

Thanks for your reply.

It seems in the given link the annotations are created in SAP NetWeaver Gateway based services.

But here I am looking for a way where I can pass annotations in XSODATA based services.

Regards

Arun

Vlado
Advisor
Advisor
0 Kudos