cancel
Showing results for 
Search instead for 
Did you mean: 

Grouping Option not showing smart table

Jagtar
Participant
0 Kudos

Hi,

Please guide if Grouping not showing in smart table .

How to check my annotation file or service support this.

Xml View Code

<smartTable:SmartTable id="smartTable" smartFilterId="smartFilterBar" entitySet="PRHeaderSet" tableType="TreeTable" dataReceived="dataRecieved" useTablePersonalisation="true" showRowCount="false" enableAutoBinding="true" beforeRebindTable="onBeforeRebindTable" persistencyKey="SmartTablePKey" ignoredFields="Wvdvrelevant,WvdvonOffCampus,WvdvDispFlag,PlantId,PartNo,GlobusTemplate,StatusValue,TotalCountPR,SuppAddress,ItemTypeDescription,ExcelDownload,ItemDesc,ItemNo,TopValue,Selected,PrId,SearchTerm,LockInd,SourceRelInd,ReqUserid,BuyerId,ExpCompletionDate,ReqImage,BuyerImage,DeliveryDate,SupplierFirstName,SupplierQuotationNo,RejReason,TechId,SupplierLastName,TechFname,TechLastname,SupplierCountryDesc,TechEmail,SupplierHouseNo,TechPhone,ExpDateFlag,FinalDelivDateFlag,SupplierStreet,SupplierFlag,SupplierEmail,Currency,ProcGroup,Guid,ReqFirstName,ReqName,Hdrchanged,ReqPhone,PrId,ReqEmail,ReqDepartment,OverdueFlag,CommodityFlag,LogicalSystem,BuyerFirstName,VendorNo,BuyerLastName,VendorGuid,BuyerMobile,BuyerPhone,BuyerEmail,SupplierCity,SupplierPostalCode,SupplierCountry,SupplierPhoneNo,TotalValCurrency,ShowHdrStatus,TechImage,ParentId,Level,DrilldownState,ReqMobile,BuyerPlant,SupplierState,TechPersnMob,Url,ReqName,ShowHdrStatus,LogSys,SupplierFirstName,TechBuyerId,DisplayAccess,SuppQtNoDate"> <table:TreeTable id="prTreeTable" threshold="20" visibleRowCount="20" > <table:columns> <table:Column label="{i18n>xtxt.filterPrType}" width="175px" sortProperty="GlobusProcessType"> <table:customData> <core:CustomData key="p13nData" value='\{"columnKey": "GlobusProcessType", "maxLength": "10","columnIndex":"1", "filterProperty": "GlobusProcessType", "sortProperty": "GlobusProcessType", "leadingProperty": "GlobusProcessType","additionalProperty": "ItemTypeDescription"}'/> </table:customData> <table:template> <Text text="{path:'ItemTypeDescription'}"></Text> </table:template> </table:Column> <table:Column label="{i18n>xtxt.filterTitle}" width="250px" sortProperty="Description"> <table:customData> <core:CustomData key="p13nData" value='\{"columnKey": "Description", "maxLength": "40","columnIndex":"3", "filterProperty": "Description", "sortProperty": "Description", "leadingProperty": "Description"}'/> </table:customData> <table:template> <Text text="{Description}"></Text> </table:template> </table:Column> <table:Column label="{i18n>xhed.resBuyer}" width="185px" sortProperty="Buyer"> <table:customData> <core:CustomData key="p13nData" value='\{"columnKey": "Buyer", "maxLength": "10","columnIndex":"4", "filterProperty": "Buyer", "sortProperty": "Buyer", "leadingProperty": "Buyer"}'/> </table:customData> <table:template> <Text text="{Buyer}"></Text> </table:template> </table:Column> <table:Column label="{i18n>xtxt.supplier}" width="187px" sortProperty="SupplierName"> <table:customData> <core:CustomData key="p13nData" value='\{"columnKey": "SupplierName", "maxLength": "40","columnIndex":"5", "filterProperty": "SupplierName", "sortProperty": "SupplierName", "leadingProperty": "SupplierName"}'/> </table:customData> <table:template> <Text text="{SupplierName}"></Text> </table:template> </table:Column> <table:Column label="{i18n>xtxt.totVal}" width="150px" hAlign="End" sortProperty="TotalValue"> <table:customData> <core:CustomData key="p13nData" value='\{"columnKey": "TotalValue", "maxLength": "40","columnIndex":"6", "filterProperty": "TotalValue", "sortProperty": "TotalValue", "leadingProperty": "TotalValue", "additionalProperty": "Currency"}'/> </table:customData> <table:template> <ObjectNumber number="{parts:[{path:'TotalValue'},{path:'Currency'}], type: 'sap.ui.model.type.Currency', formatOptions: {showMeasure: false}}" unit="{Currency}" textAlign="End"/> </table:template> </table:Column> <table:Column label="{i18n>xcol.reqDept}" visible="false" width="180px" sortProperty="ReqDept"> <table:customData> <core:CustomData key="p13nData" value='\{"columnKey": "ReqDept", "maxLength": "10", "filterProperty": "ReqDept", "sortProperty": "ReqDept", "leadingProperty": "ReqDept"}'/> </table:customData> <table:template> <Text text="{ReqDept}"></Text> </table:template> </table:Column> </table:columns> </table:TreeTable> </smartTable:Sma

Accepted Solutions (0)

Answers (1)

Answers (1)

Jagtar
Participant
0 Kudos

hi after spending so much time find solution in tree table group option able for p13nData .

if tree table used inside smart table as root node is already creating grouping for child node.

Read below blog for more about table , which table used when

https://sapui5.hana.ondemand.com/#/topic/148892ff9aea4a18b912829791e38f3e