Dear community I am getting the error of unique while using dynamic components.
I have used two methods
load components on card click
using clock to load all the components
I am getting unique id error while using both the components
Expected a unique ID, got ‘vr170’.
What is the issue and how to fix it?
The issue is that you can’t create two components with the same ID, and its simple to fix, just choose different id’s.
I have chosen different IDs
The problem with card click method is, when I click card again, I get unique Id error , because the command is to load components, all over again.
but even when I use clock component I get the error, I dont know why.
I used this, but it is not working properly when I reload the components
2 Likes
hey, I am getting unique id error in dynamic components.
I don’t understand why I am getting this error?
I don’t understand the solution.
It would be easier to help if you provided some screenshots of your blocks or maybe a test aia
2 Likes
dora_paz
(Dora)
May 30, 2021, 8:29am
#11
Why do you use a combination of dynamic components with dynamic labels ? Why won’t you create labels with dynamic components ?
the thing is there are some features which are not there in dynamic component extension for labels, that’s why I use dynamic label.
But what is the solution of the error?
why am I getting this error? Trying to fix it from more than two weeks.
dora_paz
(Dora)
May 30, 2021, 9:11am
#14
I do not see anything that can not be done with dynamic components (set text, alignment, font size for example).
Also when does this error occur? When you click any label ? any card ?
1 Like
iamwsumit
(Sumit Kumar)
May 30, 2021, 9:11am
#15
May you please list them here. Because I never seen any feature that is possible with dynamic label but not with dynamic component extension…
1 Like
iamwsumit
(Sumit Kumar)
May 30, 2021, 9:15am
#16
sanatmalani:
I have used two methods
load components on card click
using clock to load all the components
May you please post these blocks(load component on card click etc) . I think you are recalling the procedure with same id. That may be the issue
2 Likes
on card click
now the problem with card click is that same id are recalled when clicked again,
What is the solution?
iamwsumit
(Sumit Kumar)
May 30, 2021, 11:20am
#18
You must delete the all created component first by this method
Put this block above the for each number loop so the created component will be deleted before the creation of new components and no error will reflect…
1 Like
does not work that way, you can try.
iamwsumit
(Sumit Kumar)
May 30, 2021, 11:31am
#20
sanatmalani:
you can try
I don’t need to try because I know you are doing something wrong…
Post here your blocks what you tried instead of saying you can try…