24
Views
8
Comments
Solved
Favorite icon doens´t match
Question

I'm developing a system and I have a problem.

I have a system to create favorite, but the heart icon, when favorited, only updates in the favorites area, not in the accordion where it is.

2024-03-23 18-16-49
Bryan Villalobos
Solution

Okay. I see where the problem is.

In your Secretaria A List, you are passing NullIdentifier() to the FavoritosId. (Same on Secretaria B List). I assume it is NullIdentifier because there is no field in the Screen aggregate to get the FavoritosId. 

So to be able to have the FavoritosId, you need to join Painels "with or without" Favoritos and filtering the Favoritos.UserId in the join filter.


Then you can now pass the FavoritosId value:

I have attached the updated oml.


Regards,

Bryan



BlankApp_updated.oml
2024-08-27 18-28-35
sillasneto
Solution

In your Secretaria A List, don't use NullIdentifier() to  FavoritosId. This parameter don't exists.

WhatsApp Image 2024-08-30 at 15.18.38.jpeg
2020-07-21 19-28-50
Rajat Agrawal
Champion

Hi _loiolapaulo,

Could please explain more about your issue, if possible share some screenshot or OML for better understanding. 

With this information we are not able to understand properly.


Regards,

Rajat

2024-04-18 13-51-30
_loiolapaulo

This is what is happening.


Sem título.png
2024-03-23 18-16-49
Bryan Villalobos

Hi @_loiolapaulo ,

Just by looking at the screenshot, we can only assume what you have implemented. 

So I would say, in your "favorites" area, you probably just set the "heart" variable to true since all items in that area is your favorite. However, it seems like the variable you are using in the "heart" in your accordion is not correct.

But these are all just assumptions as we are not sure how you actually implemented it. We also need to know how you are getting the data and which value you are assigning to the screen.

If you can share your OML (module > export > save), then we can pinpoint exactly what is your issue. Otherwise, giving more details and more screenshots on how you implemented this can also help.


Regards,

Bryan

2024-04-18 13-51-30
_loiolapaulo

Ok, here the file.

I'd like the favorite icon equal in "Favoritos" List and "Secretaria a" List

BlankApp.oml
2024-03-23 18-16-49
Bryan Villalobos
Solution

Okay. I see where the problem is.

In your Secretaria A List, you are passing NullIdentifier() to the FavoritosId. (Same on Secretaria B List). I assume it is NullIdentifier because there is no field in the Screen aggregate to get the FavoritosId. 

So to be able to have the FavoritosId, you need to join Painels "with or without" Favoritos and filtering the Favoritos.UserId in the join filter.


Then you can now pass the FavoritosId value:

I have attached the updated oml.


Regards,

Bryan



BlankApp_updated.oml
2024-03-23 18-16-49
Bryan Villalobos

Hi @_loiolapaulo ,


It will be very hard for us to understand your issue with just those information you provided. If you can provide more information on what exactly you are working on, what components you have used or take some screenshots or much better, if you can send your oml (Module>Export>Save), then we'll be very much happy to help you solve your issue fast.


Regards,

Bryan

UserImage.jpg
Afaque Shaikh

Hi @_loiolapaulo 

Looks like you have to use some custom classes and events to fix this task, Kindly please share your OML so I can debug and fix it.


Thanks,

Afaque Shaikh

2024-08-27 18-28-35
sillasneto
Solution

In your Secretaria A List, don't use NullIdentifier() to  FavoritosId. This parameter don't exists.

WhatsApp Image 2024-08-30 at 15.18.38.jpeg
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.