I want to dispaly different colours in my report out put

hii..
am having 12 columns..i want to display different colors for every row.
plz any one tell me the answere

Hi,
Kindly have a look into http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a559ee09411d2acb90000e829fbfe/frameset.htm link for formatted related information..
In BEx Analyzer it is not possible to have 12 different colors.. for each column..
In WEB with the help of JavaScript this should be possible..
Regards,
Vinay

Similar Messages

  • Different coloured text in one Textbox

    Can someone PLEASE help me!!!!!!!!!!!!!!
    I need to know how to have different coloured text in the same textbox.
    My application has text being inputted into the textbox every 5 seconds from 2 different sources. I want to differenciate the text by showing the user 2 different colours for each source.
    Thank you very much

    Acording to the first post it also shows data, so it is a GUI component. i never sow a textbox.
    JTextPane can show data in different colors. also JTextArea can.
    Noah

  • How to give different Colour to Columns in JTable

    Hi,
    I am using a JTable and entering Data into it. I want each column of the JTable to be in different colour. Kindly Help. Some example code will be very helpful.
    Waiting Eagerly.....
    My Code....
    import javax.swing.table.AbstractTableModel;
    import javax.swing.table.TableModel;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import java.awt.event.WindowEvent;
    import java.awt.event.WindowAdapter;
    import java.awt.Window;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.GridBagLayout;
    import javax.swing.*;
    import java.util.Vector;
    import java.awt.GridLayout;
    import java.util.*;
    import javax.swing.table.TableModel;
    public class SummScr extends JPanel {
    public JTable ProSerSumTable;
    public String ColumnNames[];
    public String dataValues[][];
    //public Vector ProSerDet = new Vector();
    //constructor
    public SummScr(){     
    super(new GridLayout(1,0));
    createColumns();
    createData();
    TableModel ProSerTabMod = new AbstractTableModel(){
    public int getColumnCount(){return ColumnNames.length; }
    public int getRowCount(){return dataValues.length;}
    public Object getValueAt(int row, int col){return dataValues[row][col]; }
    public String getColumnName(int col){return ColumnNames[col];}
    public Class getColumnClass(int col) {return getValueAt(0,col).getClass();}
    public void setValueAt(Object aValue, int row, int col){dataValues[row][col] = (String)aValue; }
    ProSerSumTable = new JTable(ProSerTabMod);
    ProSerSumTable.setPreferredScrollableViewportSize(new Dimension(400,200));
    JScrollPane scrollpane = new JScrollPane(ProSerSumTable);
    //JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    //scrollpane.add(ProSerSumTable);
    add(scrollpane);
    public void createColumns(){
    ColumnNames = new String[4];
    ColumnNames[0] = "Processes";
    ColumnNames[1] = "Normal Threshold";
    ColumnNames[2] = "On Hold";
    ColumnNames[3] = "Exceeded Threshold";
    public void createData(){
    dataValues = new String[3][4];
    dataValues[0][0] = "Merit";
    dataValues[0][1] = "60%";
    dataValues[0][2] = "0%";
    dataValues[0][3] = "40%";
    dataValues[1][0] = "SuperMarket";
    dataValues[1][1] = "70%";
    dataValues[1][2] = "0%";
    dataValues[1][3] = "30%";
    dataValues[2][0] = "Passport";
    dataValues[2][1] = "65%";
    dataValues[2][2] = "0%";
    dataValues[2][3] = "35%";
    private static void createAndShowGUI() {
    //Make sure we have nice window decorations.
    JFrame.setDefaultLookAndFeelDecorated(true);
    //Create and set up the window.
    JFrame frame = new JFrame("Summary Screen");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //Create and set up the content pane.
    SummScr newContentPane = new SummScr();
    newContentPane.setOpaque(true); //content panes must be opaque
    frame.setContentPane(newContentPane);
    //Display the window.
    frame.pack();
    frame.setVisible(true);
    public static void main(String[] args) {
    //Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    }

    try this, also put your code into the code tags to help read your code
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.GridLayout;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.AbstractTableModel;
    import javax.swing.table.DefaultTableCellRenderer;
    import javax.swing.table.TableColumn;
    import javax.swing.table.TableModel;
    public class SummScr extends JPanel {
         private static final long serialVersionUID = 1L;
         public JTable ProSerSumTable;
         public String ColumnNames[];
         public String dataValues[][];
         // public Vector ProSerDet = new Vector();
         // constructor
         public SummScr() {
              super(new GridLayout(1, 0));
              createColumns();
              createData();
              TableModel ProSerTabMod = new AbstractTableModel() {
                   private static final long serialVersionUID = 1L;
                   public int getColumnCount() {
                        return ColumnNames.length;
                   public int getRowCount() {
                        return dataValues.length;
                   public Object getValueAt(int row, int col) {
                        return dataValues[row][col];
                   public String getColumnName(int col) {
                        return ColumnNames[col];
                   public Class<?> getColumnClass(int col) {
                        return getValueAt(0, col).getClass();
                   public void setValueAt(Object aValue, int row, int col) {
                        dataValues[row][col] = (String) aValue;
              ProSerSumTable = new JTable(ProSerTabMod);
              TableColumn tc = null;
    //next line sets the renderer to your columns, in this example there are only four columns so its fairly easy,
    //though it should be no harder no matter how many columns
              for(int i = 0; i < 4; i++){
                   tc = ProSerSumTable.getColumnModel().getColumn(i);
                   tc.setCellRenderer(new ColumnColourRenderer());
              ProSerSumTable.setPreferredScrollableViewportSize(new Dimension(400,
                        200));
              JScrollPane scrollpane = new JScrollPane(ProSerSumTable);
              // JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
              // scrollpane.add(ProSerSumTable);
              add(scrollpane);
         public void createColumns() {
              ColumnNames = new String[4];
              ColumnNames[0] = "Processes";
              ColumnNames[1] = "Normal Threshold";
              ColumnNames[2] = "On Hold";
              ColumnNames[3] = "Exceeded Threshold";
         public void createData() {
              dataValues = new String[3][4];
              dataValues[0][0] = "Merit";
              dataValues[0][1] = "60%";
              dataValues[0][2] = "0%";
              dataValues[0][3] = "40%";
              dataValues[1][0] = "SuperMarket";
              dataValues[1][1] = "70%";
              dataValues[1][2] = "0%";
              dataValues[1][3] = "30%";
              dataValues[2][0] = "Passport";
              dataValues[2][1] = "65%";
              dataValues[2][2] = "0%";
              dataValues[2][3] = "35%";
         private static void createAndShowGUI() {
              // Make sure we have nice window decorations.
              JFrame.setDefaultLookAndFeelDecorated(true);
              // Create and set up the window.
              JFrame frame = new JFrame("Summary Screen");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              // Create and set up the content pane.
              SummScr newContentPane = new SummScr();
              newContentPane.setOpaque(true); // content panes must be opaque
              frame.setContentPane(newContentPane);
              // Display the window.
              frame.pack();
              frame.setVisible(true);
         public static void main(String[] args) {
              // Schedule a job for the event-dispatching thread:
              // creating and showing this application's GUI.
              javax.swing.SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        createAndShowGUI();
         class ColumnColourRenderer extends DefaultTableCellRenderer{
              public ColumnColourRenderer() {
                   super();
              public Component getTableCellRendererComponent(JTable table, Object value,
                        boolean isSelected, boolean cellHasFocus, int row, int column) {
                   if (column %2 == 0) {
                        setText((table.getModel().getValueAt(row, column)).toString());
                        if (isSelected) {
                              setBackground(table.getSelectionBackground());
                              setForeground(table.getSelectionForeground());
                        else {
                             setBackground(Color.RED);
                   } else if (column %2 != 0){
                        setText((table.getModel().getValueAt(row, column)).toString());
                        if (isSelected) {
                              setBackground(table.getSelectionBackground());
                              setForeground(table.getSelectionForeground());
                        else {
                             setBackground(Color.BLUE);
                   return this;
    }

  • Can you set different colours for invitees in calendar?

    In calendar on the iphone/ipad can you set any events that you accept from invitees to a different colour so that you can instantly distinguish them from your own events?
    Cheers

    You could choose None in Preferences > General > New Mail Sound and set up a rule for each account in Preferences > Rules as follows:
    If [any/all] of the following conditions are met:
    [Account] [AccountName]
    Perform the following actions:
    [Play Sound] [Sound]
    Problem is, that would cause the sound to be played for junk mail as well — probably not what you want.

  • Can I use different colours for the different user accounts in my iCal?

    I have my own iCal and one for my boss. I need our appointments to show up in different colours so that I can tell at a glance which are mine and which are his. Currently our appointments show up on the same calendar, on top of each other, and both are coloured red.
    Can I change the colour of one of us?

    Thanks. If there are other people invited to the appointment it comes up with this
    So I don't want to 'move' it or cancel the original appointment. is there another way I can, for example, have my boss's appointments all come up green and mine all come up blue......

  • Different colours for 1 calendar

    Hello,
    We sync a google calendar with everyone in our office.
    This calendar contains my private and work related appointments.
    In my iCal (Snow Leopard) I would like to give a different colour to my private and work appointments, is this possible?
    Creating a second calender is not an option, we only want to share 1 calendar with everything in.
    I know this is possible in Outlook, but I'm not a fan of Windows...
    Thx
    Ruben

    Dear Ruben
    I would love to know how you can make some events Private.
    We use ical and sync to Google Calendar, but when I create events in iCal, there is no option to make it private.
    We have created a CalDAV connection to Google Apps Calendar, so any help about why there is no check box for Private would be appreciated.

  • How to make spry menubar first button different colour?

    Hi
    When making spry menubar how do you make the first button or whatever page you are on a different colour to show that you are on that page?
    thanks
    alix

    1. Add a helper script called SpryDOMUtils.js as per
    <script src="SpryAssets/SpryDOMUtils.js"></script>
    2. Add a function called InitPage or similar that inspects each of the menu items and compares the link with the current URL as per
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    function InitPage(){
    Spry.$$('#MenuBar1 li').forEach(function(node){
        var a=node.getElementsByTagName("a")[0]; // finds all a elements inside the li, but we only want the first so [0]
        if(a.href == window.location){
            Spry.Utils.addClassName(node,"activeMenuItem");
    3. Add a listener for when the page is loaded. The listener will be the trigger for the function
    Spry.Utils.addLoadListener(InitPage);
    4. Add a style rule for the activeMenuItem that we, in our function, addedto the current menu item.
    .activeMenuItem a {
        background:#a59a84 !important;
        color:#ffffff !important;
    The !important bit is to override the JS
    Your complete document should look similar to
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet">
    <style>
    .activeMenuItem a {
        background:#a59a84 !important;
        color:#ffffff !important;
    </style>
    </head>
    <body>
    <ul id="MenuBar1" class="MenuBarHorizontal">
      <li><a class="MenuBarItemSubmenu" href="untitled.php">Item 1</a>
        <ul>
          <li><a href="#">Item 1.1</a></li>
          <li><a href="#">Item 1.2</a></li>
          <li><a href="#">Item 1.3</a></li>
        </ul>
      </li>
      <li><a href="#">Item 2</a></li>
      <li><a class="MenuBarItemSubmenu" href="#">Item 3</a>
        <ul>
          <li><a class="MenuBarItemSubmenu" href="#">Item 3.1</a>
            <ul>
              <li><a href="#">Item 3.1.1</a></li>
              <li><a href="#">Item 3.1.2</a></li>
            </ul>
          </li>
          <li><a href="#">Item 3.2</a></li>
          <li><a href="#">Item 3.3</a></li>
        </ul>
      </li>
    </ul>
    <script src="SpryAssets/SpryMenuBar.js"></script>
    <script src="SpryAssets/SpryDOMUtils.js"></script>
    <script>
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    function InitPage(){
    Spry.$$('#MenuBar1 li').forEach(function(node){
        var a=node.getElementsByTagName("a")[0]; // finds all a elements inside the li, but we only want the first so [0]
        if(a.href == window.location){
            Spry.Utils.addClassName(node,"activeMenuItem");
    Spry.Utils.addLoadListener(InitPage);
    </script>
    </body>
    </html>
    Gramps

  • My ical wiped out a whole calendar category (i have four each with a different colour code)  what happened? and how do i get my info back

    My ical wiped out a whole calendar category (i have four each with a different colour code)  what happened? and how do i get my info back

    Read this:
    Forgot passcode for your iPhone, iPad, or iPod touch, or your device is disabled - Apple Support
    If you want your grandchild to play with the iPad use Guided Access:
    iOS: About Guided Access - Apple Support

  • Single Plot fill with different colours

    Hi;
    Any suggestions on how I could fill a single plot with 2 different colours.? Basically I have a single sine wave trace. I want to fill the plot on the positive gradient of the sine wave with red and the negative gradient with green. I need to do this with measurement studio and VB6.
    Thanks.

    Hi Dayaa,
    There is no straightforward way to do this. You will need to use two plots. To plot these plots you will
    need to use the PlotXY function instead of the PlotY function. That
    will allow you to specify the X values for each plot so they show up
    properly. This forums post should help you out:
    http://forums.ni.com/ni/board/message?board.id=231&message.id=692&requireLogin=False
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Can you have a different colour horizontal Spry menu on multiple pages?

    Hi,
    I'm fairly new to Dreamweaver and CSS. So please forgive me ignorance.
    I've created a page with a horizontal spry menu bar, and have edited it according to how I want it to look.. Brilliant!. The problem I have is I want the exact same menu bar on multiple pages but using a different colour scheme for a couple of the pages!. Is this possible? Thanks

    I am sorry, but I do not see that you have added the suggested code to the document as per
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Touring Sport</title>
    <meta name="keywords" content="Football Tours, Youth Football Tours, Junior Football Tours, Boys Football Tours, Girls Football Tours, Ladies Football Tours, Mens Football Tours, European Football Tours, School Football Tours">
    <meta name="description" content="Football Tours in the UK and Europe.">
    <style type="text/css">
    <!--
    body {
         background-image: url(images/Touring%20Sport%20-%20Sports%20Tours,%20Schools%20Tours%20and%20Corporate%20Tours.jpg);
    a:visited {
         color: #660066;
    a:link {
         text-decoration: none;
         color: #660066;
    .Contact_Header {
         font-family: Helvetica;
         color: #660066;
         font-size: 95%;
         text-align: right;
    .Main_Text {
         font-family: Helvetica;
         color: #666;
         text-align: justify;
         font-size: 90%;
    -->
    </style>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css">
    <script type="text/javascript">
    <!--
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script><style type="text/css">
    <!--
    a:hover {
         color: #993399;
    --></style></head>
    Gramps

  • Visited links not in different colour at certain sites FF4

    In FF4 the visited links of some sites are forgotten. It is enough that you refresh the site. In FF 3.5 there is no problem.

    Pseudo-classes and container styles are what you need - here
    are some
    tutorials.
    http://www.thepattysite.com/linkstyles1.cfm
    http://www.projectseven.com/tutorials/pseudoclasses/index.htm
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "mccoole1" <[email protected]> wrote in
    message
    news:fkgmj3$8lq$[email protected]..
    > Following the enormous success I had with a problem I
    posted yesterday - I
    > have
    > decided to test the water of the professionals again.
    >
    > I have set up a home page which I intend to use as a
    template for the rest
    > of
    > the pages/links. I have a Spry menu bar which has white
    text links and a
    > red
    > background. Further down the page I want to link to the
    'small print'
    > (like
    > 'Site Map' 'Contact Us' 'Accessibility' etc). I want
    these links to be a
    > different colour - not background 'red' - but it is
    because of the CSS on
    > the
    > body style in Page Properties.
    >
    > Is there an easy way of overriding this / adding a CSS
    to stop it having
    > the
    > red BG??
    >
    >
    >

  • Is it possible to exchange an iphone 6 sealed, for a different colour?

    Hi,
    my dad just recently bought an iPhone 6 64gb space grey from his friend for my mother, however my mother doesn't like that colour and wanted to swap it for a silver. The box is still sealed in the box and unopened. She doesn't have a proof of purchase.
    Is it still possible to exchange it for a different colour?
    thank you

    If it is within the return period for the place you bought it from, you can return it for a refund and buy what you'd like. Apple in the USA has a 14 day unconditional return period (other retail stores will have their own policy). After that return period, no, you then own it and are not eligilbe for a return/exchange.
    p.s. You do not need proof of purchase if you bought from an Apple retail store. They can verify the purchase from the serial number.

  • ICloud iCal different colours and not syncing macbook

    Hello,
    I'm having problems with my calendars.  On my iphone (ios5) the iCloud calendars are different colours to those on my macbook (also called iCloud calendars) and they don't sync.  Anything I put into my phone calendar does not ever appear on my mac book although the ones from my mac do appear on the iphone.  The problem is that my Macbook thinks that the calendars are icloud but my phone thinks they are 'My Mac' with email address in brackets.
    I don't know.  Does that make any sense?
    Ready to give up on this whole i Cloud thing, but not sure how it works without!  I would be quite happy to manually sync everything!
    Thanks in advance for any Help!!

    Hi PersonB
    I am having the same problem!  Have you sorted it out yet?  I had my icloud turned off for a while but now have an ipdad and wanted to try it again.  Still different calendar colours on my mac and not syncing...
    Annoying!
    Hope someone out there can help!

  • Can I make the different mini-windows in Expose different colours?

    Hi,
    An inconvenient aspect of Expose is that, once I have too many Word documents open, I have to search around with the mouse to find the one I want to go to next. It'd be nice if they all automatically came up with different highlights, so I could remember "Document 3 is the orange one" and just click on that without having to move the cursor over it to read the name.
    I know I can change the highlight colour of ALL the windows in System Prefs - Appearances, but that won't do it for me.
    Any suggestiosn?
    Thanks.

    Can I make the different mini-windows in Expose different colours?
    No

  • How do I create a logotype with the letters in 2 different colours

    I need help with a logo. I'm trying to create a logo were it's as though a lamp is shining on the type so part of the letters are in 2 different colours.

    Set the type using the point text tool (meaning click then type, not click-drag-release then type). Use two type objects, one for each line.
    Draw the path for the light with the pen tool, fill it with yellow, and move it to the back (Object > Arrange > Send to Back).
    Select the top line of text and the spotlight and go to Object > Clipping Mask > Make.
    Now select just the type objects with the Direct Select tool (white arrow) and fill them with blue.

Maybe you are looking for

  • Archiving Mini-DV Tapes - iMovie or QuickTime 7 Pro?

    Hello, I've been through many similar posts here and on the Internet.  Like many, I have mini-dv tapes that need to be archived to an external hard drive for storage and editing, later.  After considerable research, I am inclined to select either iMo

  • Report for courses

    Hi Experts, I need to generate a report shows the hierachy of Course Groups, Course Types and the last event date of the course types. A090 relationship(is owned by) need to be displayed also. If I use the standard report 'Course Hierachy', it will n

  • Freight Amount Posting.

    Dear all       I am use the Purchase account posting system when i want to add the freight on purchases at the time of GRN system is not allow me to post the transaction and giving the Error (Cannot Retrieve the tax information.)       I try this in

  • How to create "ALL" preferences of spotHealingBrushTool?

    When I select spotHealingBrushTool in an action I can only put the brush diameter, etc, but not the Mode:Normal Type: Content-Aware Sample All Layers: true ScriptListener does not detect it. Anyone has done this? selectTool('spotHealingBrushTool'); /

  • IPhoto Diet or equivalent for iPhoto 8?

    There used to be a freeware program called iPhoto Diet that eliminated the stores all of the duplicates iPhoto stashes away each time you edit or rotate a photo, which consumes an awful lot of hard drive space. It looks like it was last updated for i