catador Posted November 17, 2006 Share Posted November 17, 2006 Hi!! i have this query with member [Measures].[Var%Rango] as '(([Measures].[VarCuLP] * 100.0) / ([Producto].CurrentMember, [Measures].[CuActual]))', FORMAT_STRING = IIf(([Measures].[Var%Rango] < 15.0), IIf(([Measures].[Var%Rango] < 10.0), IIf(([Measures].[Var%Rango] < 0.0), "|#|style=green", "|#|style=yellow"), "|#|style=HOWPUTORANGE"), "|#|style=red")select {[Measures].[Qty], [Measures].[CuActual], [Measures].[CuLP], [Measures].[VarCuLP], [Measures].[Var%CuLP], [Measures].[MaxHjs], [Measures].[Var%Rango]} ON COLUMNS, {[Producto].[All Productos], [Producto].[All Productos].[FPC ], [Producto].[All Productos].[PBB ], [Producto].[All Productos].[Producto T], [Producto].[All Productos].[servicio ]} ON ROWS and i wan't put a orange back color when the values it's between 10 and 15. if i put orange... the number looks left ident, i can put the number in hex? how? :D Thanks for this help... this colors be a great help for directors!! Best Regards!!! Link to comment Share on other sites More sharing options...
swood Posted November 19, 2006 Share Posted November 19, 2006 In the WAR, look at jpivot/table/mdxtable.css. See the styles like: Code:td.cell-red,span.cell-red{ background-color: #FF6666; } Create a style like this with it's particular background color. Code:[code]td.cell-orange,span.cell-orange{ background-color: #hex for orange; } There are some other styles that refer to "td.cell-???". Add your td.cell-??? and td.span-??? there too. ShermanJasperSoft Link to comment Share on other sites More sharing options...
catador Posted November 21, 2006 Author Share Posted November 21, 2006 Hi!! Thanks for answer!! i add this to filetd.cell-orange,td.cell-naranjo,span.cell-orange,span.cell-naranjo{ background-color: #FD9C03;} but when i put orange on style in mdx query doesn't works fine and no have any error message. thanks for your help! Link to comment Share on other sites More sharing options...
catador Posted November 21, 2006 Author Share Posted November 21, 2006 Hi!! Thanks for answer!! i add this to filetd.cell-orange,td.cell-naranjo,span.cell-orange,span.cell-naranjo{ background-color: #FD9C03;} but when i put orange on style in mdx query doesn't works fine and no have any error message. thanks for your help! Link to comment Share on other sites More sharing options...
swood Posted November 21, 2006 Share Posted November 21, 2006 As I said, you need to do more than that. Add td.cell-orange and span.cell-orange in all the styles where td.cell-red and span.cell-red are referenced. ShermanJasperSoft Link to comment Share on other sites More sharing options...
catador Posted November 21, 2006 Author Share Posted November 21, 2006 Hi Sherman, If i search css files in jasperserver webapp exist those:./cal/calendar-win2k-1.css./wcf/form/xform.css./wcf/tree/xtree.css./wcf/table/xtable.css./wcf/pagestack/pagestack.css./wcf/tabbed/xtabbed.css./wcf/status/status.css./wcf/wcf.css./wcf/catedit/xcatedit.css./stylesheets/stylesheet.css./stylesheets/base.css./stylesheets/styles.css./jpivot/navi/mdxnavi.css./jpivot/table/mdxtable.css just in mdxtable i found the definition of sytles... and i add orange definition... /* data cells */td.cell-even,td.cell-odd,td.cell-red,td.cell-yellow,td.cell-green,td.cell-rot,td.cell-gelb,td.cell-gruen,td.cell-orange, -> i add thistd.cell-naranjo, -> i add thistd.property-value,td.property-span { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 0.8em;; color : Black; text-align: right;} and this..td.cell-orange,td.cell-naranjo,span.cell-orange,span.cell-naranjo{ background-color: #FD9C03;} it's ok this? because just mdxtable file have this definitions. Thanks for your help. :D Link to comment Share on other sites More sharing options...
swood Posted November 24, 2006 Share Posted November 24, 2006 It should just be in mdxtable.css. So it did not work? What are you seeing? ShermanJasperSoft Link to comment Share on other sites More sharing options...
catador Posted November 27, 2006 Author Share Posted November 27, 2006 Hi, When i use orange color, cell value appear left ident and white background, but i can work, no exists any signal of error, a bug? best regards, catador! Link to comment Share on other sites More sharing options...
swood Posted November 28, 2006 Share Posted November 28, 2006 Have you looked at the HTML being produced? What is the difference between the HTML for a red cell vs the orange cell? ShermanJasperSoft Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now