CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Get control values on BeforeBuildInsert

Print topic Send  topic

Author Message
JayEdgar


Posts: 77
Posted: 04/24/2012, 12:16 PM

Amazing this is so difficult...

I have already researched in here to figure out how to update the value of a control during the BeforeBuildUpdate event. That's great.

My goal is to take some values submitted, calculate them, and put the value in the "Result" control.

While I can update, I can't seem to get the values of the other controls! I've tried:

$form->control->GetValue() and
$form->DataSource->control->GetValue()
and even ->Value instead of ->GetValue() for these.

Can anyone help me out? Much appreciated!

Jay
View profile  Send private message
Gena

Posts: 591
Posted: 04/24/2012, 12:21 PM

use

$Component->control->GetValue();
_________________
Gena
View profile  Send private message
JayEdgar


Posts: 77
Posted: 04/24/2012, 12:30 PM

I'm sorry, isn't that the same as $form->control->GetValue()? I've tried that and it hasn't been working...

Thanks for the response.
View profile  Send private message
ckroon

Posts: 869
Posted: 04/24/2012, 3:46 PM

If yer gonna use $form->control->GetValue make sure you have

global $form;


at the top

_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
DataDoIT
Posted: 04/24/2012, 6:43 PM

I think the value of the control is gone at that point and passed onto
CCGetFromPost().

So, use CCGetFromPost().

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.