Hi, I have readable grid in which i am using arrow icon, so if I click on that arrow so that row should go up and upper row should come down. I can get all data items from current row, but how I will get data from previous row, So I can apply swapping conditiin
Discussion posts and replies are publicly visible
EREN_YEAGER said:As far as I understand, fv!identifier seems to align its own sequence (1, 2, 3, 4, ...) in the grid
fv!identifier
GridField is designed to work in 2 ways.
So it depends on case to case but because fv!identifier's behavior isn't 100% same every time you pass just the Data and NOT Subset, I prefer passing the entire fv!row in the whereContains.
And anyway, using a read-only grid and rearranging the rows isn't a good option. Because this grid isn't made for that, even if somehow it supports that.
I've just tested it, and it worked exactly as you explained. I wasn't aware that fv!identifier gives the primary key when we are querying only current page's data . Thanks a lot, Harshit Bumb (Appyzie) . I've learned something new.
Hi, I am trying to implement the same logic with record type as a data for grid. Could you check the below and let me know here where am i making mistake
and this reordering should save in db with different column
why using fv!item in the remove function ?
EREN_YEAGER said:why using fv!item in the remove function ?
i agree, there are several things wrong here - it seems like "fv!row" has been incorrectly swapped out with "fv!item" in one specific instance in the screenshot, but even with all "fv!row" references, i'm not sure this will accomplish what AK is hoping to accomplish, since the save operation is being done on "fv!row" in general, which of course isn't the original array at all but instead only represents a pointer to a particular row in the supplied "data" dataset. So I'm not really sure what the screenshotted code is hoping to accomplish.