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
|
|
|
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
|
|
|
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?
|
|
|
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.
~=~=~=~=~=~=~=~=~=~=~= |
|
|
|