im trying to display the total count of results from a particular search,but iam getting total count of array, ima not getting option to put total count of particular search to, or i dont know what to put.
I’m not really sure what you’re asking…
But all lists have a count property, that can be accessed simply by using :count
So to get the count of a search result, you just use search: count
Reference the repeating you’re showing and use the count operator. For example, in a text element use the expressionRepeatingGroup Companies' list of companies: count
do you think this is correct, im messing up some simple thing iam feeling-ill give you a context here we have an an API to fetch the case. now imagi i type samsung i need to display all the cases that are related to samung whicm iam able to do in repeating group but im not able to diaply the total count of those cases which are related to samsung alone instead it is showing total count of array.
You’re saying the repeating group is updating but the text element showing the count is not? If so, what are the 2 conditions that you have on that text element? Maybe they are overriding the count?
The count should update automatically. You can see a simple implementation here: public-tests | Bubble Editor
You can also try forcing that expression to be re-evaluated by putting the text element in a group and resetting the group whenever the input’s value is changed. But again, the conditions will be taken into consideration when it is re-evaluated
yes. and also when i try to do it again by adding a new text element im not getting that particular API
thank you for reply but iam not getting the list option even after selecting the parent group,
.here is the editors view and app preview ,here the total count of case is fixed to 10 but actually it is around 5000 results which is the right count of results but i have no idea y it is showing 10 , this happens for any case search i do
buuble is having lof of bugs i dont know. sometime im not getting the API provider when i put a new element, but it works fine for all other elemts, i tired reintialising call changing to action elenet and all. its little frustarting . im using two API now i was planning to add 4 more API but now i dont think it is possiblle.no idea on how to fix this.
First, that text element you’re referring to is actually an input element. Not that it should affect the count but just wanted to point that out.
I can’t say why you’re not showing the correct count without having a look at the app.
sorry i didint get you, so here i have searched samsung and it is showing 10 results. but the call actually shoes around 5000 results of samsung. if u look the second picture u will see what logic i have put to get the count unfortunately im not getting the wanted results. the result is 10 its fixed, the api use only give 10 results at a time but that shouldnt effect the total count right , i have also put pagination.
If the API is only returning 10 results at a time and that’s what you’re loading into the RG then it makes perfect sense that RG’s count is being returned as 10. If you know the total number from the API call then I would use that to show the total count rather than using Bubble’s count expression.
the total count of results is different for every case , i cant manually in put them. is there a way to show the total count of that particular case, what logic ill have to implement. or is this API configuration issue. The API iam using dosent give that option at all? hovever iam able to get the total count of the API search array which is 16lak something inside the bubble. but count for the specific search is problem.
Yeah I wasn’t suggesting you handle this manually. If it’s being returned by the API response then you should be able to display that number dynamically for each search. How you you do that depends on the specific call and format of the response. Good luck!