Shortcut key is not working on find mode with Radio button

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Shortcut key is not working on find mode with Radio button

Postby satya.sahu » Thu Jun 02, 2016 2:55 pm

Hi
I am using Servoy version 7.4.1 -releaseNumber 2028.

I have created a radio button and attached with a value list which contains 4 values(e.g Invoice type , values : x,y,z,h). Then I go to find mode by clicking a button and also create a shortcut plugins.window.createShortcut('ENTER',shortx,[event]);. After that i have selected a value and hit enter then its not calling the callback method. This working fine for all other fields like text field , combo box etc.

Code: Select all
function onFind(event) {
   foundset.find();
   plugins.window.createShortcut('ENTER',shortx,[event]);
}

function shortx(event) {
   
   foundset.search();
   application.output(foundset.getSize());
}


Need help.

Thanks,
Satya
satya.sahu
 
Posts: 33
Joined: Thu Aug 29, 2013 4:59 pm
Location: India

Re: Shortcut key is not working on find mode with Radio butt

Postby Bernd.N » Fri Jun 03, 2016 11:24 am

Hi Satya,
could you explain why the user should press ENTER?
Does he not use the mouse to click one of the four radio buttons?

And do you use the onDataChange()-event for the radio button?

And by what action is your onFind()-method called?
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 544
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Re: Shortcut key is not working on find mode with Radio butt

Postby satya.sahu » Fri Jun 03, 2016 11:38 am

Hi Bernd

Yes I need to use "Enter" to search. The requirement is like user need to go to find mode and then user can select or type anything, then user press enter to search on the foundset.

Thanks,
Satya
satya.sahu
 
Posts: 33
Joined: Thu Aug 29, 2013 4:59 pm
Location: India

Re: Shortcut key is not working on find mode with Radio butt

Postby Bernd.N » Fri Jun 03, 2016 12:21 pm

Ok. It maybe an idea to create a global var cSearchStatus that holds a current status, and to have already one universal ENTER-shortcut defined for the find/search-scenario when entering that form.
Then the ENTER will always call the find-function, which will in return check cSearchStatus, and in case a search is possible due to the other circumstances, then it will fire.

That way, you work around the problem that the radio buttons do not work the way you want.

When leaving the search form, you could delete the shortcut again in the onHide() of the form.
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 544
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Re: Shortcut key is not working on find mode with Radio butt

Postby Peter de Groot » Fri Jun 03, 2016 1:29 pm

Hi,

Perhaps this plugin https://www.servoyforge.net/projects/keylisteners/wiki is usable.

Regards
User avatar
Peter de Groot
 
Posts: 215
Joined: Thu Jan 10, 2008 8:38 pm
Location: Not sure...

Re: Shortcut key is not working on find mode with Radio butt

Postby patrick » Fri Jun 03, 2016 2:05 pm

Stupid question maybe: doesn't the enter key automatically fire the search?
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Re: Shortcut key is not working on find mode with Radio butt

Postby satya.sahu » Wed Jun 22, 2016 8:34 am

Hi Patrick
Thanks
Would you like to import the attached sample solution and could able to test the same (Servoy version 7.4.1 -releaseNumber 2028. Web client).
Let me know whether you are getting the same issue or I am missing something.

Thanks,
Satya
Attachments
Demo.servoy
(4.56 KiB) Downloaded 215 times
satya.sahu
 
Posts: 33
Joined: Thu Aug 29, 2013 4:59 pm
Location: India

Re: Shortcut key is not working on find mode with Radio butt

Postby satya.sahu » Thu Jun 30, 2016 9:37 am

Hi
Any one could help me on this, It's important for me.
Thanks,
Satya
satya.sahu
 
Posts: 33
Joined: Thu Aug 29, 2013 4:59 pm
Location: India

Re: Shortcut key is not working on find mode with Radio butt

Postby Andrei Costescu » Fri Jul 01, 2016 9:53 am

You can create a case with the sample solution and forum thread link in it.
Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 1018
Joined: Tue Jun 26, 2007 3:14 pm

Re: Shortcut key is not working on find mode with Radio butt

Postby satya.sahu » Thu Jul 21, 2016 10:41 am

I have created a ticket in servoy
https://support.servoy.com/browse/SVY-10178
Hope this will get resolved .
Thanks,
Satya
satya.sahu
 
Posts: 33
Joined: Thu Aug 29, 2013 4:59 pm
Location: India


Return to Programming with Servoy

Who is online

Users browsing this forum: Google [Bot] and 10 guests