thanks. one followup, I have the edit/delete buttons in their own table cell in each row. How do I tell which row they were in? I'm trying button.getElement().getParent() but not sure where to go from there. thx
On Jun 6, 2:38 pm, Dan <danpr...@gmail.com> wrote: > Rather than put the ID in the flextable or grid, I hang on to the > returned data and use that. > > a. After the RPC call, on success, I assign the result to a class > field: > data = result; > > b. Then when I have a row number to process, I do something like this: > processRecord(data.get(clickedRow).id); > // or if its more than one field you are interested in... > // processRecord(data.get(clickedRow)); > > It works as long as your displayed data is not resorted and still has > all the rows of the ArrayList that was returned, because there is a > one to one correspondence between the displayed data and the RPC > result. > > On Jun 5, 8:35 pm, alexl <alexthebl...@gmail.com> wrote: > > > I want to have a hidden column for the row id, or is there a better > > way to do it? so I can tell the corresponding mysql db delete from > > table where rowid=rowid -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.