cancel
Showing results for 
Search instead for 
Did you mean: 

Moving container components not possible?

0 Kudos

Hi,

I have developed a dashboard with multiple different views which are separated in tab's of a tabstrip component.
The layout inside the tab's has been set up using panel's and gridlayout's.
Now I would like to reduce the components in the application and decided to put the content of each tab inside a panel and place this panel's in a hidden area (panel) of the dashboard.

I created an array with the config for the different views (which panel's in which constallation) and create dynamically the required number of blocks in an empty adaptive layout. After that I only wanted to move the selected panel's in the created blocks.

But when I try to move the panel's in the blocks by using "AL.moveComponent(i, PANEL_1);" I get the following error:
Cannot convert from "Panel" to "Component"

My question:
Is there any solution to move panel's (or other container components) into block's of an adaptive layout?
Any other way to achieve this?

Thanks and best regards

Christoph

0 Kudos

Hi Christoph,

you can try to cast the panel as a component:

ADAPTIVE_LAYOUT_1.moveComponent(0, PANEL_1.as(ComponentType.Component));

MartinKolb
Advisor
Advisor
0 Kudos

Hi Christoph,

unfortunately Lumira does not support moving containers via scripting. Zeynep’s suggestion to use the “as” function will remove the error message during script check, however there will still be a runtime error when the script is executed.

Best, Martin

Accepted Solutions (0)

Answers (0)