I want to create a repeating group or a table where we can see the historical of the likes on an application that could be a Clone X (Ex-twitter).
When the user like the heart we can see on another page with a repeating group or a Table, the tweet and the username of the person who has liked (Clicked on the heart).
As you can see below, I achieved to add the data a show on the repeating group the tweet and e the username when the user likes.
But i don’t know how to delete the information of the data type (Tweet liked) and don’t show anymore the tweet. I don’t find the option delete. I found the workflow “Delete a thing” but it is not clear and simple like “Create a thing”.
Do you think it is possible?
If I am not clear I can reformulate with more pictures.
I’m not really understanding your question. Are you asking about deleting likes when a user unlikes a tweet? What’s not clear about the delete a thing action?
Also, when you create a new Tweet Liked there’s no need to save the username. The record will be created by the user who likes the tweet. It’s best to use this “created by” field rather than the username field. This way you wont have to worry about users changing their usernames.
First of all, thank you to take your time for answering me and I am sorry if I was not clear. So below, I differently reformulate with screenshots.
First, you can see the preview mode.
On the image below, you can see the tweet that the User “Early Bird” published (Middle repeating group) AND the tweet that has been liked by the user or something else (whatever) (Left repeating group).
On the middle, it is a repeating group for the tweets. On the left, this is also a repeating group for the Tweet liked.
On the image below, this is the step that i don’t know how to to. As you can see, the user, unlike the tweet, but the tweet stays on the left repeating group, the Tweet Liked. I want the tweet disapear on the left, not on the middle repeating group.
On the image below, you can see the action to register when the user Like. FYI, Don’t be surprised by the Field “NumberOfLikes” + 1. This is because on the other interfaces, there is a kind of Fake user and he can determinate how Likes he/she wants to show. This step is not important for this topic
On the image below, you can see the step to send the tweet (Data) in the Data Type 'Tweet Liked". So, if the the Current User cell’s doesn’t contain Current User.
On the image below, nd the last one, You can see the action when the user unlike the Tweet.
And here, The first step is okay, I mean how to unlike. But after that, here is my blocked point.
I don’t know what to do for saying at Bubble Workflow: Delete the Tweet on the data Type “Tweet Liked”. So it means delete the tweet on the repeating group on the left only. Here, is the tweet “Now, Like my tweet, please” BUT only on the left repeating group and NOT on the middle repeating group because, the tweet is sent and that’s over.
First, the “TweetsLiked” data type needs a “Tweets” field to track which tweet is being liked. Then, when a user unlikes a tweet you can use an action to delete “TweetsLiked”. Where it ask for the thing to delete you can search for TweetsLiked where created by = current user and tweet = current cell’s tweet.
Also, just a couple of things I noticed…you shouldn’t save likes as a list on the “Tweets” datatype. Bubble does not do well with long lists in a field plus you already have another datatype tracking that so it’s redundant. Second, I would normally recommend to calculate Tweet stats on the fly using a count expression. But if you want to artificially inflate the number of likes then you can keep tracking that manually.
YES ! It works!! Thank you so much! Now I have to take time to write for a 12’s years old kid what does it mean (It is my technical to understand).
To answer you.
Okay, But are you sure it will work if it is not a list ? and what Should I paramer, ? juste user ?
Second, I would normally recommend to calculate Tweet stats on the fly using a count expression. But if you want to artificially inflate the number of likes then you can keep tracking that manually.
I did it on purpose because it will be a fake twitter and it is for training the Communication manager. But if I follow you advise for the first step, the second will still work according to you ?
Again thank you so much, I could sleep like a baby this night
YES ! It works!! Thank you so much! Now I have to take time to write for a 12’s years old kid what does it mean (It is my technical to understand).
To answer you.
Okay, But are you sure it will work if it is not a list ? and what Should I paramer, ? juste user ?
Second, I would normally recommend to calculate Tweet stats on the fly using a count expression. But if you want to artificially inflate the number of likes then you can keep tracking that manually.
I did it on purpose because it will be a fake twitter and it is for training the Communication manager. But if I follow you advise for the first step, the second will still work according to you ?
Again thank you so much, I could sleep like a baby this night