cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

filtering combo box CDS Multi option

Hello, I am having trouble filtering the combo box.

All data is connected to CDS and the field is Multi option.

Combo box is in the form .

 

CDS

Entity : product

field:name

Multi option.

Selection: toyA, toyB, toyC, toyD

 

combo box

Items : Choices(name)

I just like to show toyA, toyB, and toyD in my combo box.

I’ve tried Filter(Choices(name), Not(Value in " toyC ") but not working.

Could someone help me?

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

Hi@mssss,

Based on the issue that you mentioned, do you want to populate the ComboBox with the filtered option set values?

Could you please share a bit more about the scenario, is this option set named 'name' or a field named 'name'?

I have a test on my side, please take a try as below.

I created an entity named 'testproducts', a field named 'testname' that contains an option set named 'name'.

Set the Items property of the ComboBox within the Form as below:

 

Filter(Choices(name),Not("toyC" in Value))

 

Please check if you have quoted the correct optionset name.

If this could not solve your problem, please provide an error message, a screenshot would be great.

Best Regards,

Qi 

Best Regards,
Qi

View solution in original post

2 REPLIES 2
v-qiaqi-msft
Community Support
Community Support

Hi@mssss,

Based on the issue that you mentioned, do you want to populate the ComboBox with the filtered option set values?

Could you please share a bit more about the scenario, is this option set named 'name' or a field named 'name'?

I have a test on my side, please take a try as below.

I created an entity named 'testproducts', a field named 'testname' that contains an option set named 'name'.

Set the Items property of the ComboBox within the Form as below:

 

Filter(Choices(name),Not("toyC" in Value))

 

Please check if you have quoted the correct optionset name.

If this could not solve your problem, please provide an error message, a screenshot would be great.

Best Regards,

Qi 

Best Regards,
Qi
Anonymous
Not applicable

@v-qiaqi-msft 

It worked!

I appreciate your help.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (5,290)