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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Passing the data between two different mashups

thambiduraisub
1-Visitor

Passing the data between two different mashups

Hi Team,


I have few questions please help me.


1. I have two differet mashups. I just want to pass the value from one mashup to another mashup. What is the procedure to achieve this one ?

Scenario: 

Lets assume that i have 2 mashups called Mashup1 and 2. In mashup1, i have one text box widget it will simply display hello, i want to pass this text box value "hello" to Mashup2.


2. How to add my custom values in to drop down (List) widget, instead of fetching the data from database and bind to the list widget.

Ex scenario: I want to dispaly some numbers instead of displaying "SampleItem1,SampleItem2...etc).


Thanks,

Thambi






2 REPLIES 2

Hi Thambi,

For the first question, when you select a mashup in the Composer, if you click on the small drop down menu at the upper left corner of the mashup, you will have a menu entry called "Mashup Parameters". There you can add parameters.
After that, you will create a navigate widget, bound to the second mashup (for which you will also create a parameter) and the widget (not the mashup itself) will expose the parameters of this second mashup. After this, you can bind the parameter for the first mashup to the parameter of the second mashup through the navigation widget.

Another solution can be to use session parameters (available for each session, indiferrent of the mashup). When using those you don't need to modify anything on the mashup.
The session parameters work like this:
-you must go to Subsystems / UserManagementSubsystem  and then add a ThingShape that you will create, containing one property.
-this property will appear on the Session tab of the composer (between Data and User) and it will be available for any app that wants to use it on the server.
-you can bind directly to those parameters, it should be straightforward.

If you feel the Session Parameter is too "global" to your liking you can use the Mashup Parameters, or maybe you decide that you don't like modifying the Mashup itself...it really depends on you.
Both can do what you requested.

For the second question, you can create a Service that returns an Infotable and can manually add inside the service some rows with sample data. Then you can bind that Service result to the list. While yes, it may seem not so nice, I think in 5 minutes you can do it and it works :)
I'm not aware at the moment of a way to add manual data to the list in a GUI, only the workaround I mentioned.

Hope it helps,
Vladimir





Vladimir is correct – there is no way to add items directly to a List widget. If you prefer a graphical approach, you could also use DataTags to manage the items in your list and simply return the vocabulary terms using a "wrapper" Service that calls GetVocabularyTerms() for the DataTag.

Announcements


Top Tags