cancel
Showing results for 
Search instead for 
Did you mean: 

"Cannot read property 'openDialog' of undefined" upon opening personalisation dialog in Smart Table

former_member626660
Participant
4,520

Hi ,

I have used a Smart Table of type "Table" and used an sap.ui.table inside my smart control. I have set the property showTablePersonalisation as "true" to enable the personalisation dialog. But when i click on the settings button in my table it throws this error " Uncaught TypeError: Cannot read property 'openDialog' of undefined".

Any ideas on how to solve this issue will be highly appreciated, thanks!!

Regards

Imtiaz N

View Entire Topic
former_member524141
Participant

Try using below code, referenced from here .

Custom data key for each custom is required field and its value should be p13nData only.

<columns>
<Column id="SalesOrder" hAlign="Begin" >
<customData>
<core:CustomData key="p13nData" value='\{"columnKey": "SalesOrder","columnIndex":"2"}'/>
</customData>
<Text text="SalesOrder"/>
</Column>
</columns>



<items>
<ColumnListItem>
<cells>
<!-- text or input field as per your requirement. --> 
</cells>
</ColumnListItem>
</items>
former_member626660
Participant
0 Kudos

Thanks for the suggestion Ravi Verma.. 🙂 your suggested method worked.. thanks a lot.. 🙂