Your SAS programs, embedded in web apps and elsewhere

Color Coding with STP?

Reply
Occasional Contributor
Posts: 11

Color Coding with STP?

Hi all.
I'm working on a project based on customized reporting.
We use WebReportStudio on SAS 9.1.3 (actually migration to SAS 9.2 is coming), and often Java Flexi web appl to customize masks.

The purpose is that the Customer asked to use Color Coding on some tables in order to identify a best/worse item in the table, which means that the rule is:
- Cell Value =>MEDIA+10 get green color,
- Cell Value < MEDIA-10 get red color)
The problem is that the trend, so that the rule of the color coding, changes trend based on a Threshold, as follows:
IF CellValue<=Threshold then
- Cell Value =>MEDIA+10 get green color,
- Cell Value < MEDIA-10 get red color)
IF CellValue>Threshold then
- Cell Value =>MEDIA+10 get red color,
- Cell Value < MEDIA-10 get green color)

The developer team's proposal is to add to the table an added column with the check, but in my opinion the report could become too heavy and laboured.

So i ask if it's possible to get solution by means of STP.

Thanks for attention and in advance for response.

Cheers
-g.
SAS Employee
Posts: 285

Re: Color Coding with STP?

Maybe PROC REPORT with a COMPUTE block to set the style attributes?

http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000545547.htm

Vince DelGobbo
SAS R&D
Occasional Contributor
Posts: 11

Re: Color Coding with STP?

Thanks Vincenzo.
By use of ODS and COMPUTE we can get reports .pdf, .html, .xls, etc.
but we would like to keep on browsing olap cubes, WebReportStudio-like.

In that case, it seems WRS does not give the chance to implement a complex condition to format table's cells (see the above example formula)

Cheers
-giuseppe
Ask a Question
Discussion stats
  • 2 replies
  • 200 views
  • 0 likes
  • 2 in conversation