cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

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

former_member626660
Participant
4,853

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

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.. 🙂

Answers (1)

Answers (1)

paolo_romano2
Participant
0 Kudos

hi Imtiaz,

did you manage to solve the issue? How?

Thanks

Paolo

former_member626660
Participant
0 Kudos

Hi Paola,

I changed the smart table column structure as suggested by Ravi Verma and it solved the issue. I have also marked his suggestion as the best solution..

Thanks

Imtiaz N