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

how to get mashup name from menu widget

  • April 24, 2020
  • 2 replies
  • 2525 views

Hey All,

 

I have two questions.

1. I have the menu in my master and I want the details of the selected menu.

2. Can I have the mashup name of a selected menu from the menu widget? If yes then how.

 

Please provide me the right answer.

 

Thank you.

2 replies

Community Manager
April 24, 2020

Hi @menayat.

 

We're not understanding the use case.  Can you please provide a mock-up of what you would like to see along with further details of your use case?

 

Regards.

 

--Sharon

menayat1-VisitorAuthor
1-Visitor
April 27, 2020

Hi,

 

Suppose I have the menu in my master. The menu is like electronics, groceries, and vegetables in horizontal. 

Now the question is simple. How can I get the detail of the selected menu?


If I select groceries then I want to know the details of the grocery menu like 


menu .linkDestination = "MainMash";
menu .parentMenuId = "TotalCareMenu";
menu .menuId = "TotalCareMenu_0";
menu .isDefault = "true";
menu .imageURL = "";
menu .linkTarget = "Self";
menu .description = "";
menu .linkType = "Mashup";
menu .title = "[[MAP]]";

Thank you. 


5-Regular Member
April 24, 2020

Hi, the menu widget has a Mashup property which we can bind to other widgets or a service. This property gives us the Mashup name selected from the Menu item. Please refer to the below screenshot.

Rajesh_Sayana_0-1587736941913.png

Hope this helps.

menayat1-VisitorAuthor
1-Visitor
April 27, 2020

Thank you for your concern but I'm not able to achieve what I want.

I bind this mashup(which you display in the screenshot) with my service parameter but I'm not getting anything.
I checked with the logger it is showing undefined.

I got one more way. Menu > Service > GetEffectiveMenu with All Data of this service I'm getting all menu data.

But I need only the selected row. Like the menu, the name is Menu1, Menu2 & Menu3 is written If clicked on Menu2 then I want every detail of Menu2 like mashup name, parentID, menuId, and other details.

But with this service, I'm not getting the details of selected rows.


Thank you.

Community Manager
April 29, 2020

Hi @menayat.

 

What is your use case?  If we understood more regarding your requirements, we might be able to suggest a solution.

 

Regards.

 

--Sharon