Skip to Content
0

Migrate sap ui5 appsfrom sap.ui.commons to sap.m

Aug 18, 2017 at 07:45 AM

80

avatar image
Former Member

Hello experts,

How to migrate sap ui5 apps that are built on libraries like sap.ui.commons,sap.me to sap.m and other libraries that are not deprecated?

Should the apps be rebuild again from scartch?

or

We can edit the existing controls that are used in the app like, matrix layout

and forms that are used from sap.ui.commons library to

layouts and forms in sap.ui.layout library and other controls as well and replace them with sap.m controls.

Thank you :)

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Sergio Guerrero Aug 18, 2017 at 02:27 PM
1

Aditya,

very good question.. I do not think there is a 1 to 1 match on your controls. there may be controls, properties and events which are not the same on both libraries (sap.ui.commons and sap.m) it really depends on what your app does/ what is the content of your application.

if you are going to migrate, consider using the XML views (sap.m controls) as recommended by SAP. there may be a lot of similarities if you correctly used MVC, etc.

maybe you need to do a comparison of the controlls (sap.ui.commons) and see if you see the equivalent controls on the sap.m library.

here is some documentation where you can find the responsive controlls. https://sapui5.hana.ondemand.com/explored.html

good luck!

Show 3 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thank you for your response :)
so do you recommend building it again using XML views or compare the controls, find the alternative to controls which are not equivalent and replace them.

0

You have to do it manually. Change the libraries mapped in the XML header tag and then change the controls which are in "m" library but not in "commons".

You also need to check if the methods used for existing controls(like Label, Input etc. ) in "commons" are also available in "m" library.

1
Former Member

Thank you Sharath.
Will implement this approach.

0
Sharath M G Aug 18, 2017 at 04:34 PM
0

You will have to manually, map the controls in commons library to the target library(m or me) and then run the application.

Share
10 |10000 characters needed characters left characters exceeded
Sergio Guerrero Aug 25, 2017 at 01:52 AM
0

i wrote a few lines on things to look for, https://blogs.sap.com/2017/08/25/pointers-while-updating-sapui5-version/

hope this is helpful for you

Share
10 |10000 characters needed characters left characters exceeded