CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 CCGeTs and SetValue

Print topic Send  topic

Author Message
ddmcse

Posts: 24
Posted: 02/10/2008, 8:12 AM

i have report built using report builder
it has a search at the top

i want to add a label to the header showing some of the criteria selected in the search and display this in the report header
this would be ccgetfrompost or ccgetparam ?

the header and footer contain report labels generated by CCS some are totals and i want to customize a few
i've been trying to get a handle on the syntax ,

i thought i read somewhere that certain of these function won't work in hearders or out of the grid and some will
which can you use in this situation and which can't be used ?


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

Posts: 24
Posted: 02/10/2008, 10:00 AM




in the the report header i want to add something like this


  
global $Tablename  
$Tablename->ReportLabel1->SetValue("BoB");  
  
I'm dreaming ?  
  
  
  
  

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


Posts: 77
Posted: 02/10/2008, 5:14 PM

What exactly do you mean by 'header?' I assume you don't mean the <HEAD> tag on the page.

What does $Tablename refer to? A database table? a form on your page?

You're lacking JUST enough information for me to know exactly what you're trying to do.

Cheers,

Jay
View profile  Send private message
ddmcse

Posts: 24
Posted: 02/11/2008, 3:53 AM

header = header section of a report made using report builder

$tablename is actually the name of the form displayed on the web report page

shouldn't i be able to simply put the value "bob" in the field reportlabel1 using
global $Formname
$Formname->ReportLabel1->SetValue("BoB");
_________________
http://www.buyrfidlabels.com
View profile  Send private message
ddmcse

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

i wasn't dreaming and i got "bob" to work


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

Posts: 24
Posted: 02/14/2008, 6:55 AM

code for crawlers
you want to set a value in a label
$
  
$result = ("BOB")  //result = random word   
  
$Formname->ReportLabel1->SetValue($result);   
  
if you have
you want to set a value in a label
$
  
$result = (CCGetParam("Data_Field1","")   /// (more complex code) you can stuff that into the label too  
$Formname->ReportLabel1->SetValue($result);  

this shows the value picked for the Data_Field1 if any .

i.e.. you have a search area with 5 fields someone clicks a listbox or types into a few of the 5 fields and one of them is named Data_Field1

they click search or submit and a return page shows the selected data based on the parameters picked

on the return page you could have this label code shown above and it would display the value selected in Data_Field1


_________________
http://www.buyrfidlabels.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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.