SOLVED I think problem solved. I find on forum disscussion about DOBLE running get totalcount for reading actual value and people find descision here. If somebody has the same issue - here answer: https://www.wix.com/corvid/forum/community-discussion/database-collection-filter-issue ============== UPDATE - May be problem not in delay - something strange Each Time Volume of GetTotalCount "updated" after query finished and After second use of dropdown selector - show previous volume....
==================== Hello! Try to briefly describe problem. I have database: persons names, some text information and much more... I filtered database by persons name (with Input through DropDaown Input) After SetFilter I do Query and run "FOR" (loop) and do something. I do "gettotalcount" (
let Count = $w("#dataset").getTotalCount(); and RUN my FOR
for (var i=0;i<Count;i++) {......} PROBLEM value of "Count" appear MUCH later (3-5 seconds or more)
then FOR running... How I have manage Delay... And How I can know that Value of Count "appear" I have an Idea. set Count = 0 before run GETTOTALCOUNT and Inside another Loop check Value of Count until it became different then "0" but It look much "crazy" Do any body know some easier way to check when
"let Count = $w("#dataset").getTotalCount(); "
give me result and I can proceed to run "FOR" statement
Thank You in advance
Sincerely,
Misha