B4J Question Menu Bar - Add SubMenu items dynamically?

tdocs2

Well-Known Member
Licensed User
Longtime User
Greetings.

How can I add SubMenu items dynamically?

For Example, I have a Main Menu:

B4X:
Files Edit ServiceRep

In my example, there are 3 service reps whose names I have stored in a table, Rep1, Rep2, Rep3

I would to add dynamically Rep1, Rep2, and Rep3 as submenus under the Main ServiceRep menu.

All replies are welcomed.

Thank you.

Sandy
 

tdocs2

Well-Known Member
Licensed User
Longtime User
@giga,

Thank you again.

I am using Derez wonderful alternative to create menu items (a Menu Designer - see this post) as opposed to creating JSON strings.

I did not quite understand your reply...
Did this not answer your question?

Once I create the menu (using Derez app), is there a way to add a submenu to a main menu category (in my example above adding the actual rep names....).

Best regards.

Sandy

I have a recollection of having done this in vb...
 
Last edited:
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

giga

Well-Known Member
Licensed User
Longtime User
@giga,

Thank you again.

I am using Derez wonderful alternative to create menu items (a Menu Designer - see this post) as opposed to creating JSON strings.

I did not quite understand your reply...


Once I create the menu (using Derez app), is there a way to add a submenu to a main menu category (in my example above adding the actual rep names....).

Best regards.

Sandy

I have a recollection of having done this in vb...


I was not sure if you understood what Erel gave you in this thread:
https://www.b4x.com/android/forum/threads/designer-menu-items.56602/
is why I asked. His example makes submenu to main.
 
Upvote 0
Top