navigation shortcuts (Next/Prev already there)

Discuss all feature requests you have for a new Servoy versions here. Make sure to be clear about what you want, provide an example and indicate how important the feature is for you

navigation shortcuts

Postby IT2Be » Mon Nov 10, 2003 3:04 pm

Related to my previous request but still...

I would like some shortcuts to give the user the possibility to navigate to first, previous, next, last records.

Is this something to do ourselves or something that we can have that as a standard?
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

Re: navigation shortcuts

Postby mattman » Mon Nov 10, 2003 9:52 pm

IT2BE wrote:Related to my previous request but still...

I would like some shortcuts to give the user the possibility to navigate to first, previous, next, last records.

Is this something to do ourselves or something that we can have that as a standard?


Seems like it might be something you can do with the pending feature of being able to write menus. If you can attach methods to menus and shortcuts to menus then you will likely have key-command support.

But then, I'm not one of the developers.
Matt Petrowsky
mattman
 
Posts: 160
Joined: Wed Aug 06, 2003 8:23 am
Location: Murrieta, CA

Postby IT2Be » Mon Nov 10, 2003 9:55 pm

That's what I thought too but still wanted to ask the developers. You never know what goodies they have for us on the shelf...
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 Jan Blok » Tue Nov 11, 2003 1:47 am

Not planned becouse it so easy:
controller.recordIndex = 1;//first
controller.recordIndex++;//next
controller.recordIndex--;//previous

For lastrecord you have to loop (we don not have all rows availeble at all times in servoy client, there could be possible millions!, probably a bad thing to go to last record)

for (var x = 1 ; x <= controller.getMaxRecordIndex() ; x++)
{
controller.recordIndex = x;
}
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby jcompagner » Tue Nov 11, 2003 11:24 am

To directly go to the last record without getting all the other records:

while(controller.recordIndex != controller.getMaxRecordIndex() )
{
controller.recordIndex = controller.getMaxRecordIndex();
}
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Postby IT2Be » Tue Nov 11, 2003 11:27 am

Thanks for the tip guys!!!
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 Discuss Feature Requests

Who is online

Users browsing this forum: No registered users and 12 guests