Navigator location

Questions and answers for designing and implementing forms in Servoy

Navigator location

Postby leonid » Sun Sep 09, 2012 3:45 am

Hi,
If somebody know how to show custom navigator form(navigator property of form) on right side of form.According servoy documentation the navigator is shown at the left or at the right side of the form, depending on the page orientation. I try with Defaultpageformat property and used 3 possible options for orientation: portrait,landscape ,reversed landscape, but it doesn't work.
Thanks
Leonid,
Servoy / Foxpro / Java
leonid
 
Posts: 34
Joined: Wed Aug 29, 2012 1:58 am

Re: Navigator location

Postby dfrazier » Wed Oct 10, 2012 8:13 pm

Why not just create your own navigator and put it where you want. Just make 2 buttons and set their onAction events to functions that modify which index is selected in the foundset. For the "Prev" button, use this code:
foundset.setSelectedIndex(foundset.getSelectedIndex() - 1)

For the "Next" button, use this code:
foundset.setSelectedIndex(foundset.getSelectedIndex() + 1)

By using your own navigator, you can also make it look non-crappy.
This is my signature.
User avatar
dfrazier
 
Posts: 40
Joined: Fri Jun 29, 2012 3:43 pm
Location: Earth

Re: Navigator location

Postby Providence1 » Tue Mar 18, 2014 9:52 pm

Why doesn't this work anymore?

Code: Select all
foundset.setSelectedIndex(foundset.getSelectedIndex() - 1)

foundset.setSelectedIndex(foundset.getSelectedIndex() + 1)


I hate it when stuff just stops working!
Providence
Providence1
 
Posts: 456
Joined: Tue Aug 17, 2004 2:36 am
Location: New York, NY

Re: Navigator location

Postby Harjo » Wed Mar 19, 2014 1:02 am

Works fine here....
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands


Return to Forms

Who is online

Users browsing this forum: No registered users and 12 guests