Skip to main content
1-Visitor
August 31, 2018
Question

select a grid row from a service

  • August 31, 2018
  • 1 reply
  • 6428 views

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

1 reply

5-Regular Member
September 3, 2018

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

1-Visitor
September 3, 2018

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.

5-Regular Member
September 3, 2018

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.