CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Form that Auto-populates with last data

Print topic Send  topic

Author Message
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
View profile  Send private message
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.... :)
View profile  Send private message
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

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.