Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
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
Solved! Go to Solution.
I used MenuEntry Data Shape instead of MenuItem. Then take care to set menuId and parentMenuId.
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
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.
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
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