i have a firebase and a list, then for each item in the list, web go to url get item and then web delete. then the first deleted from the web and then companion app closes. what should i do?
when click button5 the first item from the list got deleted from firebase then companion get closes and the rest items are not deleted. what do i do?
ABG
June 18, 2023, 9:52am
2
You are using Button5 as a machine gun.
Create a new global list for that button and web call with pending delete requests, and deplete it after the first request completes.
Send the first request only.
Catch the completion event of the delete so you can know to send the new first item for deletion.
1 Like
TIMAI2
June 18, 2023, 10:07am
3
Is there anything else in "Request" that you want to keep ?
yes
and i am trying with blocks that @ABG said above. i hope i ll get success.
TIMAI2
June 18, 2023, 10:38am
5
Pralaya_Ranjan_Beher:
yes
Shame, you could then just delete Request.
Possibly place all those items in a sub node, then all you have to do is one call to delete that node....
e.g. just delete /Request/tags
--Request
|--tags
|--tag1
|--tag2
.....
in Request there are 5 to 6 projectbuckets and i want to delete only 2 to 3 buckets
i did this and its working.
i gave timer to 2sec
edited the firebase url then uploaded here
is there method to do the same thing?
TIMAI2
June 18, 2023, 11:22am
9
I do not like either of those....
try like this:
1 Like
ABG
June 18, 2023, 5:17pm
10
It's important to add purpose to variable names, to avoid lethal mixups.
Think of an assassin's hit list versus his wife's party invitation list.
1 Like
system
Closed
June 25, 2023, 5:18pm
11
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.