Defining MenuItems: what is feedback???

Questions and answers for designing and implementing forms in Servoy

Defining MenuItems: what is feedback???

Postby glenroyskelton » Wed Jun 18, 2014 10:00 pm

Hi,

What does 'feedback' in the following code refer to? I'm trying to add a menuitem with an icon and the Servoy 7 doc shows this format:

Code: Select all
// add a left aligned menu item
menu.addMenuItem("significantly long text", feedback, null, null, true, MenuItem.ALIGN_LEFT);


I get a Reference Error if I use the word feedback. It's probably really simple but this is my first crack at building servoy menus.

Thanks for any help.
glenroyskelton
 
Posts: 14
Joined: Thu May 17, 2012 11:04 pm

Re: Defining MenuItems: what is feedback???

Postby mboegem » Wed Jun 18, 2014 11:10 pm

you should specify the callback function there > the function that will handle the actions once you select a menu-item.

Just specify the name of the function, without any quotes, without any brackets.
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1750
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: Defining MenuItems: what is feedback???

Postby glenroyskelton » Thu Jun 19, 2014 7:49 am

Great....

Thank you Marc
glenroyskelton
 
Posts: 14
Joined: Thu May 17, 2012 11:04 pm


Return to Forms

Who is online

Users browsing this forum: No registered users and 6 guests