cancel
Showing results for 
Search instead for 
Did you mean: 

View.js UI5 v1.30

draschke
Active Contributor
0 Kudos

Could somebody tell me, how the js-view (template) will look like with the new UI5 v1.30, to call the controller. There are only examples for the xml-view, but not for the js-view.

Example: old

How this would look like with v1.30?

sap.ui.jsview("test.test", {
  getControllerName : function() {
  return "test.test";
  },

  createContent : function(oController) {
  return new sap.m.Page({
  title: "Title",
  content: [ 
  ]
  });
  }
})

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

karthikarjun
Active Contributor
0 Kudos

Hi Dirk,

When I created a SAPUI5 application in webide, which points to 1.30 V.

The Structure of the project is some how different compare to prev version.

It has a separate folder for view and controller, as well as it is automatically creating component.js.

Thanks,

Karthik A

draschke
Active Contributor
0 Kudos

Send you a mail. maybe you could send it to me.

draschke
Active Contributor
0 Kudos

You gave me the right idea to look for the definitions of the new 1.3 ui5. thanks!

I was also looking to my webide cloud user.

It seems that I don't need to migrate my old js.views with the new controller-definition. (sap.ui.define). It should work either.

Answers (0)