Skip to main content
1-Visitor
May 4, 2017
Solved

How to pass parent mashup's parameters to contained mashup?

  • May 4, 2017
  • 8 replies
  • 6889 views

Hi,

I created a mashup named A with a parameter "ID". I want to pass the parameter "ID" to the contained mashup when mashup A loaded. How can I do this job?

Best answer by posipova

Hi, you go to the contained mashup first (call B), and create a same type parameter in the mashup B as in your mashup A. Then you go back to your mashup A and from the mashup configuration, drag and drop the parameter onto the contained mashup. I will create a quick exampel and attach it in a few minutes. Note: Please keep in mind you cannot actually call a parameter "ID" as its a reserved name.

8 replies

posipova20-TurquoiseAnswer
20-Turquoise
May 4, 2017

Hi, you go to the contained mashup first (call B), and create a same type parameter in the mashup B as in your mashup A. Then you go back to your mashup A and from the mashup configuration, drag and drop the parameter onto the contained mashup. I will create a quick exampel and attach it in a few minutes. Note: Please keep in mind you cannot actually call a parameter "ID" as its a reserved name.

20-Turquoise
May 4, 2017

Attached find an example of Mashup A with contained mashup B passing a parameter1 to parameter2.

1-Visitor
July 7, 2017

Polina Osipova

I have almost the same use case but with a slightly change: I set the Container Mashupname parameter dinamically, so the contained mashups are different, so I dont get the "parameter" input. Do you know how to solve this?

1-Visitor
May 5, 2017

In my mashup, I use menu in the left and contained mashup in the right. My mashup have the parameter "accountId' and the mashup in the contained mashup also has the parameter "accountId". In addition to dragging the left menu's "Mashup" parameter to the "Name" of contained mashup, you must set a mashup with the parameter "accountId" as initial mashup. Now the parameter "accountId" is added into the contained mashup, and you can drag the parent mashup's "accountId" to the contained mashup "accountId'. When you view the mashup and click the menu, all mashups being displayed in the contained mashup will get the parameter "accountId'.

passparameter.png

14-Alexandrite
May 5, 2017

Dear yz ding,

Glad to hear your issue is resolved. Please make correct answer and you could also mark any post as helpful and then we could close this thread.

Thank you,

Br,

Anna