JexcelApi - AutoFilter in each column

Hi everyone, i need help to transport table in webdynpro to excel file. Before using JexcelApi, I using component from Tutorial Webdynpro Binary Cache and I have success using this component but the problem is arise when I know that the Office version that client using is Excel 2000, so i must use another way and I find JexcelApi. The problem is i need to export it into excel and create auto filter for each column. I have search in javadoc for this api, but i can't find this feature. Is jexcelapi can handle AutoFilter ? If can't, what trick to handle this ? Thank you
Best Regards,
Satria B

Hi everyone, i need help to transport table in webdynpro to excel file. Before using JexcelApi, I using component from Tutorial Webdynpro Binary Cache and I have success using this component but the problem is arise when I know that the Office version that client using is Excel 2000, so i must use another way and I find JexcelApi. The problem is i need to export it into excel and create auto filter for each column. I have search in javadoc for this api, but i can't find this feature. Is jexcelapi can handle AutoFilter ? If can't, what trick to handle this ? Thank you
Best Regards,
Satria B

Similar Messages

  • Multi-column Index vs One index for each column

    Hello everyone,
    i have one table about 20 000 000 rows, some developers have to generate reports on it and i want to create indexes on this table.
    The table has 34 columns, no primary key, no unique keys.
    The "where..." clause of the reports usually use 8 columns but some reports uses 8 + some other columns.
    can any one help me on what kind of indexes do i have to create?
    1. one index for each column used in "where clause"
    2. one index for 8 columns and some other indexes for other used columns
    3. one index for all columns
    or something else etc...
    br flag

    i have one table about 20 000 000 rows, some developers have to generate reports on it and i want to create indexes on this table.
    The table has 34 columns, no primary key, no unique keys.
    The "where..." clause of the reports usually use 8 columns but some reports uses 8 + some other columns.
    can any one help me on what kind of indexes do i have to create?
    1. one index for each column used in "where clause"
    2. one index for 8 columns and some other indexes for other used columns
    3. one index for all columns
    or something else etc...What's the version of your data base? what kind of database you have, DWH or OTLP? The answer might depend on the type of database as far as bitmap indexes might suit or might not depending if you are runing DWH or OLTP kind of database
    Let me suppose that you are runing OLTP database and you have a where clause with 8 columns.
    1) are all those where clause equalities (where col1 = and col2 =) or there are inequalities?
    2) could you evaluate the most repetitive columns?
    3) could you know the column that could have the best clustering factor (the column which most follow a certain order in the table)
    Based on that I would suggest to create one b-tree index having 8 columns (even though that it seems for me to high) this index should follow the following points:
    1) put the most repetitive column at the leading edge (and compress the index if necessary)
    2) put the columns that are used in equalitity predicate first
    3) put the column having the best clustering factor first
    The most precise index you have the best access you could gain.
    Of course that you have to know that an index access is not always good and a FULL table scan is not always bad.
    Best regards
    Mohamed Houri
    www.hourim.wordpress.com

  • Get frequent data for each column of a table

    What is the best way to get the most frequent data in each column of a table.
    we have around 25 tables and each table has around 20 columns , so rather than writing group by for each column of table , is there any easy way to find this?
    example we have table
    Column A       Column B         Column C
    Apple             Monday             Red
    orange            Tuesday            Green
    Apple              Monday            Red
    Lemon            Wednesday       Green
    Apple               Thursday         Red
    in this table, column A's frequnt data is Apple , column B's frequent data is Monday , Column C's frequnt data is Red
    Apple 3          Monday 2                  Red 3
    Orange 2        Tuesday 1                 Green 2
    Lemon 1          Wednesday 1         
                          Thursday 1
    Group by kind of query will give this result, but with 20 tables each having 20 - 30 columns if we need similar kind of result ..  is there any way to get this data.

    Hi,
    GROUP BY (using aggregate functions) is the best way to do what you described.
    PIVOT and UNPIVOT are probably what you'd want in this case.  The phrase "GROUP BY" may not actually appear in your code, but you'll essentially be doing a GROUP BY.
    Analytic functions (rather than aggregate functions) can do the job, too, but they'll be less efficient.  Analytic functions get you results about the groups, without losing each row's identify, but in this case, losing each row's identity is eactly what you want to do.  You only want 'Apple' to appear 1 time, not 3 times.
    The fact that you need to do the same query on 20 different tables suggests that there's something wrong with your table design.  Wouldn't it be better to have 1 big table, with a new column that has 20 unique values instead?
    I hope this answers your question.
    If not, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables involved, so that the people who want to help you can re-create the problem and test their ideas.
    Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
    Simplify the problem as much as possible.  For example, instead of posting a problem with 20 tables, each having 25 columns, post a similar problem involving, say, 2 tables, each with 3 columns.
    Always say which version of Oracle you're using (for example, 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • Dynamically color to each column in Cross-tab report

    Hello All,
    I am a newbie in Crystal report,from last few weeks, i am working on cross tab crystal report.i have a requirement to show color dynamically for each column.i am adding an attachment how i want it. i tried dynamic coloring using object field formula but it is showing red color to all data.i want red color data when in 2nd  cross tab report data is beyond upper or lower limit in first cross tab table. it will be very helpful if somebody will give me any clue on this.... i read so many articles now it seem like impossible for me..:(
    i am using visual studio 2010 and sap crystal report version 13.0.0.99 for visual studio 2010.

    Hello Manish,
    I have attached a sample report that does this. You will need to remove the .txt extension from the attached file to open it as an .rpt file.
    Please right click on one of the value fields of the first cross tab in the report > Format Field > Common > Suppress if Duplicated conditional formula.
    The nested formula is as follows;
    numbervar array l;
    numbervar array u;
    numbervar x:=CurrentColumnIndex;
    if GridRowColumnValue ('@limit') = 'lower limit' then
    (redim preserve l[x];
    l[x]:= tonumber(CurrentFieldValue))
    else if GridRowColumnValue ('@limit') = 'upper limit' then
    (redim preserve u[x];
    u[x]:= tonumber(CurrentFieldValue));
    false
    So it assigns each lower and upper limit value for each client (in the sample it is country) to an array using the cross tabs column index to index the array and it ends in False as we don't actually want it to suppress if duplicated. This nested formula is just used to generate the arrays of upper and lower values.
    In the second cross tab if you again right click on one of the value fields > Format Field > Font > Color you will see the following conditional formula;
    numbervar array l;
    numbervar array u;
    numbervar x;
    if not(tonumber(CurrentFieldValue) in l[CurrentColumnIndex] to u[CurrentColumnIndex]) then
    crred
    else
    crblack
    So this compaes the current field value to range generated by the 2 arrays and assigns a color based on whether or not it is in the range.
    Regards,
    Graham

  • How do I apply a simple formula to each column of a matrix?

    I thank you all who have provided me with answers to my previous questions. As you can see I am a beginner. My new question is: I am trying to scale and centre the data in my X matrix (by column) using X = Xi - 1(Xmean). How do I perform this for each column so that my new matrix is scaled and centred? I appreciate your help and thank you very much in advance.

    Simple array indexing using a for loop will work. Wire a 2d array into a for loop and the columns will be indexed automatically, then just do your math on that column and send it back out of the loop to get your 2d array back.
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
    Attachments:
    scale_data.vi ‏35 KB

  • How to display the value of a column in a chart at the top of each column

    How to display the value of each column in a chart at the top of each column?

    Like this?
    Done using chart Inspector.
    For details, see Chapter 7,  Creating Charts from Numerical Data in the Numbers '09 User Guide. The guide may be downloaded via the Help menu in Numbers.
    Regards,
    Barry

  • Download int table into csv file with each column in separate column in csv

    Hi All,
    I want to download the data in internal table to CSV file. but each column in the table should come as separate column in csv format.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          FILENAME                = GD_FILE
          FILETYPE                = 'ASC'
          WRITE_FIELD_SEPARATOR   = 'X'
        tables
          DATA_TAB                = I_LINES_NEW
        EXCEPTIONS
          FILE_OPEN_ERROR         = 1
          FILE_READ_ERROR         = 2
          NO_BATCH                = 3
          GUI_REFUSE_FILETRANSFER = 4
          INVALID_TYPE            = 5
          NO_AUTHORITY            = 6
          UNKNOWN_ERROR           = 7
          BAD_DATA_FORMAT         = 8
          HEADER_NOT_ALLOWED      = 9
          SEPARATOR_NOT_ALLOWED   = 10
          HEADER_TOO_LONG         = 11
          UNKNOWN_DP_ERROR        = 12
          ACCESS_DENIED           = 13
          DP_OUT_OF_MEMORY        = 14
          DISK_FULL               = 15
          DP_TIMEOUT              = 16
          OTHERS                  = 17.
      IF SY-SUBRC NE 0.
        WRITE: 'Error ', SY-SUBRC, 'returned from GUI_DOWNLOAD SAP OUTBOUND'.
        SKIP.
      ENDIF.
    with the above values passd , I am getting csv file but all the columns in one column separated by some square symbol.
    How to separate them into different columns.
    Thanks in advance
    rgds,
    Madhuri

    Below example might help you understand on dowloading CSV file:
    TYPE-POOLS: truxs.
    DATA: i_t001 TYPE STANDARD TABLE OF t001,
          i_data TYPE truxs_t_text_data.
    SELECT * FROM t001 INTO TABLE i_t001 UP TO 20 ROWS.
    CALL FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'
      EXPORTING
        i_field_seperator          = ','
    *   I_LINE_HEADER              =
    *   I_FILENAME                 =
    *   I_APPL_KEEP                = ' '
      TABLES
        i_tab_sap_data             = i_t001
    CHANGING
       i_tab_converted_data       = i_data
    EXCEPTIONS
       conversion_failed          = 1
       OTHERS                     = 2.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    DATA: file TYPE string VALUE 'C:\testing.csv'.
    CALL METHOD cl_gui_frontend_services=>gui_download
      EXPORTING
        filename                = file
      CHANGING
        data_tab                = i_data[]
      EXCEPTIONS
        file_write_error        = 1
        no_batch                = 2
        gui_refuse_filetransfer = 3
        invalid_type            = 4
        no_authority            = 5
        unknown_error           = 6
        header_not_allowed      = 7
        separator_not_allowed   = 8
        filesize_not_allowed    = 9
        header_too_long         = 10
        dp_error_create         = 11
        dp_error_send           = 12
        dp_error_write          = 13
        unknown_dp_error        = 14
        access_denied           = 15
        dp_out_of_memory        = 16
        disk_full               = 17
        dp_timeout              = 18
        file_not_found          = 19
        dataprovider_exception  = 20
        control_flush_error     = 21
        not_supported_by_gui    = 22
        error_no_gui            = 23
        OTHERS                  = 24.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Regards
    Eswar

  • How to put the proper header at each column in write to measurement file (.lvm) ?

    Hi,
           i would like to know one thing about the write to measurement file. Can i put the proper header at each column in write to measurement file (.lvm) ? and how can i do for it ? Could you show me a way to make it ?
    i am looking forward your kindly reply.
    thank you so much ..
    best regard,
    roxy

    Hi Mike,
                  Thank you very much for your help. It works .
    By the way, i would like to ask you about setting time interval. In the pic, X_Value column is for time column
    i would like to ask that when i use the write to measurement file, there got the x column that show time inside the excel file. In this column, i would like to set the time interval at every 210ms .The data may come in every msec but i just want to record the data at every 210ms .  for example, 210ms-420ms-630ms ..etc. how can i set it ?
    One more thing .. can i do it in graph as well ?
    i am looking forward your kindly reply.
    Thank you for your time.
    Best Regard,
    Roxy

  • Getting sum of each column in 2D array

    hi,
    i want to get sum of each column from 2D array. i did public static void main(String[] args) {
              double sum=0.0;
                   int[][] arr={
                             {1,2,8},
                             {2,2,3},
                             {2,2,5},
                             {1,2,8},
                             {1,1,9},
                             {2,2}
                   int i=0,j=0;
                   int len=arr.length;
                   while(j!=len){
                        sum=0;
                        for(i=0;i<arr.length;i++){
                        sum+=arr[i][j];
                        System.out.println("sum is:" +sum);
                        j++;
         }but it doesnot work for jagged array...somebody please help!
    thankx                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Stop assuming the rows in your matrix are all the same length. Arrays know how long they are. Use that information to determine if the current column exists in that row.

  • SMARTFORMS: 2 columns (each column consist 1 table) in 1 page

    Hi...,
    I've got problem that there is requirement to development smartforms as below format:
    Page 1
    column "A"                column "B"
    No. Description     Qty Amt     | No. Description     Qty Amt
    1. Desc1         1 100 |  5. Desc5               5 500
    2. Desc2         2 200 |  6. Desc6               6 600
    3. Desc3         3 300 |  7. Desc7               7 700
    4. Desc4         4 400 |  8. Desc8               8 800
    Page 2
    column "A"                column "B"
    No. Description     Qty Amt     | No. Description     Qty Amt
    9. Desc11       11 110 | 13. Desc15             15 510
    10. Desc12       12 210 | 14. Desc16             16 610
    11. Desc13       13 310 |
    12. Desc14       14 410 |
    It means that in one page consist of 2 column, A and B. Each column has each own table which is identically each other. After writing line item in column "A", then automatically  go to column "B" until finished.
    My question is how to solve it in smartforms?
    What I did before, I created internal table which is already containing the data like above then just pass through table in smartforms like usual.
    Is there any solution?
    Thanks a lot in advance.

    Hi Herlina,
    maybe you have to solve this problem like in Abap code. You know the number of column that you could set on your page, for example 4.
    So create a table with col_A and col_B, use the number 4 to set data into this table.
    Like that.
    loop at it_x.
      w_num = sy-tabix / 4.
      perform p_test_odd using w_num changing w_odd.
      if w_odd eq 'X'.
    *   move in col_b   
      else.
    *   move in col_a
      endif.
    endloop.
    (w_num is a type n)
    I didn't test the code, but I hope that will help you.
    Regards
    Frédéric

  • How can I select rows of cells and merge them vertically into one cell in each column?

    I'm working in CS4 and need to be able to select 2 to 6 rows of cells (with many columns) in a table and then merge the selected cells vertically into one cell in each column. A few cells in the chart will not need to merge so I must select the ones that do. I have almost 100 pages of charts with cells that need merged this way by Tuesday. Please help!
    Top chart example needs to change to the bottom example.
    Header 1
    Header 2
    Header 3
    Header 4
    Header 5
    Header 6
    100
    600
    300
    600
    20000
    120000
    2000
    500
    400
    50000
    10000
    5000
    3000
    200
    700
    67
    122
    600
    900
    100
    2
    7
    123
    1110
    Header 1
    Header 2
    Header 3
    Header 4
    Header 5
    Header 6
    100
    500
    200
    100
    600
    400
    700
    900
    300
    5000
    30000
    2
    600
    10000
    67
    7
    20000
    2000
    122
    123
    120000
    5000
    600
    1110

    SmartCellMerge may help you:
    http://www.indiscripts.com/post/2012/04/improve-the-way-you-merge-cells-in-indesign
    @+
    Marc

  • Query to find out two counts on each column

    Hi
    can you help for the below query.
    I wanted to find out two count values on each column, ie above or equal 5 count and below 5 count.
    Table:
    Q1 Q2 Q3 (Q1, Q2, Q3 are columns in a table.)
    1 3 5
    6 7 4
    8 5 1
    2 8 5
    Query should display, like below.
    Expected Result:
    colname >=5 count <5 count
    Q1 2 2
    Q1 3 1
    Q3 2 2
    Thanks in advance.

    The query itself can be simplified as follows:
    SQL> with t as (
      2       select level lvl from dual
      3       connect by level < 4)
      4  select colname
      5       , sum(case when val >= 5 then 1 else 0 end) "count >= 5"
      6       , sum(case when val < 5 then 1 else 0 end) "count < 5"
      7  from (
      8       select decode (lvl, 1, 'Q1', 2, 'Q2', 'Q3') colname
      9               , decode (lvl, 1, q1, 2, q2, q3) val
    10               , lvl
    11       from (select q1, q2, q3
    12                       from q),
    13                       t)
    14  group by colname, lvl
    15  order by lvl;Lines 8-10 is what pivots the cartesian join (CJ) of q & t. It helps to explain it by breaking down each part.
    The CJ produces (I added the lvl into the output below for explanation purposes):
    SQL> with t as (
      2       select level lvl from dual
      3       connect by level < 4)
      4  select q1, q2, q3, lvl
      5  from q,
      6  t;
            Q1         Q2         Q3        LVL
             1          3          5          1  <-- line a1
             6          7          4          1  <-- line a2
             8          5          1          1
             2          8          5          1
             1          3          5          2  <-- line a5
             6          7          4          2
             8          5          1          2
             2          8          5          2
             1          3          5          3
             6          7          4          3
             8          5          1          3
             2          8          5          3
    12 rows selected.and the CJ from above now allows us to pivot the results using the LVL column as the "decoding" key.
    SQL> with t as (
      2       select level lvl from dual
      3       connect by level < 4)
      4  select decode (lvl, 1, 'Q1', 2, 'Q2', 'Q3') colname
      5       , decode (lvl, 1, q1, 2, q2, q3) val
      6       , lvl
      7  from (select q1, q2, q3
      8         from q),
      9         t;
    COLNAME           VAL        LVL
    Q1                  1          1 <-- line b1
    Q1                  6          1 <-- line b2
    Q1                  8          1
    Q1                  2          1
    Q2                  3          2 <-- line b5
    Q2                  7          2
    Q2                  5          2
    Q2                  8          2
    Q3                  5          3
    Q3                  4          3
    Q3                  1          3
    Q3                  5          3
    12 rows selected.Line b1:
    The decodes hit line a1 of the CJ and since lvl = 1, we get colname=Q1 and the corresponding Q1 row value (val=1) of line a1 and finally the value of 1 for lvl.
    Line b2:
    For decode of line a2 of the CJ, lvl = 1 again and we get colname=Q1 and the corresponding Q1 row value (val=6) of line a2 and finally the value of 1 for lvl.
    Line b5:
    For decode of line a5 of the CJ, lvl = 2 and we get colname=Q2 and the corresponding Q2 row value (val=3) of line a5 and finally the value of 2 for lvl.
    The other rows of the pivoted result set above are obtained similarly and from this result we can now perform the aggregation for the final result.
    The WITH query is a called subquery factoring. It allows you to reference the subquery multiple places in the query.
    HTH

  • Is their any function in sql to identify datatype and length of each column

    Hi
    i need to identify datatype and length of each column in a table by using SQL query.
    plz assist me reagard the same.
    thanks

    Try this:
    SELECT column_name,
           data_type,
           data_length,
           data_precision
    FROM   user_tab_columns
    WHERE  table_name = <table_name>

  • Different calculation on each column in table in obiee 11g report??

    Hi ,
    I have to display values in a table for measures in obiee 11g report which should hold different calculation on each column. For ex:
    Result 1:
    Flag  Display   Transaction  Amount
      C      'A'                 2              3
      C      'B'                 3               0
           SubTotal1            5             3
    Result 2:
    Flag  Display   Transaction  Amount
      H      'C'                 2              11
      H      'D'                  0              0
           SubTotal2          2             11
    Result 3:
    Flag  Display   Transaction  Amount
      H      'C'                 1              0
      H      'D'                  1            0
           SubTotal3          2            0
    Final Result:(Transaction shd hold :-subtotal1-subtal2 , Amount should hold:-subtotal1-subtal2+subtota3)
    Flag   Display               Transaction         Amount
    C    'total tran(1-2)              3                     8
           Total Amnt(1-2+3)'     
    Please help me how can i achieve this ... ??? I am new to OBIEE 11g.
    Thanks,
    Pavi

    There are a few things I cannot understand; I'm assuming Transaction and Amount are fact columns. Then how do they have different values for the same values of Flag and Display ??
    Anyway, sub total can be achieved by going to edit view for the table and from columns and measures area under the Layout pane click on the summation icon and select After.  This will automatically display a grand total value at the bottom of each fact column.
    Now, to get the final result, say Total Transaction you can add a dummy column and edit its formula.
         Total Transaction = trans_subtotal1 - trans_subtotal2 and
         Total Amount = amt_subtotal1 - amt_subtotal2 + amt_subtotal3
         Now if we could say that trans_subtotal1 is the total of transaction value when Flag = 'C' or something like that then you can get this value of subtotal1 by using the formula FILTER(SUM("Subject Area"."Folder".Transaction Column") USING (DESCRIPTOR_IDOF("Subject Area"."Folder"."Flag column") = 'C')).  Similarly we can obtain subtotal2 and subtract them to get the total transaction value.  But I am sure if we can do this because for the same values of Flag and Display, Transaction has different values.  But by using the above formula, the values we obtain for subtotals 2 and 3 will be the same.  So calculating Total Amount would be a problem.
    The above formula is obtained by going to edit formula and selecting the filter option at the bottom of the edit dialog box.
    Hope I made my point clear

  • Different restrictions for each columns

    I would like to restrict each column in a standard report with different value, without using global filter.
    For Ex. I have a measure field called Amount. I would like to have 12 columns namely Jan, Feb etc... and then I would like to restrict each column with Month and I need to get the data for that particular month in the column.
    In this case I cant use cross tab report because crosstab doesnt support some of the features of SAP datasource at this point of time. I can create measures in SAP datasource with restriction. But performance of the query will be affected.
    In case of Web Intelligence we can create a formula with where clause for each of the column. But such thing i couldnt find in crystal report.
    I need experts help here.
    I appreciate your help.
    Thanks
    Raghu

    For January you would have the following
    if month(yourdatefield) = 1 then
    youramountfield
    else
    0
    For February you would have the following
    if month(yourdatefield) = 2 then
    amount
    else
    0
    continue on for each month. then place these fields across the report in the detail. Now for each record the value will go into the correct month column. Then you can suppress the detail section and summarize the total for each month if you want.

Maybe you are looking for

  • How to deploy a .war file in jboss  using eclipse

    Hi, iam new to using eclipse as my ide. i have installed the jboss ide in it. i have a servlet and i would like to deploy the servlet in jboss through eclipse, can some one help me with this

  • Issues with InFocus 4805 projector?

    Hello all, I am trying to display my 15in MacBook Pro onto my projector screen. Currently I am running the DVI to VGA adaptor (I believe it came with my notebook) into the cable that came with the projector (which I believe is VGA to DVI). When I plu

  • LDB FMF

    Hi, I have copied the ldb FMF to ZFMF to customize the slecetion screen. the program is working fine but i have a strange problem. i have opened 2 sap sessions with two differents users : user1 and user2 when i execute the program with the user1 (fir

  • ITunes 11.01 playlist view - strange behaviour

    iTunes 11.01 playlist view. I've selected a folder and want to create a new playlist. But New / Playlist is greyed out. This often happens. At other times it lets me create, but bounces straight into album view - pretty pictures, but not what I want

  • Adjustments to the Isolation Mode feature in AI CS4

    When entering isolation mode, nonselected objects are 'dimmed'. Is it possible to instead make them disappear (temporarily) altogether while in isolation mode?