hydrazi
Posts: 12
|
| Posted: 02/20/2011, 4:14 PM |
|
Hello,
I have a customer that wants to have an entry form that inserts then returns to itself and prefilling the form with entries from the last insert.
Not sure how to go about this. I was thinking Before Show event that pulled in the last inserted items by ID number maybe?
_________________
Matt Rand |
 |
 |
damian
Posts: 838
|
| Posted: 02/20/2011, 4:55 PM |
|
yes - i think you would have to do a lookup... possibly you could do something like this...
create a grid that displays the last entry eg - sort by ID descending - limit 1 record. change all labels to hidden text fields. remove all table formatting so the grid is invisible...
then you can do a $Component->SetValue($Grid1->Hidden1->GetValue()); on each of your fields...
something like that anyway...
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
datadoit
|
| Posted: 02/21/2011, 6:09 AM |
|
After creating the new record, you're going to stay on that record by
swapping over to edit mode. Details here: http://www.codechargesupport.com/blog/index.php?action=More&post_id=2
|
|
|
 |
|