Sidenav

Q&A regarding installation and issues getting started with Servoy

Sidenav

Postby eugenepenney » Thu Mar 30, 2023 3:37 pm

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

thank you.
eugene.
eugenepenney
 
Posts: 5
Joined: Thu Mar 30, 2023 1:07 pm

Re: Sidenav

Postby rafig » Thu Mar 30, 2023 3:56 pm

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
Servoy Certified Developer
Image
rafig
 
Posts: 707
Joined: Mon Dec 22, 2003 12:58 pm
Location: Watford, UK

Re: Sidenav

Postby eugenepenney » Thu Mar 30, 2023 4:31 pm

Many thanks Rafi. I will try it and give you feedback.
eugene.
eugenepenney
 
Posts: 5
Joined: Thu Mar 30, 2023 1:07 pm

Re: Sidenav

Postby rafig » Thu Mar 30, 2023 4:41 pm

You're welcome
And welcome to Servoy & the forum!
This is a great place to find answers & post your questions.
Enjoy
Servoy Certified Developer
Image
rafig
 
Posts: 707
Joined: Mon Dec 22, 2003 12:58 pm
Location: Watford, UK

Re: Sidenav

Postby eugenepenney » Fri Mar 31, 2023 1:09 pm

Hi Rafi,
could not download the Sample Solution.

eugene.
eugenepenney
 
Posts: 5
Joined: Thu Mar 30, 2023 1:07 pm

Re: Sidenav

Postby rafig » Fri Mar 31, 2023 1:31 pm

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...
Servoy Certified Developer
Image
rafig
 
Posts: 707
Joined: Mon Dec 22, 2003 12:58 pm
Location: Watford, UK

Re: Sidenav

Postby eugenepenney » Tue Apr 04, 2023 11:09 am

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

thanks.
eugene.

Attachments
Screenshot 2023-04-04 at 9.01.24 AM.png
Screenshot 2023-04-04 at 9.01.24 AM.png (323.09 KiB) Viewed 2403 times
eugenepenney
 
Posts: 5
Joined: Thu Mar 30, 2023 1:07 pm

Re: Sidenav

Postby hilgers » Tue Apr 04, 2023 3:48 pm

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
Code: Select all
function onMenuItemSelected(menuItemId, event) {
   if (menuItemId == "myID" ) {
      elements.sidenav.containedForm = forms.myform;
   }
}
Joachim Hilgers
Hicosoft GmbH
Cologne, Germany
hilgers
 
Posts: 13
Joined: Wed Feb 15, 2012 1:29 pm
Location: Cologne / Germany


Return to I'm just getting started

Who is online

Users browsing this forum: No registered users and 1 guest