Display query columns in horizontal

Hi all
I'm creating a report using sql commands only(no report builder). I'd like to have my columns to be displayed in horizontal followed by its value. So far I've made it, however I can't get them to be displayed well where all the columns are in the same position as well as the results.
                 HECS:Higher Education Cafetaria Service
                              Restaurant and Bar
Membership Report
Date:DateVar
     Member ID:        11
     Member Name:Donald Anatidae                      Position:Senior Lecturer
     Institution Name:UVan                  Department:Department of Computers
     Phone:03-6355-9876                                     Employment:Tenured
     Annual Fee:   $225.25                              Monthly Fee:     $1.88
     GST:    $22.53                                             GST:    $20.65
     Annual Fee|(including GST):   $247.Monthly Fee|(including GST):    $20.65
-- Declaring variables
COLUMN Date NOPRINT NEW_VALUE DateVar
COLUMN ID NOPRINT NEW_VALUE IDVar
COLUMN Name NOPRINT NEW_VALUE NameVar
COLUMN Department NOPRINT NEW_VALUE DepartVar
COLUMN Phone NOPRINT NEW_VALUE PhoneVar
COLUMN Institution NOPRINT NEW_VALUE InstiVar
COLUMN Position NOPRINT NEW_VALUE PosVar
COLUMN Employment NOPRINT NEW_VALUE EmployVar
COLUMN Annual_Fee NOPRINT NEW_VALUE AnnualVar
COLUMN GST NOPRINT NEW_VALUE AGSTVar
COLUMN Annual_GST NOPRINT NEW_VALUE AnnuaGSTVar
COLUMN M_GST NOPRINT NEW_VALUE MgstVar
COLUMN Month_Fee NOPRINT NEW_VALUE MonthFeeVar
COLUMN Monthy_Gst NOPRINT NEW_VALUE MonthGstVar
BREAK ON ID SKIP Page
TTITLE CENTER 'HECS:Higher Education Cafetaria Service' SKIP 1 -
       CENTER 'Restaurant and Bar' SKIP 2 -
       LEFT 'Membership Report' SKIP 2 -
       LEFT 'Date:'DateVar SKIP 2 -
       LEFT COL 6 'Member ID:'IDVar SKIP 1 -
       LEFT ------------------------------------------------------------------------------ SKIP 1 -
       LEFT COL 6 'Member Name:' NameVar RIGHT 'Position:' PosVar SKIP 1-
       LEFT COL 6 'Institution Name:'InstiVar COL 15 RIGHT 'Department:'DepartVar SKIP 1 -
       LEFT COL 6 'Phone:'PhoneVar COL 15 RIGHT 'Employment:' EmployVar SKIP 1 -
       LEFT COL 6 'Annual Fee:'FORMAT $9,990.99 AnnualVar  -
       RIGHT 'Monthly Fee:'FORMAT $9,990.99 MonthFeeVar SKIP 1 -
       LEFT  COL 6 'GST:'FORMAT $9,990.99 AGSTVar  -
       RIGHT 'GST:'FORMAT $9,990.99 MonthGstVar SKIP 1 -
       LEFT ------------------------------------------------------------------------------ SKIP 1 -
       LEFT COL 6 'Annual Fee|(including GST):'FORMAT $9,990.99 AnnuaGSTVar  -
       RIGHT 'Monthly Fee|(including GST):'FORMAT $9,990.99 MonthGstVar  SKIP 1 -
       LEFT -------------------------------------------------------------------------------
[\pre]
I'd like to know is whether there is another way to display the columns in horizontal.
Thanx                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

He gave you the general idea. The following takes it a step further.
scott@ORA92> CLEAR  COLUMNS
scott@ORA92> TTITLE OFF
scott@ORA92> COLUMN today NEW_VALUE DateVar
scott@ORA92> SELECT SYSDATE AS today FROM DUAL
  2  /
TODAY
17-APR-2006
scott@ORA92> TTITLE CENTER 'HECS: Higher Education Cafetaria Service' SKIP 1 -
     CENTER 'Restaurant and Bar' SKIP 2scott@ORA92> COLUMN membership_report HEADING 'Membership Report||Date: &DateVar|'
