Skip to main content
1-Visitor
July 2, 2019
Solved

Set Submenu in the Dynamic Menu

  • July 2, 2019
  • 6 replies
  • 2749 views

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

Best answer by BennyB

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

6 replies

Support
July 2, 2019

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

1-Visitor
July 3, 2019

Hi Sharon,

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

 

 

BennyB16-PearlAnswer
16-Pearl
July 4, 2019

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