Dynamic Components Error, Help me

hello Please Help Me…

I Facing issuse in dynamic componate …I am making a shayri app and created custom desine list viwe using dynamic componate for showing shayri…and have a some category in a app…

see this image​
err

But there are some issue… When User click on category then got data (Category Clicked Data) from fierbase. then list viwe worked properly. but after again clicked another category then coming some issue in list viwe. first clicked category data and second data automatically has been added in list viwe…

See this image…

What’s a problem…?

see this my block…

When Click Category blocks (10)

Close Other Layout And Call Data… blocks (11)

Call Data Block blocks (12)

When Got Data and after call Loop blocks (13)

Loop block blocks (14)
blocks (15)

blocks (18)

the problem is dynamic componate lable text not removed the first data in list viwe , the first data and other data automaticly added and after all data shown in list viwe…

hope are you understand, so please solved my problem…!

Watch this vedio… :point_down::point_down:

if you are using a single variable to store data after calling it from firebase.

always clear the last entries before adding new values to it.

in Data Procedure -
initialize Call_Shayri_text as Empty List.

2 Likes

I have tried this method, but not working…

I think there are error in dynamic componate AIX ya my blocks, Because when i am using list viwe componate then work properly but when using dynamic componate AIX then this error came…

Please help me…

Any one please help me… :unamused::unamused:

if you are using the same Procedure again to create the list again in same Arrangement

then first Delete the last created Components using loop-

image

4 Likes

@ADDYLIN not working…:frowning:

When First time clicked any category then worked properly… But after again clicked any category then not showing all value… Only showing last some value and first value automatically is Removed…

I really don’t know what’s wrong here…?
:roll_eyes::roll_eyes::roll_eyes:

Can you share your Blocks.

1 Like

As I told you before also @Mr_PRAKASH_THUL you should code that the older data that is the first category clicked it should clear the response.

Remove the old cardview and add new cardviews on every category change.

1 Like

@Kshitij

How…?

Please Guide me… :pray::pray::pray:

1 Like

If you post your relevant block is more easy found the error, help you and found the solution for you

2 Likes

Yes please give us more information.:slightly_smiling_face::slightly_smiling_face:

How can I give you more information if I don’t see the blocks and tell you where to insert the solution proposed by @ADDYLIN

Edit: This are the solution but if you don’t know where to insert these blocks, don’t work for you !!!

1 Like

@Mr_PRAKASH_THUL have you posted all your blocks?

1 Like

Ok let me understand. You need to hide a card view after touching a label ??
In this case when label click get the label ID and remove a card view with the same ID, in this way you remove the card view.

2 Likes

You can use this block of code after a element which is of a different category is clicked.

image

I think this should work as said by @ADDYLIN and @bestprintsf

2 Likes

this is blocks…

And when click screen back pressed then i am using this block…

1 Like

Add this
Dynamic Components Error, Help me - #16 by Kshitij on category change so that it removes old cardviews and creates new one as per your code. But remember to make a backup of your project so if anything goes wrong you don’t need to suffer. Try and see if this works.:slightly_smiling_face::slightly_smiling_face:

1 Like

You are right @Kshitij but you can remove the item from the list and when tab the button created a new category without you remove item from list

Edit: Dynamic components not is to easy to understand how does it work.

2 Likes

@ADDYLIN @Kshitij @bestprintsf

This problem has been solved due to the guidance of all off you. Keep up the good work.
Thanks You All Of You…

And Have a nice day…