Sidenav

Hello All,
how do I get a form to show/load by clicking a sidenav menu.

thank you.
eugene.

Hi
easiest thing to do might be to play with the Servoy Sample solution, as it does exactly that.
From Help menu, choose ‘Download/install with Servoy Package Manager’
Then on ‘Solutions’ tab, install (click ‘+’) the Sample application
and it will install it all in your workspace for you to play with & see how it works ;-)

Good luck

Rafi

Many thanks Rafi. I will try it and give you feedback.
eugene.

You’re welcome
And welcome to Servoy & the forum!
This is a great place to find answers & post your questions.
Enjoy

Hi Rafi,
could not download the Sample Solution.

eugene.

Not sure what your issue might be…
Try installing a fresh copy and making sure that you let it install the default PostgreSQL database server and sample databases & data, then try to install it…

Hi,
just want to show a form by clicking a Sidenav menu.

thanks.
eugene.

Hi Eugene,

you need to attach a method to onMenuItemSelected and there have some code which handles the menuItemId passed in.

A simple way could be like this

function onMenuItemSelected(menuItemId, event) {
   if (menuItemId == "myID" ) {
      elements.sidenav.containedForm = forms.myform;
   }
}