CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 How to set label to another grid field value?

Print topic Send  topic

Author Message
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());

   


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.