cancel
Showing results for 
Search instead for 
Did you mean: 

View is undefined in attachPageDataLoaded event

tamilselvanm
Participant
0 Kudos

Hi Guys,

I added a custom section in SAP Fiori Element object page.

When clicking on list page table record, it navigates to object page onInit method and called the event attachPageDataLoaded. Here, I need to call the OData and set it to model and display the data in custom section table.

that.getView() is undefined and I am not able to get the view.

Kindly help.

Regards,

Tamilselvan

Accepted Solutions (1)

Accepted Solutions (1)

junwu
Active Contributor
0 Kudos

line 8, this.onLoadTableData.bind(this)

Answers (1)

Answers (1)

Ledjo
Participant
0 Kudos

You can try to use ownerComponent.

that.getOwnerComponent().setModel()

Or

that.getOwnerComponent().getView().setModel()