Skip to Content
avatar image
Former Member

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

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

function.png (20.6 kB)
p1.png (51.2 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

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

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

    }

    Add comment
    10|10000 characters needed characters exceeded

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

  • avatar image
    Former Member
    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

    Add comment
    10|10000 characters needed characters exceeded