cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Set Submenu in the Dynamic Menu

Sugumar_5656
14-Alexandrite

Set Submenu in the Dynamic Menu

Hello All,

I tried to Set submenu to the Dynamic menu through a program using the below code.

Can anyone suggest, where I need to change the code?

 

var newEntry = new Object();
newEntry.linkDestination = "Test1"; // STRING - isPrimaryKey = true
newEntry.isDefault = true; // BOOLEAN
newEntry.linkTarget = "ACGE_Library_ME"; // STRING
newEntry.imageURL = ""; // IMAGELINK
newEntry.description = ""; // STRING
newEntry.linkType = "Menu"; // STRING - isPrimaryKey = true
newEntry.title = "Test1"; // STRING
newEntry.groupReferences = undefined; // INFOTABLE

result.AddRow(newEntry)

 

I Used the menu data shape as "MenuItem".

 

Thanks in advance

Regards

Sugumar R

1 ACCEPTED SOLUTION

Accepted Solutions

I used MenuEntry Data Shape instead of MenuItem. Then take care to set menuId and parentMenuId.

View solution in original post

6 REPLIES 6
slangley
23-Emerald II
(To:Sugumar_5656)

Hi @Sugumar_5656.

 

What you seeing when you run this?  Do you see the menu items but the links aren't working?  Are none of the menu items populating?  What is the actual problem you're seeing?

 

Please provide more information and we will try to assist further.

 

Regards.

 

--Sharon

Sugumar_5656
14-Alexandrite
(To:slangley)

Hi Sharon,

I can see the menu item but not able to populate any of the submenu items.

 

 

I used MenuEntry Data Shape instead of MenuItem. Then take care to set menuId and parentMenuId.

Sugumar_5656
14-Alexandrite
(To:bbeuckSIG)

Hi bbeuckSIG,

Now I am using a "menuentry" data shape, but I can't find any group mapping in that.

Hi @Sugumar_5656,

 

not sure what you mean by grouping. If you mean submenus you can "group" items by setting the same parentMenuId.

 

Regards

Benny

Sugumar_5656
14-Alexandrite
(To:bbeuckSIG)

Hi Benny,

I like to set a group for the particular menu item in the menu through service.

PFA for further details.

 

Regards

Sugumar R

 

Top Tags