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

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

menayat
6-Contributor

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

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!

4 REPLIES 4
slangley
23-Emerald II
(To:menayat)

Hi @menayat.

 

This course on the Developer portal may be helpful:

 

Customizable and Responsive UI

 

Regards.

 

--Sharon

 

 

slangley
23-Emerald II
(To:slangley)

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

menayat
6-Contributor
(To:slangley)

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.

slangley
23-Emerald II
(To:menayat)

Hi @menayat.

 

Can you provide your mashup and supporting entities for review?  It would also be helpful for you to provide the recreation steps so that we have a better understanding of the intent.

 

Regards.

 

--Sharon

Announcements


Top Tags