matt
|
| Posted: 08/30/2005, 2:53 PM |
|
I'm looking for a pointer to an example. I want to build an editable grid with all the fixings (search, insert, update, delete). Included within the grid is a column for the last-modified date of the row in the grid. Two issues :
1) When I add code to update the last-modified column I get an error message complaining that there are fields missing on the empty "insert" row of the grid. Perfectly true as I'm not trying to insert anything, just modify an existing row.
2) The last-modifed date updates for every row in the grid, not just the row which was actually changed.
Seems that there should be an easy way around these two problems. Pointers please?
Thanks in advance.
|
|
|
 |
peterr
Posts: 5971
|
| Posted: 08/31/2005, 12:23 AM |
|
Re: 1
Existing records are updated, new ones are inserted. If you have any checkboxes or fields with default values in your grid then such field cannot be empty and it's being inserted.
Re: 2
There is no such feature in CCS but you can implement this, possibly with some JavaScript that activates a hidden field which indicates if a value was changed. Check the forums if someone hasn't posted a solution. Here is one post I found: http://forums.codecharge.com/posts.php?post_id=42866
My idea would be to use Custom Update with a Where parameter, but I haven't tested this.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
|