cancel
Showing results for 
Search instead for 
Did you mean: 

DOM element with ID 'content' not found in page, but application tries to insert content in IPad

0 Kudos

While I am running the application in web, It is showing the data.

But when I am running in IPad, It is showing error in Inspect element like

"Uncaught (in promise) Error: DOM element with ID 'content' not found in page, but application tries to insert content."

Can anyone help me on this. Please.

Thanks,

P

Accepted Solutions (1)

Accepted Solutions (1)

Hello,

Got the Solution.

first needs to get the View like :

var pageView =this.getView().byId("ViewPageId");

Create a layout with placeat with the view like:

var oLayout = new sap.ui.layout.HorizontalLayout("ID", {
content: []
}).placeAt(pageView);

Answers (0)