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 -> PHP

 Calculated Value in webreport Section Detail

Print topic Send  topic

Author Message
expo101

Posts: 24
Posted: 10/11/2011, 4:59 AM

Hi,

In the Section Detail grid of a report, I want to insert a text value in each row based on the rownumber value. When the rownumber is even, this text value should be "even" and else it should be "odd". The rownumber value {Reportlabel3} is already in my report.

In the CCS documentation I found the instruction on how to create a grid column with a calculated value and I assume this technique can be adopted her as well, but I need some guidance on how to set up the PHP script for the 'Before Show' event.

I appreciate your help!

Frans de Jong
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 10/11/2011, 8:45 PM

expo101,

Are you setting the value of a control in the 'Before Show' event? If so try this link: http://docs.codecharge.com/studio40/html/ProgrammingTec...lValue.html?toc
View profile  Send private message
expo101

Posts: 24
Posted: 10/12/2011, 12:06 AM

Thanks mamboBROWN,

To change the value in the before event might work, however I need some guidance on the PHP script here as well.
In the grid is a Label Field showing the rownumber. This value needs to be converted into the text value 'even' or 'odd'.

Any ideas?



View profile  Send private message
benjohn


Posts: 30
Posted: 10/12/2011, 4:05 PM

hi there expo101,

i think the script should be inserted in the BeforeShowRow event though. well this should help you

http://php.net/manual/en/internals2.opcodes.mod.php

all the best!

pal,
Benjohn
_________________
~=~=~=~=~=~=~=~=~=~=~=
get it done. make it happen.
~=~=~=~=~=~=~=~=~=~=~=
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.