Skip to main content
1-Visitor
April 29, 2020
Question

How to get by default selected menu in a dynamic menu list.

  • April 29, 2020
  • 1 reply
  • 1842 views

Hi, Thank you for your interest in helping me.
How to get by default selected menu in a dynamic menu list.

My codes are


var row = new Object();
row.linkDestination = mainMash;
row.parentMenuId = "Menu";
row.menuId = "Menu_0";
row.isDefault = true;                      // I make it true to get default selection but it's not working.
row.imageURL = "";
row.linkTarget = "Self";
row.description = "";
row.linkType = "Mashup";
row.title = "MAP";
result.AddRow(row);

 

Is it correct. Please help me with that. Thank you!

1 reply

Support
April 29, 2020

Hi @menayat.

 

This course on the Developer portal may be helpful:

 

Customizable and Responsive UI

 

Regards.

 

--Sharon

 

 

Support
May 7, 2020

Hi @menayat.

 

If the previous response helped you to find a solution, please mark it as the Accepted Solution for the benefit of others on the community.

 

Regards.

 

--Sharon

menayat1-VisitorAuthor
1-Visitor
May 7, 2020

No, still I didn't get any solution.

 

And I think thingworx has drawbacks here with this dynamic menu.
If a user is creating a dynamic menu and passing the value from service and make the entry
isDefault = true;

 

and in another hand, if the user will create a menu static and tick on default then is selecting when a master is loading.

 

then thingworx should take the menu as default selected menu but it's not taking.

To Thingworx team please make it correct.