scott@ORA92> SELECT    'Member ID:   ' || e.empno
  2           || CHR(10)
  3           || '-------------------------------------------------------------'
  4           || CHR(10)
  5           || 'Member Name: ' || RPAD (e.ename, 20)  || 'Position:    ' || e.job
  6           || CHR(10)
  7           || 'Institution: ' || RPAD (d.deptno, 20) || 'Department:  ' || d.dname
  8           || CHR(10)
  9           || 'Salary:      ' || RPAD (TO_CHAR (e.sal, '$9,990.99'), 20)
10           || 'Commission:  ' || TO_CHAR (e.comm, '$9,990.99')
11           || CHR(10)
12           || '-------------------------------------------------------------'
13           || CHR(10)
14           || 'Annual Fee:  ' || RPAD (TO_CHAR (e.sal, '$9,990.99'), 20)
15           || 'Monthly Fee: ' || (TO_CHAR (e.sal/12, '$9,990.99'))
16           || CHR(10)
17           || '-------------------------------------------------------------'
18           || CHR(10)
19           || CHR(10)
20           AS membership_report
21  FROM   emp e, dept d
22  WHERE  e.deptno = d.deptno
23  /
                              HECS: Higher Education Cafetaria Service
                                         Restaurant and Bar
Membership Report
Date: 17-APR-2006
Member ID:   7369
Member Name: SMITH               Position:    CLERK
Institution: 20                  Department:  RESEARCH
Salary:         $800.00          Commission:
Annual Fee:     $800.00          Monthly Fee:     $66.67
Member ID:   7499
Member Name: ALLEN               Position:    SALESMAN
Institution: 30                  Department:  SALES
Salary:       $1,600.00          Commission:     $300.00
Annual Fee:   $1,600.00          Monthly Fee:    $133.33
Member ID:   7521
Member Name: WARD                Position:    SALESMAN
Institution: 30                  Department:  SALES
Salary:       $1,250.00          Commission:     $500.00
Annual Fee:   $1,250.00          Monthly Fee:    $104.17
Member ID:   7566
Member Name: JONES               Position:    MANAGER
Institution: 20                  Department:  RESEARCH
Salary:       $2,975.00          Commission:
Annual Fee:   $2,975.00          Monthly Fee:    $247.92
Member ID:   7654
Member Name: MARTIN              Position:    SALESMAN
Institution: 30                  Department:  SALES
Salary:       $1,250.00          Commission:   $1,400.00
Annual Fee:   $1,250.00          Monthly Fee:    $104.17
Member ID:   7698
Member Name: BLAKE               Position:    MANAGER
Institution: 30                  Department:  SALES
Salary:       $2,850.00          Commission:
Annual Fee:   $2,850.00          Monthly Fee:    $237.50
Member ID:   7782
Member Name: CLARK               Position:    MANAGER
Institution: 10                  Department:  ACCOUNTING
Salary:       $2,450.00          Commission:
Annual Fee:   $2,450.00          Monthly Fee:    $204.17
Member ID:   7788
Member Name: SCOTT               Position:    ANALYST
Institution: 20                  Department:  RESEARCH
Salary:       $3,000.00          Commission:
Annual Fee:   $3,000.00          Monthly Fee:    $250.00
Member ID:   7839
Member Name: KING                Position:    PRESIDENT
Institution: 10                  Department:  ACCOUNTING
Salary:       $5,000.00          Commission:
Annual Fee:   $5,000.00          Monthly Fee:    $416.67
Member ID:   7844
Member Name: TURNER              Position:    SALESMAN
Institution: 30                  Department:  SALES
Salary:       $1,500.00          Commission:       $0.00
Annual Fee:   $1,500.00          Monthly Fee:    $125.00
Member ID:   7876
Member Name: ADAMS               Position:    CLERK
Institution: 20                  Department:  RESEARCH
Salary:       $1,100.00          Commission:
Annual Fee:   $1,100.00          Monthly Fee:     $91.67
Member ID:   7900
Member Name: JAMES               Position:    CLERK
Institution: 30                  Department:  SALES
Salary:         $950.00          Commission:
Annual Fee:     $950.00          Monthly Fee:     $79.17
Member ID:   7902
Member Name: FORD                Position:    ANALYST
Institution: 20                  Department:  RESEARCH
Salary:       $3,000.00          Commission:
Annual Fee:   $3,000.00          Monthly Fee:    $250.00
Member ID:   7934
Member Name: MILLER              Position:    CLERK
Institution: 10                  Department:  ACCOUNTING
Salary:       $1,300.00          Commission:
Annual Fee:   $1,300.00          Monthly Fee:    $108.33
14 rows selected.null

