Using a tabpanel for navigation

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

Using a tabpanel for navigation

Postby Jan Aleman » Tue Mar 23, 2004 1:14 pm

Below you can download an example solution that uses a tabpanel for navigation. I built a form named navigation and using a tabless, relationless tabpanel i place it on all forms I want the navigator on. All navigation is done using one method, the method reads the name of the button and goes to the correspending form.
Attachments
navtest.servoy
(23.86 KiB) Downloaded 612 times
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

buttonname

Postby megaquests » Tue Mar 23, 2004 3:58 pm

many thanks Jan, that's great

please help though, i must be missing something (probably obvious) although i've looked as carefully as i can

i get this error when clicking the buttons
"Error while executing method with the name navmethod, id3945"
"The undefined value has no properties."

is it something to do with buttonname? i cant seem to find that anywhere
thanks
Eugene
megaquests
 
Posts: 91
Joined: Mon Mar 01, 2004 1:09 pm
Location: Brighton, UK

Postby Jan Aleman » Tue Mar 23, 2004 4:05 pm

do you get that error immediately after import? or after changing things?
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Postby megaquests » Tue Mar 23, 2004 4:52 pm

sorry i was pretty vague there...

the import of your solution went fine and your solution works great...
i did my best to copy your script etc into one of our existing solutions using yours as a guide... it is my attempt to copy your script that is giving me trouble

1. ive named the buttons the same as the forms they link to
2. copied your navmethod script
3. changed the button onaction for navmethod

all seems ok but when i try the clicking on the buttons in the servoy client i get the error:
"Error while executing method with the name navmethod, id3945"
"The undefined value has no properties."

do i need to do something with buttonname? i can see buttonname in your navmethod script but am not sure what or where it should relate to.

many thanks
Eugene
megaquests
 
Posts: 91
Joined: Mon Mar 01, 2004 1:09 pm
Location: Brighton, UK

Postby Jan Aleman » Tue Mar 23, 2004 5:33 pm

Are you sure you filled the name property of the buttons with the same value as you form names?
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

tabpanel nav

Postby megaquests » Tue Mar 23, 2004 5:57 pm

I did not think to check if it was case sensitive..
So you were right i did not get the values right on the form names.
works now!!!
ill check the for case sensitive next time:wink:

thanks for your help and for posting the script, it should be a massive time saver

Eugene
megaquests
 
Posts: 91
Joined: Mon Mar 01, 2004 1:09 pm
Location: Brighton, UK

tabpanel for drop down navigation?

Postby megaquests » Fri Apr 02, 2004 8:08 pm

is it possible to alter this tabless, relationless tabpanel navigation to create a drop down navigation using that works in a similar way?

do you think that might be a good way to handle navigation on a solution with 30 + forms?

many thanks
megaquests
 
Posts: 91
Joined: Mon Mar 01, 2004 1:09 pm
Location: Brighton, UK

Postby patrick » Mon Apr 05, 2004 10:45 am

when I try to import the solution into a MS SQL 2000 repository, I get the following error:

com.servoy.j2db.persistence.RepositoryException: com.servoy.j2db.persistence.RepositoryException: java.lang.IllegalArgumentException: No type mapping exists for type 11


any ideas?
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany


Return to How To

Who is online

Users browsing this forum: No registered users and 13 guests