cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Passing Values to Contained Mashups that Dynamically change

Highlighted
Topaz I

Passing Values to Contained Mashups that Dynamically change

I imagine a lot of people that face this problem might be using Session Parameters, but there is a secret lost Ninja art that allows you to do it with Mashup parameters which is much more contextual and direct.

The key is to have Mashup parameters with the same name.

End Result

Starting out I am on my main mashup, you can see the Tree Data in the Grid below

Step1.png

Clicking on the next node now shows the new mashup and the TO field inside. That To value was passed in using a mashup parameter

Step2.png

Clicking the next node, you can see it is actually a different mashup, but I am still passing the TO value

Step3.png

How is it done:

Here is my mashup with the Tree and Contained mashup, you can see the bindings are in place already, but how did I do it, since the Contained Mashup is empty?

Step4.png

First create the new mashups with a mashup parameter named the SAME in this case EntityName

Step5.png

Here is Mashup2 and you can see the Mashup parameter with the same name EntityName bound to one of the Value Displays

Now how do I bind from my main mashup?

Step7.png

What you need to do is to temporarily assign one of the Mashups to the Contained Mashup, here I am showing Mashup1 assigned. This will now allow you to bind not just the Mashup Name, but also bind a value to the Mashup Parameter in that Mashup. Just drag your selected row values onto the contained mashup.

Step8.png

Here you can see the parameter showing as a property, I just dropped my value on the contained mashup and I can bind to Name (name of the mashup to show) and EntityName (the value I want to pass to the mashup parameter)

Now just remove the assigned mashup from the Contained mashup and you’ll note that the bindings stay intact.

Step9.png

That’s it!

11 REPLIES 11
Highlighted

Re: Passing Values to Contained Mashups that Dynamically change

Very helpful artical! Thanks Pai!

Highlighted

Re: Passing Values to Contained Mashups that Dynamically change

Sounds interesting. However, this sounds like a bug in Composer. If a mashup is removed, seems like the bindings should be removed as well.

If that's not the case, then that's fine. I just wanted to make sure if we decided to go down this path, future versions of Composer won't "fix" this behavior leaving us in a bind.

Highlighted

Re: Passing Values to Contained Mashups that Dynamically change

Good point. This can be done with session parameters as well, but I believe this behavior is intentional. But if it goes away, session parameters would be the answer.

Highlighted

Re: Passing Values to Contained Mashups that Dynamically change

Hi Pai,

Session parameters won't do the trick on complex Mashups / Applications, as ours, please can we investigate further with R&D on this to prevent this behaviour being removed.

Carles.

Highlighted

Re: Passing Values to Contained Mashups that Dynamically change

Hi,pai,

    I want to know how you realized it.Can you provide detailed steps?

yours!

Highlighted

Re: Passing Values to Contained Mashups that Dynamically change

Are you unable to see the screenshots?

Highlighted

Re: Passing Values to Contained Mashups that Dynamically change

Hi Pai,

This the main mashup a master or a regular mashup? I have a master and im trying to pass data into the contained mashup but I do not see the same options. I was wondering if it because im using a master. THank you

Highlighted

Re: Passing Values to Contained Mashups that Dynamically change

Unfortunately Master mashups don't support this and you will need to use Session Parameters in that case.

Highlighted

Re: Passing Values to Contained Mashups that Dynamically change

Ok. Thank you for the quick reply.

Highlighted

Re: Passing Values to Contained Mashups that Dynamically change

Well, in fact you can use "Parameters" in a Master Mashup, you can build an expression with expression widget which parses location.href in order to detect an act accordingly to parameters , something like: (location.href.indexOf("&myCustomParameter=")>=0?location.href.slice(..):undefined)

Highlighted

Re: Passing Values to Contained Mashups that Dynamically change

Interesting. I'll try it thank you

Announcements