DisplayMember in EpiCombo

Hello everyone!
I have a problem with an epicombo, I have it configured, I put a value in ValueMember and DisplayMember.

Everything works correctly up to that point. I have a new requirement which is to add a filter from a field. When I add this filter in the code it doesn’t respect the DisplayMember and places the ValueMember.

If you select a record, the data displayed is the DisplayMember.

When I add a new record it shows correctly(DsiplayMember). For this example also filter by Country.

The problem is when I save the record and switch to another record, it no longer shows the DisplayMember, what it now shows is the ValueMember.

I also tried with EpiFiltersParams and get the same result.

Show us your EpiCombo properties.

And…

happy welcome home GIF by Ecard Mint

“Everything works correctly up to that point. I have a new requirement which is to add a filter from a field. When I add this filter in the code it doesn’t respect the DisplayMember and places the ValueMember”.
“If you select a record, the data displayed is the DisplayMember.”

25-06-2024_10-18-59

“When I add a new record it shows correctly(DsiplayMember). For this example also filter by Country.”

Thanks!

try turning retrieveonactivate off

I made the change you mention, but with that change it doesn’t give me any value.

1 Like

I’m sorry, was a shot in the dark. Brain is kinda fried atm.

Try moving your filter to EpiFilter? and maybe something like Key1 = Ciudades

Hi!

I tried this image with the value of the EpiFilter and EpiFiltersParam but the EpiFilterParam part doesn’t work

thank´s!

1 Like

If you can’t get the filters to work you can use a bit of code:

I’ll try!

1 Like