Hello @wshalex123
This is my solution for your case:
https://youtu.be/0JoZMGOpD3Y
I hope you understand what I am showing.
Here are the codes:
App OnStart:
Set(varUser,LookUp('User Logs',Title=User().Email));
If(IsBlank(varUser),Set(varUser,(Patch('User Logs',Defaults('User Logs'),{Title:User().Email,ReadNews:""}))));
ClearCollect(colViewLogs,Split(varUser.ReadNews,"#"));
Circle.Fill
If(ThisItem.ID in colViewLogs, RGBA(80,80,80,1),RGBA(0,200,0,1))
When clicking the news:
If(!(ThisItem.ID in colViewLogs),
Patch('User Logs', varUser,{ReadNews:Concatenate(ThisItem.ID,"#", varUser.ReadNews)});
Set(varUser,LookUp('User Logs',Title=User().Email));
ClearCollect(colViewLogs,Split(varUser.ReadNews,"#"));
)
✔️ | Just in case my response helped you solve your problem, please mark/accept this as a SOLUTION. This helps community members if they experience a similar issue in the future. |