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 -> Tips & Solutions

 List of Values in Grid (Label) ? [PHP]

Print topic Send  topic

Author Message
feha


Posts: 712
Posted: 02/01/2006, 8:52 AM

I had a problem with presenting 4-5 values in to Label inserted via radiobuttons ListOfValues ...

As I had use only once for this i was to lazzy to create table (SQL) and insert values etc ..

  
function find_ListOfValues($ListOfValues, $compare="3")    
{    
// by www.vision.to    
           while(list($key,$value)=each($ListOfValues))    
           {    
            if($key == $compare)    
            return $value;    
           }    
  }    
    
    
    
$ListOfValues=array(    
"1" => "Left",    
"2" => "Right",    
"3" => "Top",    
"4" => "Bottom",    
"" => "n/a"    
);    
//echo find_ListOfValues($ListOfValues, $compare="3")    
the line echo needs to be replaced with form component->field->SetValue(find_ListOfValues($ListOfValues, component->field->GetValue()) ) ...

_________________
Regards
feha

www.vision.to
feedpixel.com
View profile  Send private message
feha


Posts: 712
Posted: 02/01/2006, 8:54 AM

The problem was posted here:
http://forums.codecharge.com/posts.php?post_id=70374
:-)
_________________
Regards
feha

www.vision.to
feedpixel.com
View profile  Send private message

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.