10g Graphs - How to customize the default color of a Bar Graph

Hi,
I've posted this thread in Reports section, have received no reply yet. Maybe no one has ever tried this before!!
I am porting a couple of 6i OGD's to 10g graphics.
Basically I am invoking reports from a form. The reports contains embedded Graph.
Here comes the tricky part.
I have a couple of Graphs in 6i that display each bar of a bar graph in different color.
Example:
Value       Bar Color
Critical     Red
Major       Orange
Minor       Yellow
None       GrayQ) I want to know how to set the color of each bar of a bar graph based on the value it takes. i,e If it's critical the bar should be displayed in red. If it's major, the bar should be displayed in orange.
I added conditional formatting in 10g Graph, and this is the trigger that was created.
function CT_1FormatTrigger return boolean is
begin
  -- Automatically Generated from Reports Builder.
  if (:f19 > -1)
  then
    srw.set_foreground_border_color('yellow');
    srw.set_border_pattern('solid');
    srw.set_foreground_fill_color('yellow');
    srw.set_fill_pattern('solid');
  end if;
  -- Automatically Generated from Reports Builder.
  if (:f20 > -1)
  then
    srw.set_foreground_border_color('red');
    srw.set_border_pattern('solid');
    srw.set_foreground_fill_color('red');
    srw.set_fill_pattern('solid');
  end if;
  return (TRUE);
end;When I try to invoke the above report from the form, I get the error: FRM-41214: Unable to run report.
If I remove conditional formatting, I am able to invoke the report from the form with the default color in the embedded graph.
Hopefully someone has ideas on this!
Thanks

Why don't you use the build-in charting capability of reports 10g instead? There is FormsGraph.jar implementation for forms but that might not have the flexibility of what 6i graphs has/had and not "officially" supported - not like the reports 10g charting capability (which is built in and can be customized by editing the related xml files (if necessary). Note: FormsGraph.jar has it's own limitations

