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.
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.
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
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