key command to enter todays date and replace data...?

Find out how to get things done with Servoy. Post how YOU get things done with Servoy

key command to enter todays date and replace data...?

Postby otaku.com » Tue Dec 06, 2005 2:33 pm

1. Can I use a key command to enter todays date in a field?
eg. in Filemaker I press cmd-dash to do this

2. Can I use a key command to replace data in all fields
with the data in the current field?
eg. in Filemaker I press cmd-= to do this.
otaku.com
 
Posts: 43
Joined: Tue Dec 06, 2005 2:29 pm
Location: Nagoya, Japan

Re: key command to enter todays date and replace data...?

Postby IT2Be » Tue Dec 06, 2005 6:47 pm

otaku.com wrote:1. Can I use a key command to enter todays date in a field?
eg. in Filemaker I press cmd-dash to do this

You can do this with a button and an attached script setting the field with a new Date() value;

2. Can I use a key command to replace data in all fields
with the data in the current field?
eg. in Filemaker I press cmd-= to do this.

You can do this with a button and an attached script using ' databaseManager.getFoundSetUpdater(foundset)'
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby jim » Tue Dec 06, 2005 8:21 pm

This would seem like a great plug-in feature! That is, to allow the executing of methods based on key commands. Perhaps in your next version of the menu plug-in? (or... does it already do that?)
jim
 
Posts: 270
Joined: Mon Jul 25, 2005 3:42 pm
Location: Maine

Postby IT2Be » Tue Dec 06, 2005 8:25 pm

Sure :) Completely forgot about that...

You can attach whatever accelerator key to a menu item and the attached method will do the job for you!
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby otaku.com » Wed Dec 07, 2005 3:32 am

thanks!

Would the date button and an attached script setting the field with a new Date() value; work in find mode?

Also can I easily edit the date once it's been entered?

The reason I ask is the SQL date commands look complicated and I use dates a lot. So I need Servoy to be as fast as Filemaker with date entering and finding.

- - -


I also want to be able to switch windows
within Servoy using key commands.

Does MenuBar plugin do that?
otaku.com
 
Posts: 43
Joined: Tue Dec 06, 2005 2:29 pm
Location: Nagoya, Japan

Postby IT2Be » Wed Dec 07, 2005 7:39 am

otaku.com wrote:thanks!

Would the date button and an attached script setting the field with a new Date() value; work in find mode?

Hmm, I am afraid not. What most of us do (I guess) is create a seperate 'find' form and attach globals to them. This way you find/search command is seperated from the table you are going to search on

Also can I easily edit the date once it's been entered?
Again, not in find mode.

The reason I ask is the SQL date commands look complicated and I use dates a lot. So I need Servoy to be as fast as Filemaker with date entering and finding.
SQL is not too difficult when you start easy. Go to a SQL training site like http://www.sqlcourse.com and just start using it. BTW Servoy makes life a lot easier than with plain sql. We can add '?' (question mark without quotes) where we want to put our input variables and Servoy will take care of formatting the values based on the input type(s) of the input array.

- - -

I also want to be able to switch windows
within Servoy using key commands.

Does MenuBar plugin do that?
That's even a standard feature for an x amount of forms. When you want more or something different you can do it with the Menubar plugin.

Cheers
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany


Return to How To

Who is online

Users browsing this forum: No registered users and 12 guests

cron