Kinetic EmpBasic ComboBox with Filter

Anyone have any success with adding a filter for a EmbBasic ComboBox?

It would be nice to use EmpBasic BO vs creating a BAQ.

Trying to add a filter Payroll = true and EmpStatus = ‘A’

Nothing seems to work and am getting the following error.

Ice.Common.EpicorServerException: Invalid column name 'Payroll'.
Invalid column name 'Payroll'.
Invalid column name 'Payroll'.
Invalid column name 'Payroll'.
Invalid column name 'Payroll'.
Invalid column name 'Payroll'.
Invalid column name 'Payroll'.
Invalid column name 'Payroll'.
 ---> System.Data.SqlClient.SqlException (0x80131904): Invalid column name 'Payroll'.

Go look at @hmwillett control compendium post. You should be able to get to it through her tag. She has very good examples of the syntax for using the reusable combo.

Yes.

We are trying Fig L from the control compendium post. Getting the error posted above.

Put it in Filters Append.

1 Like

Like this?

Same error.

1 Like

Filter does work with Company. Just not the other fields.

5 Likes

Dear gawd, its like a pharmacy receipt!

2 Likes

Yep, that’s straight up CVS right there.

1 Like

Tell Me More To Do List GIF by Disney Channel

1 Like

Mixedish Shes Back GIF by ABC Network

1 Like

Awkward Season 4 GIF by The Office

5 Likes

turn monitor

That’s better!

3 Likes

That worked. Thanks a bunch! Looks like the issue Ken and I were having is that we were defining “GetRows” in the Service Method field and leaving Data Mode set to blank. :dizzy_face:

1 Like

Eh, I think the bigger issue is it’s not letting us define the filter to a specific whereClause. It was doing the EmpStatus filter on all of the returned tables from GetRows, but EmpStatus didn’t exist in the others.
It’s a lot of trial and error.

2 Likes

Hi Hannah,

Do you also have an example of a combo box with a whereclause filter like ?{Constant.CurrentPlant} of something like that?

I tried to create a combo box for warehouses where hidden column Plant = ?{Constant.CurrentPlant}. Unfortunately the ?{…} is always interpretated like a string, not like a reference to the existing parameter. Tried with single brackets, % and double, but probably doing something wrong.

'?{Constant.CurrentPlant}'

(Assuming Constant.CurrentPlant is valid)

Jeps it is.

I also tried to use a value that i manually stored in TransView.PlantFilter, but that didnt work either.

image
image

Got it :slight_smile:
How to pass dynamic filter to combo box - Kinetic - Kinetic ERP - Epicor User Help Forum