Skip to Content

Issue with Custom Controls in SAP UI5

Hi All,

I am trying to create a new Custom Control and trying to embed in SAP UI5.

Below is the custom control which i want to use.

http://bl.ocks.org/dk8996/5538271

Earlier i created this custom Control and used in my SAP UI5 Application and it is working properly.

Again we have a requirement to use the same control in other view.

When i navigate to and fro between the views.The first Custom Control is affecting(i.e in the second page the custom control size is smaller than first custom control and those sizes are applying to first control).

For using the same control in two different views am defining two different js files.

Could anybody please help me to resolve the issue.

Regards,

Shekar.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • May 12, 2017 at 03:59 PM

    how did you control the size of custom control in second page.....if you are setting CSS the custom control then it will affect all the custom controls in all pages.

    Better approach would be to add another css class only to the control in second page

    Add comment
    10|10000 characters needed characters exceeded

  • May 13, 2017 at 08:03 AM

    post here your actual view snapshots and code to understand better.

    Add comment
    10|10000 characters needed characters exceeded