cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member241445
Participant
0 Kudos

Dear all.

Have you tried use this function?

GRID_LAYOUT_1.moveComponent()

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.

Thanks.

Jing

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

My name is zheng weijin, tel 18805148558 Shanghai

0 Kudos

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);

zoom="1";

ICON_01.setIconUri("sap-icon://zoom-out");

}

elseif (zoom == "1")

{ PANEL_WHITE.setVisible(false);

GRID_1.moveComponent(0, 0, CHART_1);

GRID_1.moveComponent(0, 0, ICON_01);

zoom="0";

ICON_01.setIconUri("sap-icon://zoom-in");

}

former_member241445
Participant
0 Kudos

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?

Thanks.

Jing

0 Kudos
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)