How to create a dynamic menu? How to add an item to main menu?

Startbeitrag von Alexander S.pcs.crosspost am 07.08.2012 08:33

How to create a dynamic menu, based on an analysis for example?
Or how to add an item to main menu by program?

MenuAddMenu (Function) do not work >> This menu name must not correspond to a main menu. - this is from online help.

I need to make a dynamic menu on the every page on the basis of initial data.

Message forwarded from


The menu option to which you are adding must be part of the 'main menu' when the window is opened.
If not, as you have found, the error is displayed as it is not possible to create a 'main menu' option on the fly.

Not sure if this is by accident or design but it can be a bit frustrating.

von DerekT - am 07.08.2012 10:39
one idea that i have - this is build all the menu options at ones, and then to hide not necessary menus or options by program.

Message forwarded from

von Alexander S.pcs.crosspost - am 08.08.2012 07:07
Hi Alexander,

You can add the main options in the editor and the submenus in runtime. And make the main items invisible if necessary by programming.


von Piet van Zanten - am 08.08.2012 08:13
Zur Information: hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.