Skip to Content

How to implement a custom dynamic Tile

Hi,

In my code, I can only use controls from these UI5 libraries: sap.ui.commons, sap.ui.table, sap.ui.ux3, sap.viz.

But I would like to have a control with same abilities as a StandartTile from the sap.m library or InfoTile from the sap.suite library.

Can you help me with creating a custom control? A Tile that is bound to a model.

Thanks in advance,

Michal.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jan 01, 2015 at 09:22 AM

    I was able to have my custom control using the DataSet control from the ux3 library.

    Thanks!

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 31, 2014 at 07:40 AM

    Hi Michal

    Please refer this blog by @Angel Puertas

    How to create custom control from scratch

    It would take time for me to create a new custom control and provide an example.

    Please refer the above blog.

    Hope this helps you.

    Regards

    Shubhang

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 31, 2014 at 08:32 AM

    Michal,


    I would recommend not to do any custom thing in UI5 unless you are very sure , there are many open source JavaScript lib available which will give you result but it is better to stick with UI5 as UI5 goes with UI5 best as per my experience.


    For your problem try to use sap.m lib offline in following way if you do not want to load itΒ  :

    Step 1: Get the sap.m lib as offline().

    Step 2:use code in index.html

    sap.ui.getCore().loadLibrary("sap.m","./JS/m/");

    place offline m library inside JS folder.

    Step 3: Now you can use all sap.m inside the application.



    If you do still want to go with custom code then it will be more tricky that this and will require some dev.



    -Regards

    Ajay

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Michal Keidar

      Hello Michal,

      If you want to create custom control then ok but if you would like to give offline sap.m a shot then you can get the offline library at :

      here  this is open UI5 offline SDK/library which have its doc on here.

      Now you can unzip the resources/sap/m and put the sap folder(with only m folder in it) inside the your project may be in the custom JavaScript folder (generally named as JS) and include that in your project by writing:

      sap.ui.getCore().loadLibrary("sap.m","./JS/m/");

      in your index.html( first line).

      Now not only you can use the Standard Tiles but all other capability of 1.24.5 version open UI5 sap.m .

      -Cheers πŸ˜€

      Ajay