I’m at the stage now where if a user wants to click on another user, they should just tap on the column which contains said user
I’m not sure how to identify which column they’ve tapped on though because there’s not a “When any column clicked” component.
Does anyone have a suggestion on how to identify that column which was clicked?
Or is there some way to ask “is tapped component a clone of xzy component?”
It’s strange that the when Any Component Click block doesn’t have row or column options. Only “Any Group” which would be for the drag and drop interface:
You can figure out what was clicked by finding the first occurrence of another component within the column such as an image or button. But it’s not a great workaround.
I’m also wondering perhaps there is another way to index the column of the button you tap?
You should be able to grab object properties of whatever you’re looking for based on the index at that point?
Can you use a list viewer or Data Viewer List/Grid for this instead? Then it’s a simple matter to determine which item was clicked.
It’s not hard to get the index number of the button in a screen or in a column but again, I don’t see a way to do that for a column itself. But if you knew, for example, that there were two buttons in each column and you wanted the second button in the third column, that would be #6 (because 2 * 3 = 6).
I did find that I was able to count the quantity of a certain item, to get the index properly like you are saying. Is there a way to programmatically count the quantity of buttons/labels or whatever I’m clicking that way I don’t have to hard code those quantities in there?
This would be beneficial in case I made changes to my custom data viewer.
I’m not too fond of the data view list because it doesn’t seem to mesh well when combining it with Firebase DB
I’m using this method, but now for some reason when I use the Realtime DB listener & the DataChanged blocks together, I’m getting tons of duplicates, I don’t want to create a remove duplicates because it’s a chat so some messages might actually be legitimate copies.
I’ve noticed if there’s any lag from my internet there will be a lot more copies, usually though there’s only 4 copies. I have a remove all block prior to all of this so it’s getting rid of the existing.
Any ideas, is this a common issue? Not sure if this should be it’s own thread also since it’s somewhat related to the clone from this original post.