Need Sorter java  file   for sorting the records in webdynpro java

Hi  Gurus
   I  had urgent requirement please give your inputs
   In my webdynpro java i need to sort entire records in table
   I now we need One sorter java class please provide that java file
   please suggest the all the steps how  to do
Thanks
renu.

1. Implement class comparator wich will compare records according your sort preferencies,
like this:
     public class record_Comparator implements Comparator{
          public int compare(Object emp1, Object emp2){
      // here is your code for return -1if 'before'  or 0 if equal or 1if 'after'
               int stepId_1 = ((record)emp1).get_someValue();       
               int stepId_2 = ((record)emp2).get_someValue();
               if(stepId_1 > stepId_2)
                    return 1;
               else if(stepId_1 < stepId_2)
                    return -1;
               else
                    return 0;   
than call method sort() with your collection of records,
like this:
Collections.sort(record_collection, new record_Comparator());

Similar Messages

  • Delete the Record in Webdynpro java

    Hi   Gurus
              I had one issue in webdynpro java , I need to delete row in Table  if I delete the row in webdynpro java table at the same time the row it needs to delete in Back end  table also .
    We are useing NWDS 7.2  and we are using Adaptive Web Service model for to consume function module
         Guys it's a urgent requirement for me please share your knowledge
    Thanks

    Hi
       ABAPERS already they given one  funtion module , for that in back end they written a querry for to delete the record ,
    So now I want to Import that Adaptive webservice into webdynpro java , I will create a button in webdynpro java for Delete
    here what code I neeed to mention , If I  Delete the record in Table  it has to delete in the backend also.
        Guys please share your ideas
    Thanks
    Sony

  • Error: The sort order specified for distinct count records is incorrect

    When processing a measure group with a distinct count measure in it, i get the following error:
    "The sort order specified for distinct count records is incorrect."
    I have no idea what this means - any ideas?

    I had the same problem and your fix worked.  In more detail, the problematic field was contract_no.  I added a named calculation to the table in the Data Source View with the formula CHECKSUM(contract_no).  Then I created the distinct count measure on that named calculation.  And, lo and behold, the errors disappeared! 
    Thank you to Frank.
     - CindyCindy P Hoskey

  • What is the best method to parse a java file for function names

    st="class";
    while (StreamTokenizer.TT_EOF != tokenizer.nextToken ())
       if (StreamTokenizer.TT_WORD == tokenizer.ttype)
        if (tokenizer.sval.toLowerCase().equals(st.toLowerCase())){
        System.out.print (tokenizer.nextToken() + " "); //prints the class name on the console
        fileOut.print (tokenizer.sval + " "); //prints the class name to a file
    }The above program searches a .java file for classes. I want to modify it so that it searches for function names as well. After several hours of figuring out various ways to do it with StreamTokenizer, I still havnt found a way. There seems to be no way to go back, i.e. no previousToken method, in StreamTokenizer.
    Is it possible to do search for using StreamTokenizer, and are there easier ways of doing it?

    Simple string tokenizing isn't an effective way to do this. You probably want something like ANTLR.

  • HT3669 I only have a HP printer and why I need to install a file for all the HP printers drivers 590MB??? if normally the size of my file should be 5MB.  some one could me help to avoid installation of 590MB for my new mountain lion software???

    Hi guys..!!
    I would like to know if someone could help on this:
    I just have a HP printer (HP Designjet 100) and for some reason I need to install a file for all the HP printers drivers in total 590MB to be able to use my printer in my mountain lion???
    If normally the size of my files in the for previous software was more or less 5MB why now i need to install 590?
    Some one could help me how to avoid installation of 590MB for my new mountain lion software???
    Thanks

    If you go to http://support.apple.com/downloads and locate the HP Printer Drivers installer, you will find that it is 473.4 MB (for version 2.11). If you install this, it will install the full set of drivers for every model of HP printer that is supported by the drivers distributed through Apple. The disk space occupied once installed will probably be larger than the download, since the downloaded file is compressed.
    On the other hand, if you have an HP printer connected and you use Software Update (or the Update tab in App Store), that should offer you a much smaller set of HP drivers, which are only applicable to your printer (and possibly a few similar ones). These updates are typically only tens of megabytes rather than hundreds of megabytes.
    If Software Update doesn't offer you any HP drivers then it either thinks you have the latest drivers installed already, or the printer model is not supported by the drivers available from Apple.
    This article lists all of the printer models for which Apple distributes the driver:
    http://support.apple.com/kb/HT3669

  • How to Generate a Java file for a JSP Page

    Hi ,
    I am using weblogic11 .
    I am working on a JSP page which nearly consists of 4000 lines of code.
    I need to debug the file , but weblogic server is not generating the java file for the JSP pages .
    Please let me know how can i genertae Java file for the jsp pages ??

    JSPs are compiled into servlets automatically and those classes are stored in WEB-INF/classes folder. Servlet engine handles servlets.

  • Infotype screen headers needs to be changed for all the infotypes

    Hi Guys,
    This would be for a global implementation question.
    For the US for a particular region, the screen header needs to be changed for all the infotypes.
    The existing field (in the infotype header) is Employee Group which needs to be replaced with employment status.
    The know how to change the headers but my question is STAT2 exists in IT 0000 but does not exist in 0001, 0002 0007.........etc
    When i go to Table T588J to add an entry , Screen Header 42......,
    I get an error " No Field STAT2 exists for infotype 0001"
    No field STAT2 exists for infotype 0001.
    Message no. PG811
    Diagnosis
    No STAT2 field exists for infotype 0001.
    Procedure
    Please contact your system administrator.
    Procedure for System Administration
    In Customizing, determine the incorrect entry in Personnel
    Administration in the Header structure per infotype view, step " Determine infotype header and correct it
    I would like to have some inputs from you guys ..... Any Suggessions...
    Thanks,
    Aastha

    Hi Aastha,
    Correct me if I am wrong.
    First you need to maintain the header in T588J.
    Screen header of an infotype is defined in view V_582A_B. We can define one screen header for employee and another for applicant in view V_T588I. The header modifier selected from view V_T588I has a definition in table T588J, which finally gets shown on the screen.
    Depending on the transaction class (A = Personnel Administration, B = Recruitment) and the country grouping, a header modifier is assigned to the infotype header in the u201CHeader Modificationu201D view V_T588I.
    For example like
    Screen Header / Tr. Class / Header modifier
    00                    /        A      /  60
    In the view u201CHeader Structure per Infotypeu201D (V_582A_B), a header has been assigned to every infotype. It also determines whether the data is valid from the system date or the start date of the infotype record
    Hope this is useful.
    Regards
    RK

  • My Lightroom 3 DVD is broken, i need a Download File for Mac. I still have my Serialnumber.

    My Lightroom 3 DVD is broken, i need a Download File for Mac. I still have my Serialnumber.

    Hi Stefan,
    Please go through the link below to download Lightroom3.
    http://prodesigntools.com/direct-download-links-for-lightroom-3-and-photoshop-elements-8.h tml
    Please go through the 'Very Important Instructions' on this page to initiate the download.
    Regards,
    Anand

  • Accessing java files for Dev't.

    I would like to know how my developers can get access to some java files to facilitate the customization of the web interface, for my company.
    e.g. oracle.ifs.clients.webui or
    viewer.java
    Thanks..

    Please see the following post: http://technet.oracle.com:89/ubb/Forum36/HTML/000749.html

  • Need driver (*.inf) files for HP OfficeJet 5610 All-in-one

    I am setting up a print server and it needs *.inf driver files for my HP OfficeJet 5610 All-in-one printer. Where can i find them? I've installed the drivers on my PC, but they come as *.exe files that will not extract to give the *.inf files. Can anyone help?

    Hello, First I would like to say that I dont like what HP does, I dont want all your software cloging up my computer. What I want if for the hardware I have purchased from you to work the way I want to. Nothing more nothing less. Please give your customers the chance to pick the software they want and not fill up the pc with trash.
    PlanoStar You will find the x86 inf file in the Windows XP Package, it about an 68mb download, just extract EP-CDB-enu_NB.exe using Winrar.
    And ofcourse after the hours spent, with HP trolling you, you would think you are done. Think again. Microsoft will pick up the tradition with some Install x86 Medea ntprint.inf BS. to solve this problem download the files needed from here.
    It will save you hours instead of mounting AIO images and whatever.
    Ps. I have just registered with HP with the sole reason of making this post, and I would just like to say that hp support is rubbish.

  • Do I need "nilm.exe" file for labview to run properly?

    I have some problems with the "nilm.exe". Sometime it create a lot of other file in Windows tak manager and it lock completely my computer. Do I need "nilm.exe" file for labview to run properly? Can I remove it from my computer ?
    thanks in advance for your reply

    NILM.EXE is the NI License Manager for Remote Panels. If not using Remote Panels then you do not need to use NILM.EXE. The following webpage shows how to disable nilm.exe:
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/581a81c57ac0c10b86256b5a005f2975?OpenDocument
    Chris_Mitchell
    Product Development Engineer
    Certified LabVIEW Architect

  • Need SNMP MIB files For Cisco SF 300-48 48-Port 10/100 Managed Switch

    Hi All,
    I need SNMP MIB files for Cisco SF 300-48 48-Port 10/100 Managed Switch.
    I have gone through cisco site but not able to get it.
    Can anyone please provide me.I have stuck with this.
    Thanks
    Ram

    Hi Ram, yes the MIB can be used. The switches are essentially the same in many regards (especially on a software level).
    I do not know the OID for bandwidth. If you're looking for a particular OID may be this tool helps you
    http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?objectInput=dot1dTpPortTable&translate=Translate&submitValue=SUBMIT&submitClicked=true
    -Tom
    Please mark answered for helpful posts

  • Is there need of code obfuscation for uploading the app in appstore ?

    Hi
        Is there any chance that .app file can be decompiled ? For security perpose, is there need of code obfuscation for uploading the app in appstore ? What are the ways to obfuscate the code ?

    Apps are compiled and signed. For extra security against pirates, you should verify the signed receipt as well. All the instructions are on the developer site.

  • I need an installation file for officejet pro 8000 series a809 printer

    I need an installation file for officejet pro 8000 series a809 printer

    Just search the web and you will find you answer.
    http://www.google.com/search?q=+officejet+pro+8000+series+a809+&sourceid=ie7&rls=com.microsoft:en-us...
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • Need a Syatem variable for Executing the report by RFC.

    Hi Experts,
    Need a Syatem variable for Executing the report by RFC.
    what i mean to say is,i can execure the report directly ...then no issues.
    But if i execute the Report by RFC ,then i should put a condition with system variable...
    Please suggest me ,how can put a condition when i am executing the report through RFC.
    Thanks
    Babu

    Hello Friend,
    what I understood that you want to put some extra condition if that report is getting called from RFC...
    you can use the system variable SY-CPROG....it will hold the value of the report when it is geeting executing directly...
    but when it is getting executed therough RFC...it will hold that RFC name...
    Thanks
    Krish

Maybe you are looking for

  • Page can not be Displayed in EBS R12 64bit - OEL 5.4 64bit

    Hi Hussein, I have just installed EBS R12 (12.0.4) 64 bit on OEL 5.4 64bit, for our new client. The installation was successfull in general, but as usual I hit with this "Page Can Not Be Displayed" error and the client side ie browser. I can startup

  • How to submit a Concurrent Request Set from OAF

    All, I understand we can submit a concurrent program from OAF using oracle.apps.fnd.cp.request.ConcurrentRequest.submitRequest( String pApplication,                     String pProgram,                     String pDescription,                     Str

  • How to make a file downloadable on my JSP page.......

    I want to make a file to be downloadable on my webpage. I have developed a simple lindk to the file. But internet explorer opens that file and don't show option to save it on hard disk. If any can mail me some Servlet solution or applet ( preferably

  • Disappearing Smart Folders in Mail

    When I close Mail and then reopen later, I find that all my Smart Folders disappear including the Smart Mailboxes I have placed inside them. Is there someplace I can find them? Or is there a setting I need to make to prevent them from disappearing?

  • Zen Extra 30

    Hello I have just updated my Zen Extra 30GB unit to the latest firmware 2.0.03. I have also updated to Media Source 5.0.38 twice and still notice the following. )?? When I attach my player to my pc via usb, it is very slow to recognise the player, it