Images not updating on Dropdown Selection

Images not updating on Dropdown Selection

  

Hi All 

I have two drop downs ..Dropdown 1 and Dropdown 2 in a Mobile App.

When i select Dropdown 1 the Text changes in Dropdown 2 but not the image?

I have attached the oml ...please can you see why the image is not updating?

Hi Nidia,


Can you please attach the OML?


Cheers,

Renato


Nidia Cochrane wrote:

Hi All 

I have two drop downs ..Dropdown 1 and Dropdown 2 in a Mobile App.

When i select Dropdown 1 the Text changes in Dropdown 2 but not the image?

I have attached the oml ...please can you see why the image is not updating?



Renato Torres wrote:

Hi Nidia,


Can you please attach the OML?


Cheers,

Renato


Nidia Cochrane wrote:

Hi All 

I have two drop downs ..Dropdown 1 and Dropdown 2 in a Mobile App.

When i select Dropdown 1 the Text changes in Dropdown 2 but not the image?

I have attached the oml ...please can you see why the image is not updating?



Hi please find attached


Hi Renato,


Let me know if you got my zipped attachment?

It seems to not want to send the unzipped, file.

This is the unzipped.


Hi,

You are setting the drop-down variable to GetUserDetails.List.Current.UserDatabase.Name. An aggregate outputs a list, by doing this you are only changing the name of the first User in the List (Current), the image remains the same.

You need to add an aggregate with User and UserPicture where you filter for the selected User and refresh it when you change the dropdown value. This way, the image of the user will change.

At the moment, you have only one aggregate without any filters.

Cheers,

João

João Mateus wrote:

Hi,

You are setting the drop-down variable to GetUserDetails.List.Current.UserDatabase.Name. An aggregate outputs a list, by doing this you are only changing the name of the first User in the List (Current), the image remains the same.

You need to add an aggregate with User and UserPicture where you filter for the selected User and refresh it when you change the dropdown value. This way, the image of the user will change.

At the moment, you have only one aggregate without any filters.

Cheers,

João

Hi Joao,

Let me try this but if i get stuck please let me come back to you?

Regards

Nidia




Nidia Cochrane wrote:

João Mateus wrote:

Hi,

You are setting the drop-down variable to GetUserDetails.List.Current.UserDatabase.Name. An aggregate outputs a list, by doing this you are only changing the name of the first User in the List (Current), the image remains the same.

You need to add an aggregate with User and UserPicture where you filter for the selected User and refresh it when you change the dropdown value. This way, the image of the user will change.

At the moment, you have only one aggregate without any filters.

Cheers,

João

Hi Joao,

Let me try this but if i get stuck please let me come back to you?

Regards

Nidia




Hi Joao,


I've tried adding a Filter but keep getting Binary error. I'm applying this to "GetUserDetails".

I dont mind if you can change the oml i sent as example?



Hi Nidia,

You can't do aggregate filters using binary data. You can use the UserDatabase Identifier to filter for that User's picture, as UserPicture has a one-to-one relationship with UserDatabase.

I this case, the filter should be:

UserDatabase.Id = UserPicture.Id

Cheers,

João