Wiring applications in mashboard

gomashan07
User offline. Last seen 9 weeks 5 days ago. Offline
Joined: 01/27/2011
Points: 251

Dear all,

               I  have enclosed    the screen shot  of the  mashboard structure. Here  there are  two  applications which  displays data in Grid  format.Initially what i did  was i  constructed 2  Xml files and set the  view  as  Grid  while creating applications . So  now there  are  2  applications clientdata1 and clientdata2 which  just displays the XML data  in grid  format. Now i  want to  wire the 2 applications in  mashboard , so that when  i click  on a client name  in  one application the, the row containing the same client name in the second application should get selected . When  i  performed the wiring i  selected the subscriber and publisher but   i was  not able to select the  mapping field. I want client name  to be the mappibng property . Please help  me   in this regard.

 

Thanks,

Gomshan 

0
Your rating: None
smitchell
smitchell's picture
User offline. Last seen 10 hours 16 min ago. Offline
Joined: 08/29/2008
Points: 34

Unfortunately, the Grid view doesn't support setting the selected row, so the use case you're trying to set up won't work. Which is why it isn't showing up in Mashboard. (And I need to clarify the area of what events our built-in views support some more in documentation.)

You can use a Grid view in an App to publish the event of a user selecting a row. In order to have this selection event update the selected row in another App that uses a tabular layout, however, you would need a couple of things:

1. A mashup or mashable that produces the second set of data and also has an input parameter for the client name.

2. A custom App that produces that tabular layout for the mashup/mashable from #1. This custom App would need to have a property for the client name, a subscription topic that contains that client name property as a property of the subscription and a handler method for the subscription that would set the selected row for this App.

You can then wire your simple Grid view from the first App to the custom App subscribing topic and get the results you want.

Sara, technical writer/jackbe

 

Kalaissk
User offline. Last seen 35 weeks 3 days ago. Offline
Joined: 08/02/2011
Points: 20

Hi,

I have also same like this. i have one apps as  a Grid view and another apps as Bar chart. now i need to select one row from girdview, change the information in chart apps based on my selections in grid view.nw what i to do in Wires by using those Apps?

smitchell
smitchell's picture
User offline. Last seen 10 hours 16 min ago. Offline
Joined: 08/29/2008
Points: 34

Well, first, this is not something you do in Wires. Wires works with mashups not Apps. To wire basic Apps (created in the App Maker wizard using views like Grid or Bar Chart) so that they interact based on events in one App, you use Mashboard.

This is a different use case which you probably can do in Mashboard. The underlying use case, as it stands today, for updates from Mashboard wiring in a basic App is this:

1. Click in App A on grid publishes a message with the data from that row.

2. If App B with a Chart subscribes to rowClick event for App A, you can wire any of the data from the published message to any of the input parameters for App B. Typically input parameters to the App are actually input parameters to the underlying mashables or mashup for that App.

Updates to properties in the basic App B, cause App B to invoke the mashable or mashup with the updated input parameters, and the new results cause the Chart to refresh with new data.

If this is what you want, simply add your grid and chart Apps to Mashboard and wire them with grid as the publisher and chart as the subscriber. Map the data from the rowClick event in grid to the chart properties as needed. See http://www.jackbe.com/prestodocs/v3.0/mashboard/mashboard-intro.html for instructions on creating workspace Apps in Mashboard and links to other topics (on wiring).

If you need some other behavior, you will most likely need to make App B (with the Chart) a custom App and provide the logic to get the required behavior. You can find documentation on creating custom Apps and enabling custom Apps to support interactions and wiring at:

* http://www.jackbe.com/prestodocs/v3.0/apps-dev/editor-intro.html

* http://www.jackbe.com/prestodocs/v3.0/apps-dev/wiringIntro.html

 

Sara, technical writer/jackbe

 

Kalaissk
User offline. Last seen 35 weeks 3 days ago. Offline
Joined: 08/02/2011
Points: 20

Hi,

Thanks for reply..

Actually i did that what u saying.. i gave input parameter to Apps B.. If i choose a row from Apps A then Apps B is refreshing,but it ll not show that particular data which i choosed a row from Apps A... For that what i have to proceed.. Shall i need to create Custom Apps instead of Apps B rit?

smitchell
smitchell's picture
User offline. Last seen 10 hours 16 min ago. Offline
Joined: 08/29/2008
Points: 34

Hm. I think we need more information about the specific Apps and how you have wired them.

Can you take some screen shots? Or tell me: 

1. What data is in a row of your Grid App?

2. What columns from that row did you map to input parameters in your Chart App?

3. How is the data for your Chart generated? If it is coming from a mashable or a mashup, do the input parameters cause the mashable or mashable to find different data and return that? Or is the data for your chart coming from static information, such as a CVS or XML file?

Sara, technical writer/jackbe

 

Kalaissk
User offline. Last seen 35 weeks 3 days ago. Offline
Joined: 08/02/2011
Points: 20

Hi,

 here i attached my screenshot.. am using presto 3.1.1 version In the grid i selected a row of Customers name and i mapped based on Customers name in that column chart...it doesnt show the particular customer column frm the column chart when i choosed a row of customer name frm grid...

The data is coming from XML file...

 

Kalaissk
User offline. Last seen 35 weeks 3 days ago. Offline
Joined: 08/02/2011
Points: 20

Hi,

In presto how can we do some animations for more interactive mashups? can u tell me have some idea regarding this?

i need to do some animations in charts something like news moving,blinking ,flash some datas on charts(bar,column,grid and any other chart) for more visual capabilities..

with Regards,

kalai

 

smitchell
smitchell's picture
User offline. Last seen 10 hours 16 min ago. Offline
Joined: 08/29/2008
Points: 34

To do the kind of animations you are talking about, you need to create custom Apps and provide the code to do the animations.

Sara, technical writer/jackbe