Using a tabpanel for navigation

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.

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

do you get that error immediately after import? or after changing things?

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

Are you sure you filled the name property of the buttons with the same value as you form names?

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

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

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?