Binnding matrix column with dbdatasource column

Hi experts,
Iam using a matrix to list the sales employeess...(similar to that of SalesEmployee master form ), iam bindng my columns with dbdatasource columns,
so when i bind a column with dbdatasource column of type numeric(19.6), default value of 0.00000 is getting displayed in the column, so how can i prevent displaying 0.00000 .
I want to only display the value if it is >0.
Regards,
RejishRajan.T.N

HI,
It is easy. if The cell type is Edit then you can control of the Supperssing Zeros.
Sample: (i know you have it already)
To do:
1. Create matrix add column type it_edit
2. load data
3. Set supresszeros to true of the cell !
        oColumn = oColumns.Add("QTY", SAPbouiCOM.BoFormItemTypes.it_EDIT)
        oColumn.TitleObject.Caption = "QTY"
        oColumn.Width = 40
        oColumn.Editable = True
        oColumn.DataBind.SetBound(True, "", "QTY")
       'load data
       For i As Integer = 1 To oMatrix.RowCount
            Dim oEditText As SAPbouiCOM.EditText = oMatrix.Columns.Item("QTY").Cells.Item(i).Specific
            oEditText.SuppressZeros = True
        Next
regards,
J.

Similar Messages

  • Draw Dynamic Column with Static Columns

    Hi All
    I have to show dynamic columns with static columns including column header and I am choosing the Cross Tab style. I have done this already in SSRS but failed to do in Crystal Report version (Crystal Report Basic for Visual Studio 2008).
    Name             Hair Color      City        Age           Mobile                        Email
    Jannie            Brown          Dublin        15         +353 122 1234567     Email Address
    John               Black            Dublin       20          +353 145 1234567      Email Address
    Dynamic Columns
    Name , Hair Color , City Age
    Static Column
    Mobile, Email
    I also face empty rows in cross tab report.
    Please help and give me a chance of thanks.

    Thank you very much for your kind response. Actually i have dynamic Store Procedure  results based on parameters and yes static column will never changed
    Store Procedure Result
    Mobile                        Age            Email                       Key              Value
    +3531221234567     15             Email Address         Name           Jannie
    +3531221234567     15             Email Address         Hair Color    Brown
    +3531221234567     15             Email Address         City              Dublin
    +3531451234567     20             Email Address         Name           John
    +3531451234567     20             Email Address         Hair Color     Black
    +3531451234567     20             Email Address         City              Dublin
    And I want to draw report in following style
    Name     Hair Color     City      Age      Mobile                       Email
    Jannie   Brown          Dublin   15     +3531221234567       Email Address
    John     Black             Dublin   20     +3531451234567       Email Address

  • Setting fixed width on columns with the Column Graph Tool

    Hi,
    I'm trying to perfect my charts a little.
    Right now the width of my columns using the Column Graph Tool seem to be dictated by how many columns I got in total. So if I only have two columns both get really wide. But if I have four, they look just nice. Is there any way to set a fixed width on columns with the Column Graph Tool?
    Thanks!

    What am I thinking.
    Select your graph double click the graph tool at the bottom of the dialog, enter the percentage you want the coulmns to be  and the percentage you want that cluster to occupy.
    Duh!

  • Match renamed column with source column name

    I have imported data into powerpivot from Analysis Services using MDX statement. After I imported data, I renamed several columns directly in powerpivot. Now, when somebody looks at this, he/she is not able to match the current list of columns with attributes
    in MDX since some of them are renamed in powerpivot.
    Same applicable for custom SQL Queries. 
    Is there an easy way to find match between source columns and power pivot columns if some columns are renamed in power pivot.

    Sathya,
    Is this still an issue?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • SharePoint 2013 unable to create new column with existing column name

    Hi Support,
    I'm currently having a problem in creating my first custom list in my SharePoint site. When I tried to create a new columns with existing name,  e. g "date reported" = Date/Time , "Due Date" =
    Date/Time 
    It's prompt the error like this " The page at sharepoint.itechdomain.com says: The Column name that you entered is already in use or reserved. Choose another name." I've read some forum, someone say's they need javascript command
    to fixs the problem. If these the solution for my problem, I'm not familiar on how to used javascript in my sharepoint. 
    Kindly help me how to fixs my problem as soon as possible.
    Your comment or any suggestion would be greatly appreciated.
    Thank you 
    Best Regards,
    Bishelp

    I already tried this procedure, but it doesn't work. Still the prompt says " The
    Column name that you entered is already in use or reserved. Choose another name". Is there any solution for this kind of problem?
    Let me know, 
    Thank you

  • Want to update a column with  different column of same table

    I have a table TEST_CDR which is having 250 millions records also having partition by hash.
    there are two column in this table ID and CDR_ID want to update ID in CDR_ID but it take too much time like 24 hours or more.
    please suggest me a simple way.

    Hi,
    You can try this. but be careful about your backups and go through CTAS,nologging and parallel concepts...
    Please refer this link.
    http://www.dba-oracle.com/t_fast_batch_updates_ctas.htm
    http://www.dba-oracle.com/t_nologging_append.htm
    http://www.dba-oracle.com/t_efficient_update_sql_dml_tips.htm
    http://eriglen.blogspot.in/2011/08/ctas-create-table-as-select-with.html
    1.CTAS with nologging and parallel..
    SQL> create table test_cdr_1(id,cdr_id) nologging parallel as select id,id from test_cdr;
    2.rebuild indexes, triggers and constraints to test_cdr_1
    3.rename test_cdr to bkup_test_cdr;
    4.rename test_cdr_1 to test_cdr;
    Regards,
    ragunath.

  • How to use SQL*Loader to load XMLType Column with other columns?

    Hi,
    I am trying to use sqlldr to load an XML file into a table with an XMLType column. I have found plenty of examples where the entire table is an xmltype, but I would like to load many XML objects into a generic table for processing with one XMLType column and many other columns to identify the load. As a simple example, I have one constant column which I want to set during the upload.
    The following example does not work :(. No errors either.
    create table xml_upload
    (upload_type varchar2(10) not null,
    xml_data XMLType)
    my control file:
    LOAD DATA
    INFILE * append
    INTO TABLE xml_upload
    XMLType(xml_data)
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
    upload_type constant MARKET,
    xml_data
    BEGINDATA
    <SALE_ORDER>
    <CUST_CODE>TIM</CUST_CODE>
    <ORDER_NUM>1234></ORDER_NUM>
    </SALE_ORDER>
    $ sqlldr my.ctl
    SQL*Loader: Release 10.2.0.4.0 - Production on Sun Sep 27 22:51:52 2009
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    Commit point reached - logical record count 4
    SQL> select * from xml_upload;
    no rows selected
    SQL>
    Any ideas on how I can do this? Am I missing something...
    I have also been playing with the lobfile clause of sqlldr, also without any success...
    Current database version is 10g R2.
    Thanks,
    Tim.

    Hi,
    I tried the same example as it is. but, I am getting the following error:
    SQL*Loader-350: Syntax error at line 6.
    Expecting valid column specification, "," or ")", found "filler".
    ,file_name  char(100) fillerThe table I created is:
      create table xml_upload
    (upload_type varchar2(10) not null,
    xml_data XMLType)The control file I used is:
    LOAD DATA
    INFILE *
    INTO TABLE xml_upload TRUNCATE
    upload_type constant 'MARKET'
    ,file_name  char(100) filler
    ,xml_data LOBFILE (file_name) TERMINATED BY EOF
    BEGINDATA
    test.xmlThe database I am using is 10gr2

  • Columns with span columns CS5

    In a 2 column layout in CS5, how would I know if text is in first or second column, when there are span columns text which add to the column count

    Hi
    I tried to do with this code.
    if (app.selection.length === 1 && app.selection[0].hasOwnProperty('baseline')) {
         var sel = app.selection[0];
         alert(which_column(sel));
    function which_column(sel){       
         var sel_indx = sel.texts[0].index;
         var parent_tx_column = sel.parentTextFrames[0].textColumns;
         var columns_count = sel.parentTextFrames[0].textFramePreferences.textColumnCount;
         for (var i=0, iL=parent_tx_column.length; i < iL ; i++) {
              if (sel_indx < parent_tx_column[i].characters[-1].index){
                   var is_span_column = sel.spanColumnType === SpanColumnTypeOptions.SPAN_COLUMNS ? " (SpanColumn)" : "";
                   var result = "in Column No."+(i+1)+is_span_column;
                   return result
    This snippet returns like below
    1. 1st column and isSpanColumn
    2. 2nd column
    cont...
    thankyou
    mg.

  • How to combine looping column with calculated column

    Dear Gurus,
    I have a report that contains number of sale items in each plant. And plant (0PLANT) is a master data. I have to calculate Accumulate Total as below:
         Plant                         
    Date     Mall 6     Pinklao     Siam     Mini L/P     Total     Acc. Total
    1     135,260     186,170     103,833     145,636     570,899     570,899
    2     32,043     22,772     29,587     19,098     103,500     674,399
    3     49,477     48,919     20,206     23,587     142,189     816,588
    4     33,937     32,399     30,520     30,710     127,566     944,154
    In the column section, I have put the Quantity under Key Figure Structure and put Plant upper the it, so I get the result as below
         Plant                    
    Date     Mall 6     Pinklao     Siam     Mini L/P     Total
    1     135,260     186,170     103,833     145,636     570,899
    2     32,043     22,772     29,587     19,098     103,500
    3     49,477     48,919     20,206     23,587     142,189
    4     33,937     32,399     30,520     30,710     127,566
    I have no idea how can I put the Acc. Total to the report. Please suggest me for this issue. I'm so new for BW.
    Thanks in advance
    Edited by: Sukanya Nawnaung on Apr 24, 2008 6:04 AM

    Not knowing your tables I do not know the answer as it is not obvious from your scripts what the join between the two data sets would be??
    If you can tell me that then you can easily combine the two with an in-line view or using the new WITH... syntax.
    Otherwise, I see that the only difference between the two joins is;-
    1st WHERE DR_ACC = DECODE(DR_ACC,*'TXN'*,DR_ACC)
    2nd WHERE DR_ACC = DECODE(DR_ACC,*'OFS'*,DR_ACC)
    If you make this (don't understand the need for the decode, why is it here?!); -
    DR_ACC in ('TXN','OFS')
    And then use a case statement if you need to seperate out your two pairs of columns; -
    case when DR_ACC = 'TXN' then TXN_BRANCH else null end as "Transaction Branch" (repeat principal for other 3 columns)
    case when DR_ACC = 'OFS' then A.OFS_BRANCH else null end as "Offset Branch", (repeat principal for other 3 columns)
    Make sense?
    regards,
    Robert.

  • Transpose rows to columns with numeric column name

    I am trying to transpose row to columns.
    Here is my data having 3 columns (date, last_retry and count(*) )
    Date last_retry count(*)
    1/2/06 2 13
    1/2/06 1 5
    5/5/06 1 12
    5/5/06 2     9
    Desired Output with columns ( date, 1, 2)
    Date 1 2
    1/2/06 5 13
    5/5/06 12 9
    Here is my query which doesn't work
    select trunc(Date),
    max(Decode(last_retry,'1',count(*))) as 1,
    max(Decode(last_retry,'2',count(*))) as 2
    from retry_state
    1st problem: How do I transpose if this is not correct?
    2nd problem: 1 cannot be named as column name, how can I name the columns
    3rd problem: Suppose I am selecting this data and loading into a table. Now can
    the data be loaded during select as well as transposed at the same time or would I need to create a view to load the data first into table and then perform transpose?

    hi,
    this will transpose your data and insert into the table:
    INSERT INTO transposed_table
    (SELECT my_date,
    MAX(DECODE(last_retry,1,cnt,0)) AS "1",
    MAX(DECODE(last_retry,2,cnt,0)) AS "2"
    FROM retry_state
    GROUP BY my_date)
    note: to avoid problem and confusion, i renamed the fields DATE and COUNT(*) to MY_DATE and CNT respectively. You should avoid using reserved words as your fields such as DATE!
    hope this helps.

  • Matrix report data with summary column in excel format

    Hi ,
    I want to display output of matrix report with summary column in excel format.
    I have tried using spreadsheet but column header and actual data is displaying in proper order.
    Please tell me the way how to do this ASAP.
    Thanks in advance.

    Hi ,
    I want to display output of matrix report with summary column in excel format.
    I have tried using spreadsheet but column header and actual data is displaying in proper order.
    Please tell me the way how to do this ASAP.
    Thanks in advance.

  • Problem to update UDO-recordsets using a matrix with DBDataSource

    Hello,
    I've got a problem with updating recordsets in an UDO-Table using DBDataSource.SetValue().
    Special szenario: I use a matrix bounded with DBDataSources. Adding new records and loading them via DBDataSource.Query() with conditions works fine. The UDO object type is "Document" without lines.
    In the simple way now I load just one record and after this I was trying to set an "message" to an simple, editable edittext-column via calling:
    oDBDataSource.SetValue("U_Message", 0, "Hello world");
    oMatrix.LoadFromDataSource();
    Now it's visible in the matrix.
    But when I call update via clicking the update-button, B1 do say, everything was ok (green status-message). Reloading this recordset you can see: it was not stored in the database
    Even not after:
    oMatrix.FlushToDataSource();
    As a workaround I do write the "message" via using Cell.Specific.
    Can anybody help me?
    I'am using SBO 2005 A SP 01 PL 39
    Edited by: Christian Bührig on Mar 18, 2008 4:48 PM

    look at
    New Row in Matrix is a Duplicate and Cannot update Object with new Row
    the next way is do it with recordset and directly insert to table.
    hope it helps
    Petr

  • Compare a varchar2 segment column with a date column

    Dear All ,
    i have a segment column with datatype varchar2 with data sample like '2013/06/09 00:00:00' , i want to compare this column with date column
    i tried many ways of conversion but not working like
    select to_date(TO_NCHAR(substr('2013/06/09 00:00:00',1,11),'DD-MM-YY'))DATE_C from dual ---> giving invalid number
    select TO_TIMESTAMP(TO_NCHAR(substr('2013/06/09 00:00:00',1,11),'DD-MM-YY'))DATE_C from dual ---> giving invalid number
    can i have any suggestion for that please
    thanks & best regards

    Hi,
    Have you tried:
    SELECT TO_DATE(SUBSTR('2013/06/09 00:00:00',1,10),'YYYY/MM/DD') DATE_C FROM dual
    Octavio

  • Blank columns with title

    Hi All,
              How do I create a blank column with the column name in the report?
            I tried with "structure-new selection" with the report name(Structure being Key Figures)- the system pops out an error message stating that it needs unique value  for each cell.
    Thanking in advance.

    Thanks Bhanu. It did work.
    I did try query properties suppression zeroes for both rows and columns with Active =0 but it is not suppressing the zeroes.
    Thanks again.

  • Matrix exporting to excel with empty columns, with page break option of "Between each instance of a group" selected.

    I am working with Report Builder 3.0 I am using a matrix to produce grouped data on separate worksheets in excel.
    The select is:
    SELECT ID, Measurement, Value, [Date] FROM Measurements_Report. (please ignore the underscores they are just for formatting) 
    The contents of the Measurements_Report table:
    ID__Measurement__Value__[Date]
    1___Hot_________33_____10/1/2014
    2___Hot_________44_____10/2/2014
    3___Cold_________55_____10/2/2014
    The matrix contains a single row group based on the field "measurement". The Measurement group has the page break option of "Between each instance of a group" selected. 
    There is a column group based on the field "Date". 
    When this is matrix is exported to excel on the first worksheet (Hot) there are three columns as shown below:
    ID__10/1/2014____10/2/2014___10/2/1014
    1___33
    2_______________44
    Notice the last column doesn't have a value.
    On the second worksheet (Cold) there are also three columns as shown below:
    ID__10/1/2014___10/2/2014___10/2/1014
    3__________________________55
    This time notice there is only one row and only a value in the last column.
    I only want the columns with data for that worksheet to show up. How can I remove these empty/duplicate columns? Hopefully there is a simple fix. Thanks ahead of time.

    With the following contents of the Measurements_Report table:
    ID__Measurement__Value__[Date]
    1___Hot_________33______10/1/2014
    2___Hot_________43______10/1/2014
    2___Hot_________44______10/2/2014
    3___Cold________55______10/2/2014
    Returns on the first tab (Hot):
    ID__10/1/2014____10/1/2014____10/2/2014
    1___33
    2_________________43
    2______________________________44
    In the excel worksheet it contains a separate column for each date with a value. Thanks again!
    Why is the same date repeating on multiple columns? Do you've the time part also returned from database?
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

Maybe you are looking for

  • Record with highest sy-tabix

    Hi, In an internal table I have 10 records for a field like A A B C D E E D E D Is it possible to get the records D and E which has highest sy-index. good solution will be rewarded. Thanks and Regards, Neerup.

  • How to open a Poplist

    Hi Experts, I am working in Oracle 10g. I have a doubt regarding the poplist in oracle forms. My Question is, How to open and close a poplist through keyboard when a cursor navigates to an item? If tab or enter key is pressed the cursor goes to the n

  • Is There An App For That?

    Just received my new iPhone 4S Friday.  This is my first iPhone.  I've been a Verizon customer for many years (GTE MobleNet) and this is the first time I been able to get an iPhone.  Two quick app questions.  I had the first Motorola Droid and instal

  • Document in xml - Not serializable?

    Hi, I was working with the Document in xml. I tried to serialize it, but it seems that the implemantation of it is not serializable. The problem is that the object is created with a factory method, so also inheriting it is no use, since the creation

  • Polishing the Clamshell's outer case

    I recently acquired a very clean iBook SE 466 Graphite. It is in excellent cosmetic condition but on the, white part of the upper case there are a few scuffs, not even scratches. Other than these the case has that nice unblemished icy glean to it. Th