teufel
|
| Posted: 10/04/2002, 10:20 AM |
|
I need to have a label value set according to another grid field value. To simplify things for this question, lets say I only want to duplicate the value of one grid field into this label's value.
So I have to code in the 'before show' event of the label something like:
1) Get the grid source field value
2) Set the grid label value with the source field retrieved value
1) $temp = $my_form->source_field->Value;
2) $my_form->destination_label_field->SetValue($temp);
Code at 2) is correct, but nothing gets displayed since I cannot seem to be retrieving the value of the 'source' grid field right. Would it be something like CCGetParam("source_field",""), or $form->source_field->GetValue().....
Plz Help!
|
|
|
 |
DaveRexel
|
| Posted: 10/05/2002, 10:43 AM |
|
$my_form->destination_label_field->SetValue($form->source_field->GetValue());
works for me
|
|
|
 |
DaveRexel
|
| Posted: 10/05/2002, 10:46 AM |
|
Sorry make that
$my_form->destination_label_field->SetValue($my_form->source_field->GetValue());
|
|
|
 |
|