Server Side Processing Add New Row
Server Side Processing Add New Row
![MichaelPine](https://secure.gravatar.com/avatar/5054f76f29e7967d7418d0b143da72b8/?default=https%3A%2F%2Fvanillicon.com%2F5054f76f29e7967d7418d0b143da72b8_200.png&rating=g&size=120)
Been looking through the API internal and external, but not sure if there is something that will do what I want or the best stategy to make it happen. So my scenario is I have a paginated serverside processing table on a screen, the User gets a jQuery dialog to Add or Edit a particular record pretty basic, their requirement is when the add a new record to actually go to that new record, now given filtering and sorting, it could be that the new Record may not even be visible or I have no idea what page it will be on. Any ideas on the best way to go about doing this ?
Best I had come up with so far was to fake the data call to my server processing and get information back about what page a certain record would appear on and then after a redraw, go the particular page and row, sound ok ?
cheers
Michael
Best I had come up with so far was to fake the data call to my server processing and get information back about what page a certain record would appear on and then after a redraw, go the particular page and row, sound ok ?
cheers
Michael
This discussion has been closed.
Replies
Allan
I'm not sure if there is a nice easy SQL command that would tell you what page a row would appear on - which is where I would imagine the scaling issue would occur. Off the top of my head, its just a case of getting all rows up until the new row and then dividing by the paging length - but someone more competent in SQL might be able to offer a better solution!
Allan