Similar Messages

  • Displaying query columns in page header

    I have a 6i report, breaking on department, which shows the current department code and name in the page header, using a page-level summary column.
    Problem: there are department-level summary data (e.g. totals) that are printed after the detail lines, which sometimes spill over onto a new page; when this happens, the department code on the header of the continuing page is blank.
    Many thanks in advance.
    Andrew Hunter

    You can always use a PL/SQL package variable to store the last name and use srw.set_field() in the format trigger to display the value in the margin. When you execute srw.set_field() you use the PL/SQL package variable if the page summary is null and update the package variable if the page summary contains a value.

  • Horizontal display of column values

    HI All,
    I got a requirement in that i need to display one column horizontally
    Such as
           abc     abc1     abc2     abc3     abc4 --->Second column in my table
    1                         
    2                         
    3                         
    4--->First column in my table                          
                             Kindly help me with this.
    Edited by: Basva on Feb 22, 2011 10:47 PM

    Please consider the following when you post a question. This would help us help you better
    1. New features keep coming in every oracle version so please provide Your Oracle DB Version to get the best possible answer.
    You can use the following query and do a copy past of the output.
    select * from v$version 2. This forum has a very good Search Feature. Please use that before posting your question. Because for most of the questions
    that are asked the answer is already there.
    3. We dont know your DB structure or How your Data is. So you need to let us know. The best way would be to give some sample data like this.
    I have the following table called sales
    with sales
    as
          select 1 sales_id, 1 prod_id, 1001 inv_num, 120 qty from dual
          union all
          select 2 sales_id, 1 prod_id, 1002 inv_num, 25 qty from dual
    select *
      from sales 4. Rather than telling what you want in words its more easier when you give your expected output.
    For example in the above sales table, I want to know the total quantity and number of invoice for each product.
    The output should look like this
    Prod_id   sum_qty   count_inv
    1         145       2 5. When ever you get an error message post the entire error message. With the Error Number, The message and the Line number.
    6. Next thing is a very important thing to remember. Please post only well formatted code. Unformatted code is very hard to read.
    Your code format gets lost when you post it in the Oracle Forum. So in order to preserve it you need to
    use the {noformat}{noformat} tags.
    The usage of the tag is like this.
    <place your code here>\
    7. If you are posting a *Performance Related Question*. Please read
       {thread:id=501834} and {thread:id=863295}.
       Following those guide will be very helpful.
    8. Please keep in mind that this is a public forum. Here No question is URGENT.
       So use of words like *URGENT* or *ASAP* (As Soon As Possible) are considered to be rude.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Query Report - To display additional column in list selection box.

    Hi,
    There is query report where i want to display the additional column in list selection.
    Below is the system query report, where parameter passed is card code.
    When the cardcode - list selection is clicked system displays 2 columns i.e. Customer Code & No. of Records.
    Now in the same list selection; is it possible to display the customer name along with cardcode only for reference.
    SELECT T0.DocDate, T1.SlpName, T2.Name, T0.DocDueDate, T0.DocNum,    (CASE WHEN T0.DocStatus = 'O' THEN 'Open' ELSE 'Closed' END) AS Status,    T0.DocTotal FROM OQUT T0 LEFT JOIN OSLP T1    ON T0.SlpCode = T1.SlpCode LEFT JOIN OCPR T2 ON T0.CntctCode = T2.CntctCode WHERE T0.CardCode = N'[%0]'    ORDER BY T0.DocNum DESC
    Kindly let me know the details.
    Thanks & Regards,
    Yogesh Jadav

    Hi Yogesh Jadav,
    The answer is NO.  You may only display either code or name but not both.
    Thanks,
    Gordon

  • Displaying dynamic columns in the query output.

    Hello,
    Depending on current quarter output of the query would vary.
    If current quarter is 'Q1'
    O/p : InvQ1  Del  BackQ1  BackQ2  BackQ3  BackQ4
    If current quarter is 'Q2'
    O/p : InvQ1  InvQ2  Del  BackQ2  BackQ3  BackQ4
    If current quarter is 'Q3'
    O/p : InvQ1  InvQ2  InvQ3  Del  BackQ3  BackQ4
    If current quarter is 'Q4'
    O/p : InvQ1  InvQ2  InvQ3  InvQ4  Del  BackQ4
    So, out of 9 columns, 6 columns would display at any given time depending on the current quarter.
    Invoice of 4 quarters, Deliquency and Backlog of 4 quarters.
    I am not getting any way how to display dynamic columns or hide unwanted/blank columns.
    For the time being I have added all 9 columns in the query, and in the output unwanted columns shows blank.
    Can anybody please suggest me how to display only 6 columns in the output depending on current quarter.
    Thanks and Regards
    Shilpa

    Hello,
    This shouldn't be too difficult. Assuming you have a variable with the selected quarter, you may choose to display Inv (whatever that is) for quarters 1 through variable, Del, and Back for quarters variable through 4. You also need a drilldown on quarter in the columns (after the key figure structure). You would probably need to restrict 'Del' on the variable as well if you haven't already done it.
    Best regards,
    Christoffer

  • Content Query display multiple columns

    Hello,
    I am using a content query web part (in sharepoint 2013) to display a list from another site. The problem is that I don't see enough info from that list because I can display maximum 2 columns.
    Is it possible to display more columns from this list with the Content query web part? I would like to display all the columns from this list. Do i need to make a display template or something? 
    Thanks. 

    You have to customize the CQWP.
    Please check the below link
    http://pholpar.wordpress.com/2010/01/21/displaying-results-in-multiple-columns-using-the-content-query-web-part/
    Other option is you ca use Dataview webpart to show the list details from one site to other site
    http://www.learningsharepoint.com/2012/08/12/sharepoint-2013-add-dataview-webpart-with-sharepoint-designer-2013/
    http://sharepointgeorge.com/2009/display-sharepoint-list-site-data-view-web-part/
    MCTS,MCPD Sharepoint 2010. My Blog-
    http://www.sharepoint-journey.com
    If a post answers your question, please click "Mark As Answer" on that post and "Vote as Helpful

  • BEx Query Columns come back in different Order after drill?

    I have a strange effect when I work with BEx Queries in Xcelsius.
    On default, I open and display the Bex Query "A". Columns are in order like defined in BEx Designer (Column1, Column2, Column3.....)
    I want to do a drill, and so in Xcelsius BEx Connection settings I set the Filter on Field "X" in the XLS and in "Query Usage" I addionally apply the setting "Refresh when Trigger Cell "X" changes".
    Starting the report works fine. But when I do the drill and the Query refreshes, the BEx Query Columns come back in different order?!?
    It looks as if Column 2 and Column 3 are exchanged.
    How can I fix that?
    Thx,
    B. Wegner

    After some testing....
    This issue is independent from the filter value. But it only seems to occure when a second BEx Query connection is defined.
    The BEx Query Data Columns come back in different order after
    - Refresh on Trigger
    - Refresh after XY Seconds
    Any Ideas?
    Edited by: B.Wegner on Nov 16, 2010 3:42 PM

  • Display the output in horizontally insted of vertical as per date

    hi
    experts
    display the output in horizontally insted of vertical as per date.
    Date :    From ..........  To  .............
    work center         yeild to confrorm                                    date
    W1                         288                                               1.4.2009
                                  256                                                3.4.2009
    Eg
    workcenter    date :   01.04.2009      2.04.2009    3.04.2009    4.04.2009  .......................
      W1                           288                                 256  
        w2                           234                345                               345

    Hi,
    Incase you have to display this in an ALV; then your internal table will be dynamic.
    Your internal table will consists of following fields
    Work Centre
    Date1
    Date2
    DateN
    The date columns will not be of type d but rather character as in this columns you have to store the workcentres in them.
    Create your dynamic internal table using the class CL_ALV_TABLE_CREATE and method CREATE_DYNAMIC_TABLE.
    You will have to create a fieldcatalog table and pass to the method.
    Then use the dynamic internal table created to store your data horizintally against each date column.
    Display the output in an ALV.
    Pass the date values as the description for each date column in the ALV.
    I hope you get the concept.
    Regards,
    Ankur Parab
    Edited by: Ankur Parab on Jun 23, 2009 4:24 PM

  • Conditionally Display Report Column

    hi,
    i want to display report column Conditionally .
    i have created a report . there are multiple column Like. BILL NO,BILL DATE, PAYMENT MODE, CHEQUE NO, CHECQUE DATE, TOTAL AMOUNT
    Now i want to display only BILL NO,BILL DATE, PAYMENT MODE, TOTAL AMOUNT when i select PAYMENT MODE Cash in Select List ITEM
    And
    i want to display only BILL NO,BILL DATE, PAYMENT MODE, CHEQUE NO, CHEQUE DATE,TOTAL AMOUNT when i select PAYMENT MODE Cheque in Select List ITEM
    How Can i Conditionally Display Report Column.
    Thanks
    Manoj KAushik

    Hi,
    try this as report query - pl/sql function returning select statement.
    declare
         qry_str varchar2(1000);
    begin
       if :p1_select_list = 'PAYMENT MODE' then
            qry_str := 'select BILL NO,BILL DATE, PAYMENT MODE, TOTAL AMOUNT from yourTable';
       else
           qry_str := 'BILL NO,BILL DATE, PAYMENT MODE, CHEQUE NO, CHEQUE DATE,TOTAL AMOUNT';
        end if;
         return qry_str;
    end; Regards,
    Shijesh

  • SM37 - Not displayed all columns in results

    Hi all,
    I would like to ask you for help - I need to download some data from BSEG. Via SE16 I define criteria in BSEG (customer numbers, fiscal year etc.) and via Setting - List format - Choose fields select 5 columns that I need to have as output.
    If I use background processing, I don't have displayed only 5 columns that I need, but 64 from 285 fixed columns. The columns that I need, have higher number than 64 therefore they aren't displayed.
    Is there any possiblity how to display all columns?
    Thank you in advance.

    When you are submitting the job in background by exexuting your query from Sq01 or Tr.code , a screen will pop-up ask for you device name, on the same screen you’ll see properties hit that, it’ll take you to another screen and change the report format 65 and 200 or 65 and 200. It depends on your out put device . You can only display report till 255 . If you want to active ALV functional enable in background spool job you have to use extracts for that . So you can download your data in correct format.
    You can also decrease the length of variables in query so within 255 characters you can see all report columns. 
    Hope this’ll help you .
    Hope this’ll give you idea!!
    <b>P.S award the points.</b>
    Good luck
    Thanks
    Saquib Khan
    "Some are wise and some are otherwise"

  • How to display the column names of a table in the output

    Hi,
    I want to display the name of the columns of the table without using literals in a abap report.
    EX: Consider the table KNA1
    KUNNR NAME  ADDRESS
    I want to display the column names in the above fashion without using hardcoded write statements.
    Thanking in anticipation

    You can use this FM <b>DDIF_FIELDINFO_GET</b> It gives you all the names related to fields in a table -:)
    Greetings,
    Blag.

  • How could I display some columns in a JTable?

    Help, please:
    I got a Table data(using AbstractedTableModel), and I can display all rows and columns. How can I just display several columns and all rows? Should I delete some columns from table and fireChanges or what? but I need these columns later. Make sense? any ideas?
    Thanks for any helps.
    Royan

    this worked for me,
    import java.util.*;
    import java.io.*;
    import java.net.URL;
    import java.sql.*;
    import javax.swing.table.*;
    import javax.swing.*;
    public class HideTableColumns
          public HideTableColumns()
          private void initialize()
          DefaultTableModel m = new DefaultTableModel();
          try {
             java.util.Vector data = new java.util.Vector();
             java.util.Vector headers = new java.util.Vector();
             String s = "";
             headers.addElement( "OrderID" );
             headers.addElement( "CustomerID" );
             java.util.Vector datum = null;
             datum = new java.util.Vector();
             s = "OrderID";
             datum.addElement( s );
             s = "CustomerID";
             datum.addElement( s );
             data.addElement( datum );
             m.setDataVector( data, headers );
             for( int r = 0; r < m.getRowCount(); r++ )
                for( int c = 0; c < m.getColumnCount(); c++ )
                s = ( m.getValueAt( r, c ) ).toString();
                System.out.println( s );
          } catch( Exception e ) {
             System.out.println(e.getMessage());
             e.printStackTrace();
          JFrame f = new JFrame();
          JPanel p = (JPanel) f.getContentPane();
          JTable tb = new JTable( m );
          TableColumn col = tb.getColumnModel().getColumn(1);
          col.setPreferredWidth(0);
          col.setMinWidth(0);
          col.setMaxWidth(0);
          p.add( tb );
          f.pack();
          f.show();
          public static void main( String[] args )
          HideTableColumns d1 = new HideTableColumns();
          d1.initialize();
    }

  • Displaying 2 columns in a single column using HTML section of reports.

    Hi Team,
    I have a requirement in which we need to display 2 columns in the same column of OBIEE report. At present we have 2 columns as 2 different columns.
    For example if i have a column A which is used as @A in html section i need the new column to have @A + @B where B is another column in database.
    Can i concatenate 2 columns in a single column ?
    Thanks,
    Ritesh

    first select column 1 and column 2 in criteria.
    go to reaults are add narrater view.
    in narrater view type.
    @1@2[br/]
    set number of rows
    this should work in narrator.
    Edited by: user10615659 on May 20, 2013 4:30 PM

  • Problem display query in web

    Hi experts
    We trying to see query  to the web, from query designer we are klicking to display query to web, but that open only balnk page.
    Also need a detail or step by step help link for WAD
    Please help me and get points
    Thanks in advance

    Hi,
    http://help.sap.com/saphelp_nw04s/helpdata/en/1a/456a3badc1b315e10000000a114084/frameset.htm
    Web Application Designer
    urgent help on WAD(web application designer
    WEB APPLICATION DESIGNER
    WAD(Web Application Designer)
    Check these link's on Web application Desining:
    Web Application Designer for Beginners
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/749a4622-0a01-0010-36bf-b6b30a2a3a22
    http://service.sap.com/bi -> SAP BW InfoIndex -> Web Application Design (3.x)
    http://help.sap.com/saphelp_nw04/helpdata/en/1a/456a3badc1b315e10000000a114084/frameset.htm
    Have a look at these links
    http://help.sap.com/saphelp_nw04/helpdata/en/1a/456a3badc1b315e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/47/d4fed1c60a9743ade3b4cf306d5d48/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/40/8b174082fe1961e10000000a155106/content.htm
    Gothrough the how to guide "How to enhanace the standard web template" for step by step procedure with the screen shots.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/dc1d9990-0201-0010-16aa-db3c4eb8b642
    cheers
    sunil

  • In ColumnChart, how to stop displaying small column for zero value?

    I'm trying to create a ColumnChart that does not display a column when the value is zero. The chart currently looks like this:
    This is a stacked column chart with red values representing Faults and green values representing Throughput. Each hour has an explicit value of zero for Faults. I don't want to see any red lines when the value is zero. Is there any way to accomplish this?
    My code looks like this:
    <mx:Script><![CDATA[
         import mx.collections.ArrayCollection;
         [Bindable]
         public var simpleStats:ArrayCollection = new ArrayCollection([
            {Hour:"0:00", Throughput:0, ThroughputThreshold:2000, Faults:0, MaxResponseTime:450, AvgResponseTime:200, MinResponseTime:180,
                 AuthenticationAcceptance:50, AuthenticationRejection:0, AuthorizationAcceptance:50, AuthorizationRejection:0},    
            {Hour:"1:00", Throughput:0, ThroughputThreshold:2000, Faults:0, MaxResponseTime:450, AvgResponseTime:200, MinResponseTime:180,
                 AuthenticationAcceptance:50, AuthenticationRejection:0, AuthorizationAcceptance:50, AuthorizationRejection:0},    
            {Hour:"2:00", Throughput:0, ThroughputThreshold:2000, Faults:0, MaxResponseTime:450, AvgResponseTime:200, MinResponseTime:180,
                 AuthenticationAcceptance:50, AuthenticationRejection:0, AuthorizationAcceptance:50, AuthorizationRejection:0},    
            {Hour:"3:00", Throughput:5, ThroughputThreshold:2000, Faults:0, MaxResponseTime:450, AvgResponseTime:200, MinResponseTime:180,
                 AuthenticationAcceptance:50, AuthenticationRejection:0, AuthorizationAcceptance:50, AuthorizationRejection:0},    
            {Hour:"4:00", Throughput:0, ThroughputThreshold:2000, Faults:0, MaxResponseTime:450, AvgResponseTime:200, MinResponseTime:180,
                 AuthenticationAcceptance:50, AuthenticationRejection:0, AuthorizationAcceptance:50, AuthorizationRejection:0}
      ]]></mx:Script>
                                     <mx:ColumnChart id="trafficChart"
                                        dataProvider="{simpleStats}"
                                        showDataTips="true" width="500" height="100%" seriesFilters="[]"
                                        type="stacked">
                                        <mx:verticalAxis>
                                            <mx:LinearAxis title="Messages" id="a1"/>
                                        </mx:verticalAxis>                                   
                                        <mx:horizontalAxis>
                                           <mx:CategoryAxis
                                                   id="TrafficTimeAxis"
                                                dataProvider="{simpleStats}"
                                                categoryField="Hour"
                                                />
                                        </mx:horizontalAxis>
                                        <mx:horizontalAxisRenderers>
                                            <mx:AxisRenderer axis="{TrafficTimeAxis}" canDropLabels="true"/>                                       
                                        </mx:horizontalAxisRenderers>                                            
                                        <mx:series>                                                                         
                                           <mx:ColumnSeries
                                                yField="Faults"
                                                displayName="Faults"
                                                fill="{sc2}"
                                                stroke="{s2}"
                                                 minHeight="0">
                                           </mx:ColumnSeries>                                                                                                          
                                           <mx:ColumnSeries
                                                yField="Throughput"
                                                displayName="Throughput"
                                                fill="{sc1}"
                                                stroke="{s1}"
                                                minHeight="0">
                                            </mx:ColumnSeries>                                      
                                        </mx:series>
                                     </mx:ColumnChart>

    Answered my own question!!
    The solution is to set the stroke for the ColumnSeries to {noStroke}, which I defined like this:
        <mx:Stroke id="noStroke" color="0xFFFFFF" weight="0"/>
    Note that if you define {noStroke} without a color property, black is used by default, which means that those columns that do appear show up in black stroke outline.
    If there's a more elegant solution to the problem, please let me know...

Maybe you are looking for

  • Two idocs are created for one output message type

    hi all, we are communicating our sap idocs to external system using ALE.It is working smoothly. Our problem raises here, .idocs are creating at the time of output type attachment for purchase orders.But rarely,two idocs are creating for one message t

  • Add one column of string to columns of integer

    Hi there, Could someone help please.  I would like to add one column of strings to a few columns of integer.                                                         --------- Added elements ------  20C=           100     101    102           20C=100

  • The start page of SAP web AS Java is not starting

    hi, i recently installed SAP Solution Manager 4.0 (ABAP+Java) and i cannot access the system information using a browser. my instance number is 02, my server name in sun-test and the ip address is 192.167.1.219 using http://192.167.1.219:50200 or htt

  • Brushes come out as solid circles instead of an even radial gradient

    All of my featherd brushes come out as solid circles instead of an even radial gradient.  How can I fix this problem? Here is the kicker, when I use the eraser tool I can use all the feathered brush. Thanks for your help!

  • Anyone else having weird playback issues? 10.1.0

       I've noticed that Logic makes a weird "hiccup", about 1-2 second after starting playback of a (one long) audio-file... (It sounds as if the audio file is cut, and repeats a 16th...) On the track I have a pitch-shifter inserted. (Vocal  + 18cent).