How to use conditional styles in a chart on jasper reports? - styles

I want to paint my bars (in a bar chart), according to some conditions, but I can't find a way how to do this...

I don't know since what version it is working like that, but if you have the latest it should work:
Open the report navigation;
Click with the right button on the branch "Styles" and click to add a new one;
On the new style you click again with the right button and create a conditional style;
Right click again on the new conditional style and edit your condition, after that you just have to setup your style as you want.

Related

Acumatica - Changing textbox Font Color based on value

I've been trying to modify the Projects (PM301000) screen summary area to change the font color of the totals to red when it's in negative value but I can't make it work. I've tried several javascript codes and saw that this is working on a button Dynamically Change Button Color
but I can't make it work on the PXNumericEdit control specifically the totals in the Projects screen.
Projects screenshot
Any idea on how to make it work? Thank you.
You should try changing the CSS via an event handler in the aspx code behind file. See this article

Title bar tab active with Bootstrap in XPages

I'm starting a new xpages project, and I'm going to use the bootstrap. I will use application Layout with responsive bootstrap configuration. I will use the 'Title bar' property. I'm doing tests but I have not found a solution to keep the active tab of the active title bar highlighted with another color. What happens is that when clicking on a certain tab of the title bar, it changes color, for the color defined for active tab, however, when I select any option in the navigation bar, the link to the color set for the tabs not selected. I have already tried using the navigationPath property, which works with OneUi layout, but with no bootstrap. Does anyone know how to solve this problem?

Toggle a custom icon on an Action Button on Lotus Notes form

When editing the action button properties, it allows an #if statement to flip/flop two choices (lock/unlock). i.e. #If(enlock=1;"Unlock";"Lock") for the "Label" of the action button.
At the bottom of the Action properties, icons can be None, Notes, or Custom. When I select Custom, I want the #if to use either the Locked/Unlocked Notes icons. (actn084.gif and actn085.gif, respectively) Or numbers #62 (locked) and #(I don't know/can't find, the # for the unlock icon).
I've tried formula with the icon number, like in a view, "display as icons" for view column. Using an #if, I've tried the gif on local and server replica's and it didn't give any results.
Please see the example image below.
Image example: http://i.stack.imgur.com/UBac3.png
You have to add actn084.gif and actn085.gif to Resources/Images.
Then, you can use a formula
#If(enlock=1;"actn085.gif";"actn084.gif")
for calculating icon.
As an alternative, you could create two buttons and hide-when them depending on field enlock. You could assign label and icon direct to buttons without formula then.
The hide formula would be enlock=1 for first button and enlock!=1 for the second. In both buttons you would have to add #Command([RefreshHideFormulas]); at the end of your action formula to refresh the action buttons (or Call uiDoc.RefreshHideFormulas for LotusScript action code).

Dynamically change chart after clicking an icon in Excel

I am doing a dashboard. To resolve the problem with the space, I would like to show a chart which changes depending of which icon an user clicks (see image in following link: http://screencast.com/t/IvzllhxCi).
Charts are already done and ranges defined. The chart showed in the dashboard was inserted using the "Paste picture link" function (sorry if this is not the correct name, but I use Excel in spanish). I assume, that the best way to do it is creating different macros which define the data of a chart and are fired which every icon click, but... is there a more efficient way to do it?
How about just creating all the charts, putting them on top of each other and then showing / hidding the appropriate chart when a user clicks the icons via:
chart.Visible = xlSheetHidden;
And
chart.Visible = xlSheetVisible;

MFC Ribbon CEdit Textbox Allignment in Panel

I am trying to align two text boxes with two buttons in a panel, and I am unable to find anything about how to force positioning inside the MFC Ribbon Panels.
Here is a picture of what I have currently.
http://i.imgur.com/ofD0b.jpg (Sorry wont let me post images yet, have to link.)
The Change View Date box has the box associated with it sitting below it and the change system date box is up in the top right in the second "column" of controls. I would like to fix this so the Box with the spin controls sits next to the CHange View Date and the box without the controls sits next to Change System Date.
Thoughts? Thanks!
I think yow cannot do it.
What you can do is to put a Ribbon Separator after the Box with the spin controls and then set the property 'Center Column Vertically' on the Panel.
Hope it can help.

Resources