Skip to main content
1-Visitor
Aug 31, 2018 9:52 PM UTC
Question

select a grid row from a service

Hi,

I have a mashup with a grid and a button. The button causes a popup which allows me to create a new entry for the grid. The grid is refreshed after the popup closes, but I would like the new row to be automatically selected.

would anyone know how that might be done. 

Note, I already return the primary key value for the new entry via a mashup parameter, just can't think of a way to use this to select the newly added row.

Does anyone know how I might do this?

 

Thanks,

K

16 replies

5-Regular Member
Sep 3, 2018 1:51 AM UTC

The newly added data always come in first row, so does AutoSelectFirstRow checkbox work for you?

Translate
1-Visitor
Sep 3, 2018 8:54 AM UTC

I think autoselect first row it's only applied the first time the grid loads, not when you refresh it, it won't work.

 

For the List Widget you can pass a selected value / selected text to the list and it will be selected ( not easy but feasible ), for grid you are out of luck, sometimes when I needed to do it what I did was to add a Hidden List Widget in companion with the Grid Widget (all bound to the same source) and you can do the trick on that way.

Translate
5-Regular Member
Sep 3, 2018 9:00 AM UTC

Hi Carles,

 

There's a button (probably a Navigation widget) in the mashup, and it will popup a window to insert information, when the window is closed, the Grid can be refreshed. If it doesn't work, the "window close event" can be used to trigger Mashup "Refresh" service.  So I still think the autoSelectFirstRow could help in here. 

Translate