Combobox Filtering - Application Studio

Hey,

I have a combobox connected to ResourceGroup displaying correctly, except I want to filter out inactive groups.

The reusable resource group combo wouldn’t let me change the Filters contents, so I added another combobox and manually entered the service, etc. Works fine, except for the filter.

When I try to add the filter like this:

image

Or this:

image

Or any other permutation, I get this when I click on the dropdown:

image

What’s the syntax on this bit of code? I’ve also tried these filters with resulting errors or lack of actual filtering.

image

Thanks,

Joe

1 Like

Well, this worked. Close enough. :slight_smile:

image

3 Likes

I am trying to do something similar - my reusable combo is using the Erp.BO.UserFileSvc - GetRows table UserFile.

I am trying to filter by UserFile.UserDisabled = false and I cannot get the filter to work.

Any suggestions welcome:
DaveO

1 Like

Put it in the Filters Append section.

Ms. Hannah: Thank you for the suggestion.
I am unable to get that to work.

I thought i saw a thread somewhere that said we are unable to reference a field to filter on that is not part of a View?

Does that sound correct?
aveO

Did you try UserDisabled = ‘0’ ?

Mr. Joe: Thank you for the suggestion. I was not able to get that to work.
DaveO

Do you need the GetRows method?
I can get this working with GetList, but if I use GetRows, it complains about possible SQL injection.

Ms. Hannah: Thank you for the suggestion.

It is working now but i am not sure why.
I noticed that the Reusable combo - Type and SubType were blank. So i reset those fields.


I then noticed that the “Is Delimited” checkbox was checked. I then just left the Filters Append as “UserDisabled=False” and it now works.

1 Like

That’s because when you use the Type and SubType it defaults to GetList. :slight_smile:

2 Likes

Ms. Hannah: Thank you again - you are a ROCK STAR! :slight_smile:
DaveO

1 Like