Issue on sorting the legend

Hi guru's
Im trying to sort the legend for vertical stacked chart and seems it doesn't work.
The color order on the vertical stacked bars are oppositely shown , when compared to legend.
For example : If a legend shows green on top of the legend(1st) the green appers at the bottom in vertical chart. 
Thanks in advance..

Check this post
Bar-Line chart sorting
If helps pls mark also update with your solution that helps other :)

Similar Messages

  • Issue on sorting the fields in ALV Grid

    I have created a report in ALV Grid I have sorted the fields using slis_sortinfo_alv to avoid the duplicates . I could display the output in sorted fashion, but when I export it to a file it is displaying in the same fashion as it is in the database that is in the allowing duplicates.. I cant use DELETE ADJACENT DUPLICATES as it will delete the adjacent records . i need help from you guys please help me...

    Hi,
    As you have data in your internal table that is to be displayed in the alv grid display.
    So, instead you can sort the internal table on that field and then can delete the duplicate records comparing that very field.
    Use code:-
    sort <itab> by <field_name>. "to sort
    delete adjacent duplicates from <itab> comparing <field_name>. "to delete duplicate entries
    This will delete all the duplicates records for the column.
    Now you can use this internal table to display the data in the ALV grid.
    Or if you dont wish to delete the data from the initial internal table, then you can use a temporary internal table of same structure and use:-
    it_temp = itab.
    sort it_temp by <field_name>. "to sort
    delete adjacent duplicates from it_temp comparing <field_name>. "to delete duplicate entries
    Now you can use this internal table to be displayed as alv output.
    Hope this helps you.
    Thanks & Regards,
    Tarun

  • Sorting the Characters

    Hello friends,
    I have got an issue while sorting the Character values. Not sure why the same sort statement working differently with the same code in different systems (Dev and quality servers).Example of the issue is described below:
    In quality:
    We have internal table itab1 with the below format:
    field1     field2     field3
    1001     101        ab1 
    1001     101        ab2
    1001     101        ab3
    1001     101        ab4
    1001     101        ab5
    The above internal table, after sorting with field1 and field2 , it sorted as below: (SORT itab1 BY field1 field2)
    field1     field2     field3
    1001     101        ab5 
    1001     101        ab4
    1001     101        ab3
    1001     101        ab2
    1001     101        ab1
    Whereas, in dev server, it is not getting sorted, since the values inbotht the fields are same. And this is how it should work in quality server.
    Could you please helpme in finding out the reason? Thanks in advance.

    Hi Kavi,
    Do as Dengyong said use SORT with STABLE.
    this link will help you.
    Difference Between SORT and SORT STABLE - Code Gallery - SCN Wiki
    IF I did not know STABLE, I would use SORT itab1  by field1 field2 field3.
    thanks,
    vidyasagar

  • Issue with sorting results on the basis of specfic values.

    Hello,
    I written an sql that will sort the results on the basis of values defined in 'IN' clause. I have made use of CASE statement in ORDER BY clause. Its not functioning. My code is:
    SELECT GWLO.productcode,
              GWLA.parentsampletype,
              GWLO.sampletype SampleType,
              max(GWLA.loginid) Loginid,
              max(GWLA.modifiedts) modifiedts
         FROM gwloginattribvars GWL,
              gwloginkeyvals GWLO,
              gwloginkeysadmin GWLA
         WHERE GWLO.productcode = GWLA.productcode
              AND GWLO.sampletype = GWLA.sampletype
              AND GWLO.productcode in ('1002124', 'ABPG', 'ABIG')
              AND GWLO.sampletype <> 'CERTIFICATE-OF-ANALYSIS'
              AND GWLA.parentsampletype IS NOT NULL
         GROUP BY GWLO.productcode, GWLA.parentsampletype, GWLO.sampletype
         ORDER BY
              (CASE GWLO.productcode WHEN '1002124'     THEN 1
                   WHEN 'ABPG'     THEN 2
                   WHEN 'ABIG'     THEN 3
                   ELSE 'LL'
                   END) ASC
    I expected the results to be in sequence what it is defined in CASE - ORDER By clause. This code is givin me error. The error is
    (CASE GWLO.productcode WHEN '1002124' THEN 1
    ERROR at line 16:
    ORA-00907: missing right parenthesis
    Please help. Thanks!

         ORDER BY
              (CASE GWLO.productcode WHEN '1002124'     THEN 1
                   WHEN 'ABPG'     THEN 2
                   WHEN 'ABIG'     THEN 3
                   ELSE 'LL'>                END) ASC
    Can u just explain me in this context? I think it should be another number in the else part - since you are returning numbers in all the 'WHEN' option. Pls explain it.
    Regards.
    Satyaki De.

  • ALV: Issue with double  click event after sorting the ALV

    Hello Experts,
    I have an internal table that populates an ALV grid. When the user doubleclicks a row, my method HANDLE_DOUBLE_CLICK returns the e_row-index value from the ALV Grid. I use this index value to read the internal table, then retrieve additional data.
    My problem is the user may sort the ALV grid before double clicking on a line. If this happens my internal table is not sorted to match the ALV grid, so reading the internal table with the e_row-index value returns the wrong information.
    When the double click event occurs, is it possible to capture the value in column 1 instead of a value for e_row-index?
    There is one more paramter in HANDLE_DOUBLE_CLICK for row id.   It is coming blank in debugging .  what is the purpose of this parameter and how i can make use of it ?
    Regards
    Vivek

    Hi,
    I am Posting The Code Which Uses Double Click Event.
    And This Code will provide the total information to you.
    REPORT  ZALVGRID_PG.
    TABLES: SSCRFIELDS.
    DATA: V_BELNR TYPE RBKP-BELNR.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS: IRNO FOR V_BELNR.
    PARAMETERS: P_GJAHR TYPE RBKP-GJAHR.
    SELECTION-SCREEN END OF BLOCK B1.
    DATA: WA TYPE ZALVGRID_DISPLAY,
          ITAB TYPE STANDARD TABLE OF ZALVGRID_DISPLAY.
    DATA: IDENTITY TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
    DATA: GRID TYPE REF TO CL_GUI_ALV_GRID.
    DATA: L_IDENTITY TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
    DATA: L_TREE TYPE REF TO CL_GUI_ALV_TREE_SIMPLE.
    TYPE-POOLS: SLIS,SDYDO.
    DATA: L_LOGO TYPE SDYDO_VALUE,
          L_LIST TYPE SLIS_T_LISTHEADER.
    END-OF-SELECTION.
    CLASS CL_LC DEFINITION.
      PUBLIC SECTION.
        METHODS: DC FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID IMPORTING E_ROW E_COLUMN.
    ENDCLASS.
    CLASS CL_LC IMPLEMENTATION.
      METHOD DC.
        DATA: WA1 TYPE ZALVGRID_DISPLAY.
        READ TABLE ITAB INTO WA1 INDEX E_ROW-INDEX.
        BREAK-POINT.
        SET PARAMETER ID 'BLN' FIELD WA1-BELNR.
        CALL TRANSACTION 'FB02'.
      ENDMETHOD.                    "DC
    ENDCLASS.
    DATA: OBJ_CL TYPE REF TO CL_LC.
    START-OF-SELECTION.
      PERFORM SELECT_DATA.
      IF SY-SUBRC = 0.
        CALL SCREEN 100.
      ELSE.
        MESSAGE E000(0) WITH 'DATA NOT FOUND'.
      ENDIF.
      INCLUDE ZALVGRID_PG_STATUS_0100O01.
      INCLUDE ZALVGRID_PG_LOGOSUBF01.
      INCLUDE ZALVGRID_PG_SELECT_DATAF01.
    INCLUDE ZALVGRID_PG_USER_COMMAND_01I01.
    ***INCLUDE ZALVGRID_PG_STATUS_0100O01 .
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'AB'.
    *  SET TITLEBAR 'xxx'.
      IF IDENTITY IS INITIAL.
        CREATE OBJECT IDENTITY
        EXPORTING
          CONTAINER_NAME = 'ALVCONTROL'.
        CREATE OBJECT GRID
        EXPORTING
          I_PARENT = IDENTITY.
        CALL METHOD GRID->SET_TABLE_FOR_FIRST_DISPLAY
          EXPORTING
             I_STRUCTURE_NAME              = 'ZALVGRID_DISPLAY'
          CHANGING
            IT_OUTTAB                     = ITAB.
        CREATE OBJECT OBJ_CL.
        SET HANDLER OBJ_CL->DC FOR GRID.
        ENDIF.
        IF L_IDENTITY IS INITIAL.
          CREATE OBJECT L_IDENTITY
          EXPORTING
            CONTAINER_NAME = 'LOGO'.
          CREATE OBJECT L_TREE
          EXPORTING
            I_PARENT = L_IDENTITY.
          PERFORM LOGOSUB USING L_LOGO.
          CALL METHOD L_TREE->CREATE_REPORT_HEADER
            EXPORTING
              IT_LIST_COMMENTARY    = L_LIST
              I_LOGO                = L_LOGO.
          ENDIF    .
    ENDMODULE.                 " STATUS_0100  OUTPUT
    ***INCLUDE ZALVGRID_PG_LOGOSUBF01 .
    FORM LOGOSUB  USING    P_L_LOGO.
      P_L_LOGO = 'ERPLOGO'.
    ENDFORM.                    " LOGOSUB
    ***INCLUDE ZALVGRID_PG_SELECT_DATAF01 .
    FORM SELECT_DATA .
      SELECT RBKP~BELNR
             RBKP~BLDAT
             RSEG~BUZEI
             RSEG~MATNR
             INTO TABLE ITAB
             FROM RBKP INNER JOIN RSEG
        ON RBKP~BELNR = RSEG~BELNR
        WHERE RBKP~BELNR IN IRNO
        AND RBKP~GJAHR = P_GJAHR.
    ENDFORM.                    " SELECT_DATA
    ***INCLUDE ZALVGRID_PG_USER_COMMAND_01I01 .
    MODULE USER_COMMAND_0100 INPUT.
      CASE SY-UCOMM.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
        WHEN 'CANCEL'.
           EXIT.
           ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    Warm Regards,
    PavanKumar.G
    Edited by: pavankumar.g on Jan 19, 2012 5:30 AM

  • I have noticed an issue with utilizing the "stream" function on iOS 7. If you choose to just stream the movie by hitting the play button it seems to actually start downloading (which is fine) but if you are say halfway thru the movie and stop you can clea

    I have noticed an issue with utilizing the “stream” function on iOS 7. If you choose to just stream the movie by hitting the play button it seems to actually start downloading (which is fine) but if you are say halfway thru the movie and stop you can clearly see that storage has been reduced under the usage, yet under the “videos” tab it still states “No Data” the only way to delete what you have partially downloaded is to fully download the video, which is fine but there is no way to tell what videos have been partially downloaded (I.e which occurs a lot when your child switches between movies using the so called “stream” function). This becomes troublesome once the capacity of the ipad is almost met and you have no way to delete this data since you may have several videos that have started to be viewed (hence partially downloaded). Apple needs to somehow make it truly streaming or provide an update so the storage can be managed. The only way I have been able to remove partially downloaded videos is by doing a total software restore. (The video data that is in question when connected to my MacBook shows up in iTunes as “other”) if you have any insight into this issue it would be greatly appreciated. Thanks.

    Here are the screenshots for what it's worth.
    Not sure why I can't post them in the original post.<br>
    <sub><b>Mod edit: See [https://bugzilla.mozilla.org/show_bug.cgi?id=718813 bug 718813]</b></sub>
    '''Again, when I set my DNS server to automatically detect the servers both problems disappear and I have no issues at all.'''
    IMO opendns is either doing this on purpose (unlikely) or they're under some sort of attack/being used to attack the specific torrent sites although I'm open to other explanations. I believe using the automatic setting for DNS is using my own ISP's DNS servers (which again, work fine... but still...)
    I'd rather not use Google's public DNS servers as Google is to commercial these days and I think there's potential privacy issues.
    '''Again I have changed the setting for DNS servers back and forth several times to duplicate/verify the issue(s)... and the issues only happen with the opendns servers.'''

  • Why am I unable to sort the music on my iPhone 4S when viewing it in iTunes?

    Hello,
    Apologies if this has been answered already; I searched for it but none of the results appeared relevent to my issue.
    I have an ipod touch 4th generation, which I manually manage from the the iTunes library on my home PC (Windows 7, 32bit). I am able to plug the ipod touch into my work laptop, to listen to the music on it through iTunes. I can see the list of songs on my ipod via the 'Music' tab of the 'Devices' section in iTunes. In that view, I am also able to sort the list as I see fit, by clicking on the various column headings to change the order of that column appropriately.
    I have recently purchased an iPhone 4S, and loaded it with music from my own computer's iTunes library in the same way I did for my ipod. However, when viewing the songs on my 4S on my work laptop in the same way as above, I am unable to sort the view at all. Why is this?
    It's annoying not being able to sort the songs in an order different to how they were sorted on the parent machine. For example, if I'm looking in my song list for a song I added recently, I was able to find them on my ipod by simply ordering the list by Date Added or Date Modified, but there seems to be no way of doing this for the 4S?
    Thanks in advance.

    Thanks for your message.
    I have downloaded the latest iTunes [11.1.5 (5)] with no luck, unfortunately. As it did with 11.1.4 (62), iTunes recognizes my iPhone, I can select the music to sync, click sync, it appears to sync but remains completely unchanged in my iPhone music.
    Any tips are welcome!

  • Unable to sort the content in KM Iview

    Hi All,
                I am facing one problem in solving the sort issue. There is one KM iview which is using LinkListExplorer as Layout. This LinkListExplorer is using LinkListCollectionRenderer which doesent have the sort proerty.
    I am able to sort in KM content for the same content  because there it is using AdminExplorer.
    Can anyone help me in sorting the content by using LinkList Explorer.
    Regards,
    Raghu

    Hi Martin,
                     Thank you for the relpy.
    As I am using the LinkListExplorer  , in the Iview I am getting the   organize Entries  link.  when i click the link.... I will get the  folders and files  But  I am not getting the  Order  option  once I right click on any of the folders/files.  Actually this order option is used to sort the content i think.
    Can you help me on how to get the order option.
    Thanks&Regards,
    Raghu
    Edited by: Raghavendranath Garlapati on May 21, 2008 2:05 PM

  • How to use XmlModify to sort the XML Data?

    Hello,
    I saw some examples explain how to use XmlModify in BDB XML package. I want to sort the XML data by several elements but my Java program could not work correctly.
    <CustomerData>
    <Transaction>
    <DLSFIELDS>
    <ADR_PST_CD>12345</ADR_PST_CD>
    <CLT_IRD_NBR>002</CLT_IRD_NBR>
    </DLSFIELDS>
    </Transaction>
    <Transaction>
    <DLSFIELDS>
    <ADR_PST_CD>12345</ADR_PST_CD>
    <CLT_IRD_NBR>102</CLT_IRD_NBR>
    </DLSFIELDS>
    </Transaction>
    // many nodes like transaction ...
    </CustomerData>
    My XQuery script was executed successfully in the shell. The script looks as follows:
    "for $i in collection('sample.dbxml')/CustomerData/Transaction order by xs:decimal($i//ADR_PST_CD), xs:decimal($i//CLT_IRD_NBR) return $i".
    The Java code :
    // create XmlManager
    XmlManager manager = // ...;
    // open XmlContainer
    XmlContainer container = // ...;
    XmlQueryContext context = manager.createQueryContext(XmlQueryContext.LiveValues, XmlQueryContext.Eager);
    XmlQueryExpression expression = manager.prepare("for $i in collection('sample.dbxml')/CustomerData/Transaction order by xs:decimal($i//ADR_PST_CD),xs:decimal($i//CLT_IRD_NBR) return $i", context);
    XmlModify modify = manager.createModify();
    XmlUpdateContext uc = manager.createUpdateContext();
    XmlDocument xmldoc = container.getDocument("sample.xml");
    XmlValue value = new XmlValue(xmldoc);
    long numMod = modify.execute(value, context, uc);
    System.out.println("Peformed " + numMod     + " modification operations");
    Could you point out the errors above or offer some suggestion?
    Thanks.

    I have other question of the sorting issue. Here are a large XML need to sort so I have to split it to multiple small XML files. After importing these files, I will use the XmlModify and XQuery to sort them. I'm not clear on the multiple XML files processing.
    1. Can the BDB XML ensure that all these XML files were sorted or how to update all documents with same logic.
    2. If I want export all these sorted documents, how can I ensure these files processed in sequence? Which document needs process first?
    The export method:
    public void export(String outputfile)throws Exception{
    final int BLOCK_SIZE = 5 * 1024 * 1024; // 5Mb
    try{
    File theFile = new File(outputfile);
    FileOutputStream fos = new FileOutputStream(theFile);
    byte[] buff= new byte[BLOCK_SIZE];                         
    XmlResults rs = container.getAllDocuments(new XmlDocumentConfig());               
    while(rs.hasNext()){
         XmlDocument xmlDoc = rs.next().asDocument();
         XmlInputStream inputStream = xmlDoc.getContentAsXmlInputStream();                    
         long read=0;
         while(true){
         read = inputStream.readBytes(buff, BLOCK_SIZE);
    fos.write(buff,0,(int)read);                    
         if(read < BLOCK_SIZE) break;
    inputStream.delete();
    xmlDoc.delete();
    rs.delete();
    //MUST CLOSE!
    fos.close();               
    catch(Exception e){
    System.err.println("Error exporting file from container " + container);
    System.err.println(" Message: " + e.getMessage());
    Thanks.

  • Sorting Chart Legend

    I have a report with both a table view and a chart view of monthly aggregate opportunity revenues.
    Got a request to sort the bar chart view entries by product.
    I followed forum advice sorting on a column non-alphabetically, using a hidden Product Category field to sort my products by machine size with this CASE statement:
    CASE
    WHEN ("Product Category"."Parent Product"='SPICA') THEN 1
    WHEN ("Product Category"."Parent Product"='NL28') THEN 2
    WHEN ("Product Category"."Parent Product"='NL28P') THEN 3
    WHEN ("Product Category"."Parent Product"='L28') THEN 4
    WHEN ("Product Category"."Parent Product"='L28P') THEN 5
    WHEN ("Product Category"."Parent Product"='LS29') THEN 6
    WHEN ("Product Category"."Parent Product"='LS29P') THEN 7
    WHEN ("Product Category"."Parent Product"='LSX29') THEN 8
    WHEN ("Product Category"."Parent Product"='L40') THEN 9
    WHEN ("Product Category"."Parent Product"='L40P') THEN 10
    WHEN ("Product Category"."Parent Product"='L40SP') THEN 11
    WHEN ("Product Category"."Parent Product"='LS40') THEN 12
    WHEN ("Product Category"."Parent Product"='LS40P') THEN 13
    WHEN ("Product Category"."Parent Product"='LS40SP') THEN 14
    WHEN ("Product Category"."Parent Product"='LSX40') THEN 15
    WHEN ("Product Category"."Parent Product"='LSX40RP') THEN 16
    WHEN ("Product Category"."Parent Product"='LS44') THEN 17
    WHEN ("Product Category"."Parent Product"='Web') THEN 18
    WHEN ("Product Category"."Parent Product"='Chambon') THEN 19
    ELSE 0
    END
    Sorts great...in the table. But the legend is sorting in its own goofy way. Once I added that column, the legend sorted a little differently but still is in the wrong order, based on the products:
    Unspecified (always shows at the top of the legend: because of ELSE 0?)
    LSX529C (Category = LSX29)
    LS540C (LS40)
    LS840P (LS40)
    LS840PC (LS40)
    LS629PC (LS29P)--out of order, should be before the first item
    L640C (L40)--out of order
    LS640C (LS40)--out of order
    Chambon (Chambon)
    I checked each of the entries and see they are properly Categorized in the Content Managemetn > Products area.
    Anyone have any tips on getting the legend (and thus the cylinder segments) to sort properly or what might be happening here?
    Thanks
    Andy
    Edited by: ARK2 on Dec 17, 2010 7:04 AM

    Y = Opportunity Revenue
    X = Month
    The report is a 4-month forecast, but not using built-in Forecasting that CRMOD uses; this report uses the Forecast checkbox in an opportunity to determine if the oppty should be on the forecast report, then grabs the overall Oppty Revenue from that same region of the Oppty (not using line/Product level revenue field).
    The report uses a table and above that a chart with 3D cylindrical output where each press model (derived from a field in the Oppty header) is a different color (I'm letting Analysis defaults set the colors for each product).
    My boss wants to sort the colors from smallest model size to largest model size for consistency sake and to make the chart easier to comprehend with a glance.
    Is this even possible? I could see sorting by revenue size, but that's not always the best indicator (as some used larger presses may sell for less than new smaller ones).
    Any ideas?
    Thanks,
    Andy

  • Bug or feature: TableView sorts the underlying list?

    that's at least highly unexpected - all variants of table sorting I know, support some kind of sortedView on top of the user model (either by a framework outside of the table, as GlazedList, or internal as core swing).
    Is it a not-yet-done feature or yet another variant of leaving the hard stuff to the user dev?
    CU
    Jeanette

    JonathanGiles wrote:
    This is by-design. We consider the items list in the TableView to be the view model - clicking on a column results in the view model being sorted.
    There are ways around this. If you provide a TransformationList (e.g. SortedList) wrapped around an ObservableList, the TableView will sort the SortedList, leaving the underlying ObservableList unsorted and still available via SortedList.getDirectSource() or getBottomMostSource() (depending on how many layers of wrapping you have).that's exactly what I keep complaining about:
    - framework handles the trivial stuff: it simply pushes a comparator into a sortable list is or lets collections.sort do the work
    - developers are left with the harder parts like index mapping
    Actually, the framework is hit by those missing harder parts as well:
    - SortedList freaks out on mutable elements, basically because the internal index mapping is not optimal (http://javafx-jira.kenai.com/browse/RT-14965)
    - Selection synch is broken when sorting/filtering (and TableView taking the extreme easy way out in clearing ... tseee), don't have a report handy, but know that you are aware of the issue : - )
    - no way to "unsort" a TableColumn (http://javafx-jira.kenai.com/browse/RT-15166) in the general case. Even for a SortedList, that would involve to restore the original comparator (instead of leaving the TableColumnComparator in place)
    Cheers
    Jeanette

  • Problem in sorting the records

    Hi All,
    I have to sort some records based on a key. If the key field is optional then how to sort the records. For example consider the follwing records.
    <row>
          <name>jaya</name>
          <address>hyd</address>
          <material>d</material>
          <units>4</units>
          <price>6</price>
    </row>
      <row>
          <address>ss</address>
          <material>wd</material>
          <units>7</units>
          <price>9</price>
       </row>
    <row>
          <name>radha</name>
          <address>pune</address>
          <material>g</material>
          <units>9</units>
          <price>3</price>
    </row>
    Here name field is used as a key in sorting the records. in the second record name field does'nt exists. All the records that doesnt have the name field shud come on the top and the rest with name field shud come sorted.
    Can anyone please helpout how to solve this problem??

    Jhansi,
    Did u solved the issue? The scenario is lil bit complicated, please consider my below suggestion, if you haven't achieved your results.
    I must really thankful to Michal and all my SDN friends,who guided me to use the logic-using multiple Mapping program in one Interface mapping.
    /people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
    Ok, let us come to the logic.
    For your problem we need to use two mapping programs.
    <b>Mapping Program 1</b>
    http://www.flickr.com/photo_zoom.gne?id=897495319&size=o
    <b>Mapping Program 2</b>
    http://www.flickr.com/photo_zoom.gne?id=897495327&size=o
    http://www.flickr.com/photo_zoom.gne?id=897495341&size=o
    <b>UDF1 - Testing</b>
    http://www.flickr.com/photo_zoom.gne?id=897495429&size=o
    String temp;
    for(int i=0;i<Name.length;i++)
    for(int j=i1;j<Name.length;j+)
    if(Name<b>[</b>i<b>]</b>.compareToIgnoreCase(Name[j])>0)
               temp = Name<b>[</b>i<b>]</b>;
                Name<b>[</b>i<b>]</b>= Name[j];
                Name[j]=temp;
    for(int i=0;i<Name.length;i++)
    if(Name<b>[</b>i<b>]</b>.equals("0"))
    result.addSuppress();
    result.addContextChange();
    else
    result.addValue(""Name<b>[</b>i<b>]</b>"");
    result.addContextChange();
    <b>UDF 2 - Testin1</b>
    http://www.flickr.com/photo_zoom.gne?id=897495437&size=o
    String temp,temp1;
    for(int i=0;i<Name.length;i++)
    for(int j=i1;j<Name.length;j+)
    if(Name<b>[</b>i<b>]</b>.compareToIgnoreCase(Name[j])>0)
               temp = Name<b>[</b>i<b>]</b>;
                Name<b>[</b>i<b>]</b>= Name[j];
                Name[j]=temp;
          temp = Values<b>[</b>i<b>]</b>;
                Values<b>[</b>i<b>]</b>= Values[j];
                Values[j]=temp;
    for(int i=0;i<Values.length;i++)
    result.addValue(""Values<b>[</b>i<b>]</b>"");
    result.addContextChange();
    <b>Interface Mapping</b>
    http://www.flickr.com/photo_zoom.gne?id=897495361&size=o
    <b>Finally -Results:</b>
    http://www.flickr.com/photo_zoom.gne?id=897498639&size=o (My Data)
    http://www.flickr.com/photo_zoom.gne?id=897498659&size=o (Your Data)
    I hope it helps you!!!!
    I don't know whether this is the correct way or any other simplest way to do so. Also I request our friends to feedback their inpute regarding this logic.
    Jhansi,if you have any doubts in achieving the same, kindly reply back.
    Best regards,
    raj.

  • Custom sorting chart legend

    Hi all,
    i've got a chart, but want to customize the sorting from the legend fields with a "fixed" colour for a value.
    regards,
    Osman
    Edited by: Ossy81 on Sep 7, 2010 5:23 PM

    I've got a vertical bar (stacked) chart. I also want to change the order in the graph. Now it shows in 1 bar in this order:
    basic
    season basic
    season fashionIf you want to change the order then you need to change the order in criteria tab itself.
    And want to give a value a fixed colour. E.g. Basic should be red and Season Basic Green etc.You can do this by clicking on fifth icon from left in chart properties(Format chart data).Uncheck use default checkbox and pick colour accordingly.
    Hope this helps.
    Thanks
    Sandeep

  • Issue in sorting table column

    Hi,
    I am using Oracle Jdeveloper 11.1.1.6.2
    I am trying to apply sort functionality to a acolumn in my table. I have done this previously at many places and it worked fine, But over here we are having a switcher inside column the code is:
           <af:column sortProperty="KeywordName"
                         headerText="#{coregccomplianceuiBundle.KEYWORD_NAME}"
                         id="c1" rowHeader="unstyled" sortable="true">
                <af:switcher id="sw1" facetName="#{row.IsSystem}" defaultFacet="0">
                   <f:facet name="1">
                   <af:panelGroupLayout id="pg1" layout="horizontal">
                      <af:outputText value="#{row.KeywordName}" id="ot1"/>
                      <af:image source="/images/lock_ena.png" id="cil1"
                                shortDesc="#{coregccomplianceuiBundle.ERRMSG_ISSYSTEMENTITY_DELETE}"/>
                    </af:panelGroupLayout>
                  </f:facet>
                  <f:facet name="0">
                  <af:panelGroupLayout id="pg1-1" layout="horizontal">
                      <af:outputText value="#{row.KeywordName}" id="ot1-1"/>
                    </af:panelGroupLayout>
                  </f:facet>
                </af:switcher>
              </af:column>initially i have all the columns which come under facet 1 , i try to sort it works fine. Then i add a row of facet type 0 and then if i try to sort it does only sort the rows with facet =1.
    What can be the issue?
    Thanks,
    Tripuresh
    Edited by: Tripuresh on May 29, 2013 5:23 PM

    Thanks Prateek and Shah for the reply,
    Actually i can see now that even if i remove the switcher component completely and make the column like:
             <af:column sortProperty="KeywordName"
                         headerText="#{coregccomplianceuiBundle.KEYWORD_NAME}"
                         id="c1" rowHeader="unstyled" sortable="true">
                      <af:outputText value="#{row.KeywordName}" id="ot1"/>
              </af:column>Then also for the newly added rows sort is not working. The addition of new keyword is done by logic below:
            ComplianceLibraryAMImpl am = getDataControl();
            EmKeywordVOImpl rep = am.getEmKeywordVO1();
            NameValuePairs nvp = new NameValuePairs();
            nvp.setAttribute("KeywordName", keyword);       
            Row row1 = rep.createAndInitRow(nvp);
            rep.insertRow(row1);is there something wrong in my addition logic?

  • Performance issue on calling the API queryFolders to retrive the subfolders

    Hi, We are using 10.3.0 collaboration server.When we make an API call to get the folders under a parent folder, the API is taking more than 2 minutes to return. When we did research, found out that the query collaboration server is executing taking time to return the results from the collaboration database. I am copying the query below. The performance issue coming when the number of sub folders is more than 1400. I did few experiments on this query. When I remove the sort clause, the query is running too fast. If i keep the sort clause and remove the sub query in select clause , query is running fast. But the combination is taking too much time i.e. 80 seconds. Please share your ideas on how to increase the performance of this API call. We are planning to upgrade to another version of collab but not sure whether it would fix the problem. Highly appreciated your valuable suggestions. Let me know if you need more information.
    SELECT OBJ.OBJECTID, OBJ.TID, OBJ.CREATED, OBJ.MODIFIED, OBJ.NAME,
    OBJ.DESCRIPTION, OBJ.OWNERID, OBJ.PROJECTID, OBJ.PARENTID,
    OBJ.OWNERNAME, OBJ.PARENTPATH, OBJ.PARENTIDPATH, OBJ.DEPTH,
    OBJ.MODERATED, OBJ.CRAWLERACCESSIBLE,(select DISTINCT(1) FROM
    CSFOLDERS where(exists(select * from csFolders subFolders where
    subFolders.parentID=OBJ.objectid))) as HASVISSUBFOLD FROM CSFOLDERS
    OBJ WHERE EXISTS (SELECT * FROM CSROLEMEMBERSHIP RM,CSFOLDERSECURITY
    OS,PLUMTREE.PTVGROUPMEMBERSHIP GRP WHERE OS.ACCESSLEVEL > 0 AND
    GRP.USERID=:v0 AND GRP.GROUPID = RM.PTGROUPID AND RM.OBJECTID =
    OS.ROLEID AND OS.OBJECTID = OBJ.OBJECTID) AND obj.TID = 3 AND
    (obj.parentID=:v1) ORDER BY LOWER(obj.NAME) ASC

    hi reddy,
    before applying for all entries on mseg
    1.sort t_mard by matnr werks and lgort
    2. if not t_mard is initial.
         select mblnr mjahr etc...
       endif. 
    these are the main precautions u need to look into before you are using second select.
    entires from bseg, mseg will consume lot of time.
    so the best if only the fields u r showing are required then take it from the respective table like
    ebeln ebelp from ekpo
    like that .
    so the alternative will be this but this will be the best option if u know only these fields are to be selected .
    hope u r getting my point.
    yeah swagatika also said correctly that u can go for indexing so the Retrieval is faster.
    one more option is construct a view/structure and proceed .
    regards,
    TVK.
    Message was edited by: Vikky

Maybe you are looking for

  • PDF portfolio view in Adobe reader

    Hi, I recently created a PDF portfolio for a co-worker using Acrobat 9.0 Pro. I used the Grid with File Preview layout and added a header that appears right above the grid. Everything works well except that when my co-worker opens the PDF portfolio i

  • How to export into excel in oracle ebs forms

    Hi all, I am trying to export form data into excel through Internet explorer , When I select all records and try to export it into excel after some time it open other windows for login , Please tell me how to export it into excel. Thanks

  • Isql*plus 9.2 problem: Substitution variables

    hi, i'm new to using isql*plus. i have written the following script to setup my the structure of a database, it works but when i execute it it asks me to: Substitution Variables Enter values for substitution variables in the script to execute: Variab

  • MBA 13" media buttons not working with iTunes

    I just got my mba 13" and everything is great, but for some reason the media buttons do not work with itunes. I've tried them with vlc and other applications and they work fine. Any ideas how I can fix this? Thanks! Danny

  • Torch 9810 - Error 507

    Hi, I am from the Philippines. I have a Torch 9810, Sun Cellular is my carrier. It has been working fine the last few days. Today, locked up showing error 507. I did a hard reset by taking the battery out, nothing happened. Please help!!!