Skip to Content
0

Issue with Custom Controls in SAP UI5

May 12, 2017 at 09:59 AM

116

avatar image

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.

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

2 Answers

Srikanth KV May 12, 2017 at 03:59 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Akhilesh Upadhyay May 13, 2017 at 08:03 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded