method attached to a onSearch Event

Questions, tips and tricks and techniques for scripting in Servoy

method attached to a onSearch Event

Postby juan.cristobo » Mon Dec 17, 2012 1:10 pm

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
Madrid (Spain)

Servoy 7.4.x - MySQL / SQL Server 2008-2016
Windows 10 Pro
juan.cristobo
 
Posts: 186
Joined: Thu Apr 19, 2012 9:12 am

Re: method attached to a onSearch Event

Postby rgansevles » Wed Jan 02, 2013 2:34 pm

Juan,

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

Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1927
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: method attached to a onSearch Event

Postby juan.cristobo » Tue Jan 08, 2013 5:19 pm

It's a solution for showing the message, but Servoy doesn't show the search criteria you typed...
Juan
Madrid (Spain)

Servoy 7.4.x - MySQL / SQL Server 2008-2016
Windows 10 Pro
juan.cristobo
 
Posts: 186
Joined: Thu Apr 19, 2012 9:12 am


Return to Methods

Who is online

Users browsing this forum: No registered users and 7 guests