Skip to main content
Jul 2, 2019 2:03 PM UTC
Solved

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

BennyBAnswer
Jul 4, 2019 5:41 AM UTC

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

6 replies

Jul 2, 2019 7:11 PM UTC

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

Jul 3, 2019 10:12 AM UTC

Hi Sharon,

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

 

 

BennyBAnswer
Jul 4, 2019 5:41 AM UTC

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