CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 what mambo brown said :

Print topic Send  topic

Author Message
ddmcse

Posts: 24
Posted: 02/06/2008, 5:57 PM

All you have to do is put a label on the report and in the event Before Show simply put code that will grab a variable(s) from the URL (CCGetParam) that is specified by the search criteria and based on the value(s) display a specific title.

ok i get it a little
i have a report , i added a report label in my header area and i click on events and go to enter custom code and thats where it stops

i want to display the date values selected by the user for a couple of fields i.e. date_art_recd and pub_date .
CCGetParam report label1 report label2 date_art_recd & pub_date can someone help me connect the dots ?


_________________
http://www.buyrfidlabels.com
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 02/07/2008, 5:28 PM

Here is a portion of the code that I used:

  
                      // Get parameters from URL  
	$theyear = CCGetParam("DpYr","2001");  
	$themonth = CCGetParam("Mn","");  
   
	//determines if $themonth is empty and if it is not then sets the ReportLabel2 field to the specified month.  
	if (empty($themonth) )  
	{     
  
	 	$title = "For Year ".$theyear;  
                                            // Set ReportLabel2 header  
		$department_titheandofferi1->ReportLabel2->SetValue($title);  
	}  
	else  
	{  
		// determine month for report header  
		if($themonth==1)   
		{  
			$title = "For January ".$theyear;  
		}  
		elseif ($themonth==2)  
		{  
			$title = "For February ".$theyear;  
		}  
		elseif ($themonth==3)  
		{  
			$title = "For March ".$theyear;  
		}  
		elseif ($themonth==4)  
		{  
			$title = "For April ".$theyear;  
		}  
		elseif ($themonth==5)  
		{  
			$title = "For May ".$theyear;  
		}  
		elseif ($themonth==6)  
		{  
			$title = "For June ".$theyear;  
		}  
		elseif ($themonth==7)  
		{  
			$title = "For July ".$theyear;  
		}  
		elseif ($themonth==8)  
		{  
			$title = "For August ".$theyear;  
		}  
		elseif ($themonth==9)  
		{  
			$title = "For September ".$theyear;  
		}  
		elseif ($themonth==10)  
		{  
			$title = "For October ".$theyear;  
		}  
		elseif ($themonth==11)  
		{  
			$title = "For November ".$theyear;  
		}  
		elseif ($themonth==12)  
		{  
			$title = "For December ".$theyear;  
		}  
                                            
                                           // // Set ReportLabel2 header  
		$department_titheandofferi1->ReportLabel2->SetValue($title);  
	}  
  

Hopefully this will help you.......
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.

Web Database

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.