APEX: Inline Statistik-Tabelle » CC13.com
Montag, Mai 14th, 2007 | Author:

Ich habe einen Auswertungsreport, der mir Prozentwerte als Zahlen darstellt. Da Bilder immer noch etwas aussagekräftiger sind, habe ich mal mit dem SVG-Plugin rumgespielt. Aber irgendwie gab es in manchen Browsern Probleme mit der Darstellung.

Also dachte ich mir, es muss doch auch mit simplem HTML funktionieren und siehe da, für meine Ansprüche reicht die Darstellung.

select
 name
 ,anzahl_termine
 ,anzahl_teilnehmer
 ,to_char(prozent, 99) ||
  '<br><table style="background-color: rgb(204,0,0); width:' ||
     to_char(prozent, 99) ||
     '%;"><tr><td></td></tr></table>' as Prozentuale_Auslastung
from table

Entscheidend ist der HTML-Quelltext innerhalb des SELECTs.

Category: Allgemein
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply » Log in