Skip to Content
0

Create A New Tab in a Tabstrip using Scripting

2 days ago

13

avatar image

Hi Together,

when I try to create a new tab inside a tabstrip using scripting and when I run the application I get an error message, which says: "Cannot create into TABSTRIP. To successfully perform a create action, you must create into a container inside the Tab."

I do not understand this message. How can I create a container inside the tab, when the tab doesn't exist yet?

Here's my code, maybe this helps to solve the issue.

gGroupsTabstrip = COMPONENTS.createComponent(ComponentType.Tabstrip, PANEL_1);
COMPONENTS.createComponent(ComponentType.Tab, gGroupsTabstrip);

Thanks for your help in advance!

BR,
Simon

10 |10000 characters needed characters left characters exceeded

Hi Simon - I don't have an answer, but I am curious as to why you want to use scripting to create a new tab...

0

Because I want to group a view and the number of the groups can vary in the future. So I'd like to create the tabs in the tabstrip dynamically.

0
* Please Login or Register to Answer, Follow or Comment.

0 Answers