Allowing manual entry into the search chip selector

Hello,

I have an application in Kinetic that uses several search chip selectors. I am trying to allow users to use the search functionality, while also giving them the option to manually type in their values.

Currently, my search functionality works properly, but when I try to type in a value manually, I see the following in the browser console:

“validateFilter not found for auto search…”

I see a Validation parameter in my search-show widget within my event, but since it’s expecting JSON, I’m not sure what it’s expecting.

Does anyone know what JSON this parameter is expecting?

I found an example of the JSON in the built in Job Traveler screen.

Ex:

{
	"validateFilter": "JobNum = '%value%'",
	"errorMessage": "Invalid Job"
}
1 Like

Would you mind sharing your chip setup for this? Something I’ve never learned to do. I just force my users to use the search.

1 Like

Sure, here is a screenshot of my search-show settings in my on click event.

To make manual entry work, I had to enter this json into the “Validation” property.

{
	"validateFilter": "PartNum = '%value%'",
	"errorMessage": "Invalid Part Number"
}

In terms of my search-chip-selection element itself, the only properties I set are the id, EpBinding to my data view, and the Empty Label Text.

So, you still use a search-show widget… even though you don’t want the “search” to actually pop up and run on screen? I guess that’s what I can’t wrap my head around.

My understanding is it is using the search event still, but only for validation purposes. If an invalid value is entered, it uses the errorMessage property to display a message to the user to let them know.

When I enter a value into my input it adds a chip like it normally would when selecting them in search.

2024-12-05 14-32-02

I made a test application to show the debug screen of only the search events happening after manually typing in my value:

I can’t get mine to work… but I’m trying to do this with a BAQ Report.

So, the BAQ Report includes a Filter (Customer) in this case. The system created the filter using a Chip:
image

And a base/locked event:
image

I attempted to create an override event:
image

image

image

… but I’m still getting the validation error:
image

I don’t even see an event fire… so I can’t verify that my override is kicking off.

I was able to replicate what you’re experiencing. It looks like the override event isn’t firing at all.

I’m testing this by clicking the search button to open the search slide out. I would assume if my override event was firing it would choose to fire when I click the search button too. When looking in the console with debug on, I only see it firing the base event. This would explain why the validateFilter error is still showing.

I also tried to overcome this issue with the before event hook. While this did fire my custom event, I was unable to stop it from firing the original event with event-cancel.

image

image

So far it looks like this functionality may not be able to be implemented on BAQ Report forms.

1 Like

Appreciate you taking the time to verify what I’m seeing. I’ll poke at it more later.

Hi, I was facing a similar issue - I was overriding a base search click (ReportParam.SupplierID) where I had a validate filter in search-show.

After a good bit of sluething, I found that system goes back to the base event to check the validate filter instead of checking Before/ After/ Override. I was able to get mine resolved using a TransView.<your column name> for search click.

I am using 2 search value set to set it in ReportParam and TransView fields.

Validate filter: { “validateFilter”: “VendorID = ‘%value%’”, “errorMessage”: “The Vendor ID doesn’t exist” }