on 10-26-2017 9:03 AM
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
Our company is also using SAP LUMIRA, can you add WeChat
My name is zheng weijin, tel 18805148558 Shanghai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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");
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.