Hi folks,
any idea on how to get column indices in a crosstab DW?
Say you have a crosstab showing products on the rows and delivery dates on the columns, with whatever values on the cells.
How would you set the cell backcolor to e.g. RED if sunday and WHITE if not? Or, to make it simpler, how to set RED only at cells with index 7, 14, 21....
Best,
Marco
columns are not limited to 7, as they are automatically exploded by the crosstab between two date arguments, startdate and enddate.
Best,
.m
One option I've found would be to programatically switch your DW between static and dynamic mode.
before retrieval: dw.modify('datawindow.crosstab.staticmode=no')
after retrieval: dw.modify('datawindow.crosstab.staticmode=yes')
Once you've switched it to static, you can get a list of your controls ( dw.describe ('datawindow.objects') ) and format them accordingly. You should be able to get the respective dates from the column headers.