Skip to Content

Design Studio function: GRID_LAYOUT_1.moveComponent() can't work

Oct 26, 2017 at 08:03 AM


avatar image

Dear all.

Have you tried use this function?


I want to realize this scene.When I click a button,the chart will full-screen.if I just only one component need to full-screen,I can use this function to realize it.But I have many components need to full-screen.

As the function.png

show,this function should meet my needs.but except first line code,other code haven't carried.

GRID_LAYOUT_14.moveComponent(0, 0, RMB);
GRID_LAYOUT_14.moveComponent(0, 1, ENG);
GRID_LAYOUT_14.moveComponent(0, 2, TEXT_1);
GRID_LAYOUT_14.moveComponent(0, 3, ICON_2);
GRID_LAYOUT_14.moveComponent(0, 4, ICON_1);

My layout set like picture p1.png.I have two gridlayout component,gridlayout1 is half width/height of screen,gridlayout2 is full screen. gridlayout1 default visible,gridlayout2 hidden.I want to click a bottom, then gridlayout1 hidden,gridlayout2 visible,and the component of gridlayout1 contained move to gridlayout2.

Have you tried this?

Whether I use wrong method?

Waiting for your help.



function.png (20.6 kB)
p1.png (51.2 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Yulia Melnik Oct 26, 2017 at 02:31 PM

Good afternoon.
This method works for me.
But I'm using a global variable "zoom", a Page, a clean Panel and a Grid.

Below is my code, maybe this idea will help you:

if (zoom == "0")

{ PANEL_WHITE.setVisible(true);

PAGEBOOK.moveComponent(2, CHART_1);

PAGEBOOK.moveComponent(2, ICON_01);




elseif (zoom == "1")

{ PANEL_WHITE.setVisible(false);

GRID_1.moveComponent(0, 0, CHART_1);

GRID_1.moveComponent(0, 0, ICON_01);




Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Yulia.

Thanks for your reply.

As your code,your GRID_1 will just one cell? You move CHART_1,ICON_01 to grid_1,whether all of them full screen?or position never changed?



Hi, Jing

PANEL_WHITE - fullscreen and hidden.

GRID_1 equal to the size of the PANEL_WHITE.

GRID_1 contains 4 cells. Each cell has a graph (CHART_x) and an increase button (ICON_x) - (0,0), (0,1), (1,0), (1,1).

CHART_1, ICON_01 moves to a PANEL_WHITE if (zoom == "0"),

else CHART_1, ICON_01 moves to a GRID_1 in cell (0,0)

zheng weijin Oct 31, 2017 at 03:40 PM

Our company is also using SAP LUMIRA, can you add WeChat

My name is zheng weijin, tel 18805148558 Shanghai

10 |10000 characters needed characters left characters exceeded