Skip to main content
Apr 24, 2020 6:37 AM UTC
Question

how to get mashup name from menu widget

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.

7 replies

Apr 24, 2020 1:47 PM UTC

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

menayatAuthor
Apr 27, 2020 5:36 AM UTC

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. 


Apr 24, 2020 2:03 PM UTC

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.

menayatAuthor
Apr 27, 2020 5:49 AM UTC

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.

Apr 29, 2020 7:31 PM UTC

Hi @menayat.

 

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

 

Regards.

 

--Sharon