CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 [RESOLVED - Show records after insert]

Print topic Send  topic

Author Message
CodeChargeMVP

Posts: 473
Posted: 02/01/2011, 3:55 AM

Hi,

Our customer wants than on a normal record form after pressing the save button which

insert the record on the dba for the first time, then the form shows the values which has been

just inserted and the form stands on edit mode,

this way they don�t have to search for the record which has just created and edit it,

they can do it automatically.

¿Any suggestion?

Thank you very much in advance.
_________________
Best Regards
Entrepeneur | NT Consultant
View profile  Send private message
andrewi

Posts: 162
Posted: 02/01/2011, 4:06 AM

You need to add code to (reliably) get the Id of the record you've just created and then redirect the page to display that record, using the Id.

There are several articles around the forum about this, but this one seems to have a worked out example code in the final post: http://forums.yessoftware.com/posts.php?post_id=88618&s...=newly+inserted
View profile  Send private message
datadoit
Posted: 02/01/2011, 7:12 AM

Details here:
http://www.codechargesupport.com/blog/index.php?action=More&post_id=2

No programming required. :)
CodeChargeMVP

Posts: 473
Posted: 02/02/2011, 2:54 AM

Thank you very much, just worked great.
_________________
Best Regards
Entrepeneur | NT Consultant
View profile  Send private message

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.