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
|
 |
 |
Gena
Posts: 591
|
| Posted: 04/24/2012, 12:21 PM |
|
use
$Component->control->GetValue();
_________________
Gena |
 |
 |
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.
|
 |
 |
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. |
 |
 |
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().
|
|
|
 |
|