General information
Category:
Reports & Report designer
Title:
Dynamic backcolor of shape
Hello Everybody !
I have a report with 4 columns. Cursor = listwahl (each record has day1-day31,kz1-kz31,amount1-amount31,datum1-datum31)
Each report column has 31 x 3 Fields to print
day kz amount
1 x 5
2 z 12
.
.
30 x 6
31 q 7
If the day is on weekend or public holiday i change the background color (depending from the datum column in my cursor)
Code at user data of day1,kz1,amount1:
*:LISTENER BACKCOLOR = icase(listwahl.datum1 = 'SA' or listwahl.datum1 = 'SO', #ROSA#,listwahl.datum1= 'FF' , #RED#,#WHITE#)
...
Code at user data of day30,kz30,amount30:
*:LISTENER BACKCOLOR = icase(listwahl.datum30 = 'SA' or listwahl.datum30 = 'SO', #ROSA#,listwahl.datum30= 'FF' , #RED#,#WHITE#)
Everything works as wanted !
But when kzn = empty the changing of the backcolor does not work! (backcolor of text, when not text!!)
Therefor i decide to put a shape around the 3 fields per day
_______________
| 1 x 5 | sorry for the stupid drawing ;-)
---------------
_______________
| 2 z 12 |
---------------
At userdata of each shape i put the same code that what worked in my original version:
*:LISTENER BACKCOLOR = icase(listwahl.datum1 = 'SA' or listwahl.datum1 = 'SO', #ROSA#,listwahl.datum1= 'FF' , #RED#,#WHITE#)
But this doesn't work ??????
The background of the shapes never gets rosa or red ????
What am i missing ???
Any help welcomed
Best regards
Albert
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only