method attached to a onSearch Event

Hi all:

I have a form without any method attached to a onSearch Event (it’s set to DEFAULT). In Smart Client, if you find a record and there is no results, you see a message “No result from search, modify las find?”. If you select “Yes” you can modify search criteria.

But if you attach a method (even it only includes the code “controller.search()”), then you don’t receive that message and Servoy doesn’t show the search criteria.

Is there any way to show that message?

Juan,

You could use the dialog plugin if controller.search() returns 0.
The i18n key servoy.formPanel.search.noResults holds this text.

Rob

It’s a solution for showing the message, but Servoy doesn’t show the search criteria you typed…