Skip to main content
15-Moonstone
December 19, 2017
Question

How to use the same mashup for multiple menu item and pass parameter from menu item to mashup

  • December 19, 2017
  • 5 replies
  • 3583 views

Hello Team,

I have a scenario where i need to load same mashup for multiple menu item selection and the mashup data is based on the selected menuitem, meaning i need to pass selected asset from the menu to mashup.

How do i achieve passing value from menu to mashup??

Thanks

Sunay

5 replies

22-Sapphire I
December 20, 2017

To do this you need to switch the menu to be data driven and then you can drive a selected row value into the contained mashup.

sbt15-MoonstoneAuthor
15-Moonstone
December 20, 2017

Chung,

I have the master page (below image for your reference)

Menu contained mashup has two one static and other is data driven (below image for your reference)

both uses the same contained mashup in the master to load there respective mashup, for static mashup if i associate master in the mashup i am able to get it. I am confused with the data driven mashup and also i have to load it to the same contained mashup area of the master.

It will be of great help if you can give an example/explain.

Thanks

Sunay

1-Visitor
December 20, 2017

Hi Sunay,

You need to select Data-Driven option for ConfiguredOrDatadriven property of menu.

Create service with output as infotable with "MenuEntry" datashape.

Add rows to the result set.

Title (Link name) , LinkDestination (mashup name) , Menuid (any unique string) fields of MenuEntry datashape are important.


Bind All Data of service to Menu widget.

Add parameters to you contained mashup.

Bind selected rows of service to contained mashup.


Now you have menu entry details in your mashup parameters, you can do any manipulations inside contained mashup.


Let me know if you have any questions.


Thanks