Similar Messages

  • How to change the default color of the selected row

    hi all,
    I need to know how to change the default color(yellow) of the selected row in a table component.whether i need to change anything in the stylesheet.If so, where should i make the changes in the stylesheet.
    thanks and regards,
    rpk

    The chart colors are being referred to *'palette.cxml'* file in these directories
    BI_HOME\web\app\res\s_oracle10\chartsupport
    BI_HOME\oc4j_bi\j2ee\home\applications\analytics\analytics\res\s_oracle10\chartsupport
    you can change to your custom colors.
    Restart OC4J and PS to make the new ones work..
    Regards,
    Raghu

  • How to configure the outline color of a bar in a graph

    I have a user who has a graph with many datapoints. He wants these to be bars, but with so many datapoints on the graph, the bar outlines are more prevalent than the set bar colors.  I am unable to locate where the outline color of a bar in a graph is determined.  I have reviewed available graph styles, but there are no graph style without borders.  Also, I cannot find where I can create a custom graph style to see if I could create one without borders.  I'm using 10.1.2.3.  Does anyone know how I can remove the outlines?
    Thanks,
    Victoria

    Any takers?  This is still an issue.
    Thanks,
    Victoria

  • How to customize the default add item in a content area

    Hi!! I want to know what can I do to introduce a file in a content area, but I don't want to use the default page that portal use. I want to customize the add item option, the same that I have done with the folders. The problem that I have is that I need the user to have the file on his/her pc, and the api add_item needs the file on unix, where de DB is installed.
    If anyone has any idea, please help me.

    Hi All,
    Thanks for all your reply, but maybe i didn't describe my problem clear. My problem for the combobox is that once the combobox has a selected value, then there is no way to clear it in the UI even I remove all the items in its ValidValues. From the user interface, the selected value still stays there but actually this combobox is empty and does not have any items. My question is how can I remove the current selected item in the combobox.
    Thanks,
    Lan

  • How to set the default Color Picker?

    Hello everyone,
    I wrote my own Color Picker and it works nicely within the standard apple color picker panel. I am quite annoyed, however, that I have to switch to my new Color Picker by hand every time I open the Color Picker Panel. I have found that I can set an application-speficic default color picker by setting the NSColorPickerSlidersDefaults property for that application using defaults. However, that way I can only set one of the original apple color pickers to be the default, not my own, because there is no number defined for my own color picker and I can't add it.
    Does anyone know a solution please?

    Thanks camickr !
    That's exactly what I was looking for. (let the UIManager take care of colors of the textfield whether it's editable or not)
    as for 2nd reply my code is in several files. IF i have to shorten it, it would be:
    it's just a pseudo code and incomplete but it gets the idea across
    * this function automatically changes colors of textfield based on mode which can change any time
    if(mode == NEW_MODE)
    textField.setEditable(true);
    else
    textField.setEditable(false);
    * This function sets the color during save time
    public void save()
    clear();
    if(textField.getText() == null)
    textField.setBackGround(Color.PINK);
    public void clear()
    //reset the color if it's pink or to the original color
    //the color must update once we change mode which is independent of this
    public void open(Patient p)
           clear();
           displayPatient(p);
    }

  • How to hide the default windows inherit menu bar

    Dear All,
    I am using oracle Application server 10g with windows server 2003. with oracle 11g database.
    When ever I am accessing the application from client machine through browser i am getting the windows inherit menu bar at the top of the working space of the form.
    I want to hide that default menu bar from viewing the application users.
    Please help.
    Thank you in advance....

    actually vansul i have done this the default smart bar is removing by doing this
    but i want to hide the black window bar which is displayed even if by removing
    the default & smart bar.

  • How to change the default hint box color?

    How to change the default hint box color on the default Metal LookAF?
    I'm trying looking for something with javax.swing.UIManager, but i just find ways to translate the UI.
    Any idea?

    [UIManager Defaults|http://www.camick.com/java/blog.html?name=uimanager-defaults] shows all the properties of the UIManager.
    Although there is no "hint box" component, so I don't know if it will help.

  • How do I change the default color in pages.

    How do I change the default color in pages.  Everytime I try to copy and paste a passage, I am unable to do so because it seems that the ink is always white on white.  Sometimes I am lucky and can change it using the color box in the format bar, but it's a rarity when I'm able to do it.

    What version of Pages & what version of OS X are you using?
    A problem with an early Software Update for Snow Leopard caused a lot of problems. The problem is not whether or not your system is the current version but how it got there. You must use the combo updater, not the one from Software Update unless it specifically states it is the combo. Software Update will only offer the combo if your system is two or more versions behind.
    If you're not running the latest versions of the iWork apps & Software Update says your software is up to date, make sure the applications are where the installer initially put them. The updaters are very picky. If the location is not where the updater is programmed to look or if the folder doesn't have the name the updater looks for, it will not work. The applications cannot be renamed or moved. If you installed from the downloaded trial or the retail box, they must be in the iWork '09 (or '08 if that's what you're using) folder in Applications. That iWork folder must be named iWork '09. If it doesn't have the '09 Software Update won't find them & the updaters won't work.

  • When creating a fillable form and saving it as a pdf, the default color of the data fields is a light blue. How do I change the color to something else that will copy better, e.g. a light yellow?

    When creating a fillable form and saving it as a pdf, the default color of the data fields is a light blue. How do I change the color to something else that will copy better, e.g. a light yellow?

    It's probably the fields highlight color of the application, which you can change via Edit - Preferences - Forms.

  • How to get the default selection color from JTable

    Hi, there,
    I have a question for how to get the default selection color from JTable. I am currently implementing the customized table cell renderer, but I do want to set the selection color in the table exactly the same of default table cell renderer. The JTable.getSelectionBackgroup() did not works for me, it returned dark blue which made the text in the table unreadable. Anyone know how to get the window's default selection color?
    Thanks,
    -Jenny

    The windows default selection color is dark blue. Try selecting any text on this page. The difference is that the text gets changed to a white font so you can actually see the text.
    If you don't like the default colors that Java uses then use the UIManager to change the defaults. The following program shows all the properties controlled by the UIManager:
    http://www.discoverteenergy.com/files/ShowUIDefaults.java
    Any of the properties can be changed for the entire application by using:
    UIManager.put( "propertyName", value );

  • How i suppress the default link color?

    Hi,
    <p>
    i have a little sql report, and i have coded the color for a column value in a function call. It looks like :
    <p>
    select format_html(col_x,5)
    from mytable;
    <p>
    This function give me the following result:
    <p>
    ---> select format_html(col_x,5) from syn
    where rownum<10;
    1<br>
    2<br>
    3<br>
    4<br>
    5<br>
    <_font color="#dc143c">6</_font><br>
    <_font color="#dc143c">7</_font><br>
    <_font color="#dc143c">8</_font><br>
    <_font color="#dc143c">9</_font><br>
    <p>
    Now all values > 5 have a different color. And this works fine.
    <p>
    But now i will link this column to an other page. And than the column has the default color for the link(wich is blue). How i can change this behavior, so the values have the color from the function and the links are only underlined?
    <p>
    Thanks for your help,
    Maik

    Hi Maik,
    You can do something like the following:
    In the region's Region Header for the report, add in:
    &lt;style&gt;
    .customlink:hover {color:red}
    .customlink:active {color:yellow}
    .customlink:link {color:purple}
    .customlink:visited {color:green}
    &lt;/style&gt;
    You can change "customlink" to whatever name you like and, obviously, pick your own colours.
    Then in your SQL statement, add in a field that returns a stylename:
    select field1,
    field2,
    CASE WHEN (test) THEN 'customlink' ELSE '' END STYLENAME,
    etc
    from etc
    Then, in the link, in "Link Attributes", add in classname='#STYLENAME#'
    Regards
    Andy

  • How to customize the JTable (fonts, colors)

    Hi,
    I wonder how to customize the font, font style and color of a JTable? Shell I make my own renderer for it, or even the Look&Feel? I hope there is an easier way to do it... Something like CSS for HTML.
    I would appreciate some links to the sample code or tutorial as well.
    Best regards,
    Martin

    Try making your own cell renderer.
    MyCellRenderer implements javax.swing.table.TableCellRenderer{
    public MyCellRenderer() {
    public java.awt.Component getTableCellRendererComponent(javax.swing.JTable jTable, Object value, boolean isSelected, boolean hasFocus, int row, int col) {
    //make a JLabel (you can use html just by setting it as text for the JLabel)
    return JLabel;
    then just call
    myJTable.setDefaultCellRenderer(new MyCellRenderer());

  • How can I change the default color (Blue color)?

    Hi,
    I use JDev 11g last version
    when I use decorativeBox or panelStretchLayout I use (dark - light - medium) in theme but by default it be in blue color can I change this blue color to any other color?
    I don't want to use an image or change background color using css file I want bu easy way to change the theme with any color except blue.
    Thank You...
    Sameh Nassar

    Hi John,
    Thank You for your reply
    I know that can be solved by using skin.
    but when I use (dark - medium - light ) the appearance change without using skins.
    I ask is there any way to change the default color (blue) with any other color.
    - It means when I write a dark in decorativeBox theme I found the decorativeBox in red color (or any other color) instead of blue color.
    - Where can I find the place which say the blue is the default color?
    Thank You..
    Sameh Nassar

  • How do I set default colors for XY chart series (lines and legend)

    I am implementing a line chart and need to override the default (caspian style) colors for the line colors and the legend symbols. I'm not displaying the chart symbols themselves as that would make the chart look bad. I've been able to successfully set the default colors for the lines via the CSS below, but cannot find a way to do the same for the series symbols that appear in the chart legend. How do I do this? Thanks.
    .default-color0.chart-series-line {
      -fx-stroke: rgb(0, 102, 255);
    .default-color1.chart-series-line {
      -fx-stroke: rgb(0, 255, 102);
    ...Update:
    Figured it out. Need to do the following:
    .default-color0.chart-line-symbol {
      -fx-background-color: rgb(R, G, B);
    }Edited by: 998038 on May 16, 2013 4:09 PM

    Here is some css to customize the line and legend colors in a line chart.
    /** file: chart.css
        place in same directory as LineChartWithCustomColors.java */
    .default-color0.chart-series-line {
      -fx-stroke: rgb(0, 102, 255);
    .default-color1.chart-series-line {
      -fx-stroke: rgb(0, 255, 102);
    .default-color0.chart-line-symbol {
      -fx-background-color: rgb(0, 102, 255), white;
    .default-color1.chart-line-symbol {
      -fx-background-color: rgb(0, 255, 102), white;
    }And a test harness to try it:
    import javafx.application.Application;
    import javafx.event.*;
    import javafx.scene.Scene;
    import javafx.scene.chart.*;
    import javafx.scene.control.*;
    import javafx.scene.input.*;
    import javafx.stage.Stage;
    public class LineChartWithCustomColors extends Application {
        @Override public void start(final Stage stage) {
            stage.setTitle("Line Chart Sample");
            //defining the axes
            final NumberAxis xAxis = new NumberAxis();
            xAxis.setLabel("Number of Month");
            final NumberAxis yAxis = new NumberAxis();
            //creating the chart
            final LineChart<Number,Number> lineChart =
                    new LineChart<>(xAxis,yAxis);
            lineChart.setTitle("Stock Monitoring, 2010");
            lineChart.setCreateSymbols(false);
            //defining a series
            XYChart.Series series = new XYChart.Series();
            series.setName("My portfolio");
            //populating the series with data
            series.getData().setAll(
              new XYChart.Data(1, 23),
              new XYChart.Data(2, 14),
              new XYChart.Data(3, 15),
              new XYChart.Data(4, 24),
              new XYChart.Data(5, 34),
              new XYChart.Data(6, 36),
              new XYChart.Data(7, 22),
              new XYChart.Data(8, 45),
              new XYChart.Data(9, 43),
              new XYChart.Data(10, 17),
              new XYChart.Data(11, 29),
              new XYChart.Data(12, 25)
            lineChart.getData().add(series);
            //adding a context menu item to the chart
            final MenuItem resizeItem = new MenuItem("Resize");
            resizeItem.setOnAction(new EventHandler<ActionEvent>() {
              @Override public void handle(ActionEvent event) {
                System.out.println("Resize requested");
            final ContextMenu menu = new ContextMenu(
              resizeItem
            lineChart.setOnMouseClicked(new EventHandler<MouseEvent>() {
              @Override public void handle(MouseEvent event) {
                if (MouseButton.SECONDARY.equals(event.getButton())) {
                  menu.show(stage, event.getScreenX(), event.getScreenY());
            Scene scene =
              new Scene(
                lineChart,800,600
            stage.setScene(
              scene
            stage.show();
            scene.getStylesheets().add(
              getClass().getResource("chart.css").toExternalForm()
        public static void main(String[] args) {
            launch(args);
    }

  • How to change the default apex port

    hi,
    i am installed apex4.0 in EBS R12 DB with HTTP Server method. my apex is running from application server 10g and default port is 7777.
    URl: http://hostname:7777/pls/apex
    My EBS R12 running on http://hostname:8007.
    is it possible to change the apex port to EBS Apache port(8007) in R12 and finally i want to change above URL like this
    Before change : http://hostname:7777/pls/apex
    After Change : http://hostname:8007/pls/apex
    Thanks in advanace....

    How to Change the Default SSH Port from Terminal ?
    now showing default SSH Port 22 i need change it pls help me how can do

Maybe you are looking for

  • Functionality missing - excel opening pdf file launches adobe reader

    When i opened a PDF file in excel or word it used to launch adobe reader instead and show me the file. Yesterday i installed internet explorer 8 and now this functionality has disappeard. Anybody knows how to get it back?

  • Refurbed dc7900 convertible mini tower Intel ME error

    There is a thread on this problem that appears to have died without resolution. http://h30499.www3.hp.com/t5/Business-PCs-Compaq-Elite-Pro/dc7900-CMT-2233-HECI-Error-during-MEBX-ex... I am hoping another go round might provide answers. I have done al

  • HS generic connection to ingres

    Hi, I'm having a small problem with setting up a connection from oracle to ingres. Oracle: 9.2.0.1 Ingres: AdvantageIngres 2.6 OS: Win2K for both Error Msg: select * from "airline"@HSG ERROR at line 1: ORA-28500: connection from ORACLE to a non-Oracl

  • Problem with access to SipFactory from jsp-pages in JBoss environment

    Hello! I have an installation of the OCMS 10.1.3.3. deployed into a JBoss (jboss-4.0.5.GA) environment. Unfortunately I have a problem with accessing the SipFactory from a jps-page. Encouraged by the "messagesender" example I tried to get an instance

  • [SOLVED] app that auto populates home folder

    I once used an app from the repos (might have been aur) that auto populated your home directory with the standard sub directories (music, pictures, downloads, documents, etc..) and used the correct specialized icon for each of them.  I know I could j