Skip to Content
0

SAP UI5 smart Table,Issue with variant management

Dec 04, 2017 at 03:22 PM

128

avatar image
Former Member

Hello Experts

Variant management button is not visible.How do I enable?

Tried changing so many private variables but not working perfectly as shown in

this.byId("TableID")._oVariantManagement.setEnabled(true)
this.byId("TableID")._oVariantManagement.oActionSheetManage.setEnabled(true);
this.byId("TableID")._oVariantManagement.oActionSheetSave.setEnabled(true);
this.byId("TableID")._oVariantManagement.oActionSheetSaveAs.setEnabled(true);
this.byId("TableID")._oVariantManagement.setLifecycleSupport(false)
this.byId("TableID")._oVariantManagement.currentVariantSetModified(true);
<smartTable:SmartTable entitySet="myEntitySet" editable="false"
id="salestable" tableType="Table" useTablePersonalisation="true"  useVariantManagement="true" 
useExportToExcel="true" showRowCount="true" header="line items" persistencyKey="SmartTablePKey"
initiallyVisibleFields="Prop1,Prop2" exportType="GW"
enableAutoBinding="true"  editTogglable="true" >
</smartTable:SmartTable>
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Iftah Peretz
Dec 05, 2017 at 05:56 PM
0

Hey,

Why don't you use Smart Filter Bar?

Show 5 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Tried that also .Not working.

0

Can you send the entire code of the view, controller and index?

0
Former Member

how to set advanced mode to false .Clearly mentioned in api reference.I think this is where iam going wrong.

api.png (26.4 kB)
0

I'm not sure, but, do you have a persistencyKey defined?

0
Former Member

Yes.But still variant management is not visible.

0