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

 BeforeBuildInsert event examples

Print topic Send  topic

Author Message
bb
Posted: 03/24/2004, 10:17 PM

Are there any examples of using a BeforeBuildInsert /BeforeBuildUpdate event to modify non-Visible form field values?
martin
Posted: 03/25/2004, 12:01 AM

Hello.
You must insert custom Code in before insert/ or update.
$yourForm->yourHiddenField->SetValue("BlaBlaBla");
or
if($yourForm->yourHiddenField->GetValue() == "")
$yourForm->yourHiddenField->SetValue(CCGetUserLogin());

Just write the new value with SetValue to you hidden field.

Sorry about my english

Martin
bb
Posted: 03/25/2004, 10:09 AM

Thank you for your help. Do you know if it possible to do without using hidden form fields?
peterr


Posts: 5971
Posted: 03/25/2004, 6:10 PM

I do not believe so. But you can for example use Custom Insert and Custom Update and specify functions/expressions for each of the table fields, even those not included in the page.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
bb
Posted: 03/25/2004, 9:16 PM

Thanks. I ended up doing an Insert with the Record Form and immediately thereafter an UPDATE for the fields not included in the form.

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.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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