Enderman
(Shreyansh)
December 23, 2020, 6:25am
#1
Can anyone tell how to remove repeated item in a list and get a non repeated list
iamwsumit
(Sumit Kumar)
December 23, 2020, 6:33am
#2
You can use loops like this in this I have get all the repeated item in a list and you can remove them
I want to find index no of two,three or more same item in a list
For ex
List 1
Sumit
Varun
Sumit
Ritik
Sumit
I want to get sumit’s index in list 2
I have searched on community and finds a post but it doesn’t find index
1 Like
iamwsumit
(Sumit Kumar)
December 23, 2020, 10:20am
#3
You can also use dictionary block
as @WatermelonIce says dictionary works on Linkedhashmap and as I learned the java I know linkedhashmap does not allow duplicate keys so I have used dictionary in this ways
the output is
then you can do this
1 Like
iamwsumit
(Sumit Kumar)
December 23, 2020, 7:26pm
#4
@Enderman has u got ur solution?
This is a very interesting way to do it! the value part can be an empty string for using less memories.
1 Like
Enderman
(Shreyansh)
December 24, 2020, 3:17am
#7
I will test the method
I want to make a search for aia listview @themaayur but it goes infinite
themaayur
(Mayur Berad)
December 24, 2020, 4:06am
#8
For aia store, suppose you get value form a database
And you have 3 list title, Download, type
The values in the list are
Search aia, notifier aia, quiz aia
10, 20, 30
Paid, free, freemium
Then while searching use 1st list and the search result is quiz aia ( index is 3 )
The for getting other info from other lists use select item from list
block and set the index to the index of the result.
And instead of using my guide use Extensions as it simplify the blocks.
This extension allows you to simply search things in any given list.
For example a list have 4 Items (Youtube,Youmate,Vidmate,Mediafire)
You search with keyword “You” in it then it will return a list with items Youtube and Youmate.
It can be used to make simple search logic in the app
You can also pass true or false to ignore case or not(Uppercase and Lowercase)
Thanks to @chaimk For Sponsoring this extension .
Blocks
[listfinder]
Download
com.atomdeveloper.ListFinder.aix (7.5 K…
This extension allows filtering data in lists of large amounts of items. The filtering is done asynchronously therefore you can filter large lists and not notice any interference in the user interface.
Current Version Properties
Works asynchronously.
Use of all cpu cores for fast filtering.
It has three types of filtering.
Allows to establish a percentage of similarity
Blocks
[blocks]
Level of Similarity
It is an integer that goes from 0 to 100, it tells the engine how equal the items in…
Enderman
(Shreyansh)
December 24, 2020, 7:53am
#9
Can You Provide in Block Format I get data For Airtable
themaayur
(Mayur Berad)
December 24, 2020, 7:56am
#10
I have given you every thing you need to know, now it’s your time to do some work.
You won’t get everything ready made.
I have already piled up many collage work that I have not used Creator form last month and also not so active in Community too.
3 Likes
when there is a way with blocks,no need of extension
iamwsumit
(Sumit Kumar)
December 24, 2020, 9:18am
#12
There is already a guide about that
So Welcome, Everyone today in this guide I will show how to Implement a search bar in your app with Simple & Dynamic Listview.
So Let’s Begin
1. Search Bar with simple List
• Design
Design The Search Bar According to Your Need Make two Arrangement
[image]
In search Arrangement there will be a textbox for input. Other things you can manage according to your need OR check my aia.
• Blocks
Variables
List from which user will search
[image]
Textbox to temporarily save input
[image]
The ma…
And your methode is same just like this guide you have not just used lowercase that is important
iamwsumit:
that is important
This is not necessary. It depends in your needs.
1 Like
i don’t know of that but anyway i din’t copy that i thought myself
system
(system)
Closed
January 23, 2021, 12:15pm
#15
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.