create TAB Dynamically

hi, is there any way to create tab widget dynamically.


if we put 2 in input box it will have to create 2 tab's.


thanks.

vinith

mvp_badge
MVP

Hi Vinith,

You could add a list with the tab items. And assign it a list record parameter.

Then on change of your input, you clear the list parameter and append records to it according to the integer in the input

hi Eric,'

If You Got any oml Kindly send with me it would be helpful for me.


thanks 

vinith

mvp_badge
MVP

Hi Vinith,

I played around with it a bit and it turned out to be trickier than I thought...
For this to work:
Your tabs must be inside the if statement
Your list must come from either a data action (in case of wanting to use the input and count the numbers) or from an entity as you need to set the if statement to false onChange of the input. and then set it back to true in the on afterfetch. to refresh the tab with new data.

(there should be an easier way to do this, like in traditional web with Ajax refresh, but this is what I got for you for now)

DynamicTabs.oml

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.