Skip to main content
1-Visitor
January 3, 2019
Solved

How to display multiple values , when you select multiple rows from grid?

  • January 3, 2019
  • 1 reply
  • 3058 views

Hello,

            I am displaying some Windchill part information in my mashup on grid. There are many rows in grid with column name as :- name , number , state and version.

I am able to select multiple rows using  ctrl + mouse click.  After selecting multiple rows, I want every Image associated with that particular part should be displayed beside the grid.

 

I have drag a Image widget . I am able to display Image after selecting single row.

I tried using collection and repeater , but can't able understand how to use them.

 

 

Below I am providing an Image , which illustrate ,how my output should be .

 

 

When I select 3 rows or more , an Image should be displayed.

Best answer by statka

Hello @shindemayur,

 

I put together a quick example that shows how the Selected Row(s) return from the service can be used to handle a scenario like this.  The example I provided includes a mashup that displays all Thing entities in your environment.  The grid on the left side of the mashup will show all of the entities and allows multi selects.  The grid on the right will show all of the rows that you select on the left.  Initially, it will appear blank, but as you make selections, it should start to display data.  This should give you an idea of how this return can be used, and can be adapted to your scenario as well.  Please review this and let us know if you have any questions.

 

Regards,

 

Stefan

1 reply

1-Visitor
January 3, 2019

Just allow multi-select on the Grid, and bind Selected Rows to a service that returns the Infotable with the images an other information.

 

For the right panel (the one with images and other widgets) use a Repeater widget with the output of the previous service.

1-Visitor
January 3, 2019

@CarlesColl  Thanks you,

but , can you elaborate your answer with an example?

Because I am not much experienced person in this field.

statka14-AlexandriteAnswer
14-Alexandrite
January 25, 2019

Hello @shindemayur,

 

I put together a quick example that shows how the Selected Row(s) return from the service can be used to handle a scenario like this.  The example I provided includes a mashup that displays all Thing entities in your environment.  The grid on the left side of the mashup will show all of the entities and allows multi selects.  The grid on the right will show all of the rows that you select on the left.  Initially, it will appear blank, but as you make selections, it should start to display data.  This should give you an idea of how this return can be used, and can be adapted to your scenario as well.  Please review this and let us know if you have any questions.

 

Regards,

 

Stefan