"EXPECTED A UNIQUE ID" error in dynamic component

Hello Everyone ,

I need your help . I created a dynamic component of cardview and I took a tab layout.

Like this .

And this is a image of my blocks.

Now In tab layout , I created two tabs. 1 recos 2. Outlook

And I set the conditions -

mainscreen initialise > load dynamic cardview

If get tab = revise
then load dynamic component

elif get tab =outlook
Then visible ver arrangement =False

Vertical arrangement is that arrangement in which I created dynamic cardview.

Now when screen initilize ,it works perfectly.

But after initilizing the screen ,when I selected outlook tab and then again select recos tab ,it gave me a error “EXPECTED A UNIQUE ID”,got “cardview1” .

This .

Please help me out .

Change The Component to using Text block to MakeroidCardView and Then Try Again
Also Remove the Stockcardview from tab layout and use in while screen initialize

Ok I understand but if I remove the stockcardview from tab layout and use in screen Initilize then how will I show data in cardview when someone will click on recos or outlook tabs .Both tab will contain different data. I mean when someone clicks on the Recos tab then some data will show in Cardview and when someone clicks on outlook tab then some data will show in cardview but different from recos tab.

Okay then Keep as it is only change component name

Tried but same issue again

Try
mainscreen initialise > load dynamic cardview

If get tab = revise
Then visible ver arrangement =True

elif get tab =outlook
Then visible ver arrangement =False

Ok but then how will I call different data in cardview for different tabs

Try this

tab_layout.aia (34.8 KB)

1 Like

Ok I will try

It is working perfectly.

Thank you soo much :blush:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.