Urgent in my project work

I have one urgent requirement in our project
we have of list of requisitions in the page listing ;we will have check boxes to that
say if i check 5 requisitions
we will update the status(statuses like pending,processing,rejecting,invalidate)
when user select reject status we have to send email notification to those users who created those requisitions;when i click update button
I will get userid and requistionid;
if we put in hashtable
userid will come in duplicated but requistionid is unique.
say data wil come like this;
ht.put("Vikram",1313);
ht.put("Shekar",1513);
ht.put("Shekar",4213);
ht.put("Vikram",4613);
ht.put("Vikram",4583);
ht.put("Ranga",4183);
dont tell me that compare with userid.equals("Vikram");
i cant compare like that because i dont know which user can come from database
how to do this with Hashtable;IS ANY OTHER WAY.
i want to send one email to user vikram with requistionids 1313,4613,4583
bye
chaitanya

I'm not quite sure what you are asking here. How to retrieve email address? How to distinguish users?
I can see one problem however Unless you have a specialised Hashtable, you are only allowed to map one key to one value. Subsequent puts will override the old value. Hence, if you call ht.put("Vikram"...) with three different values, only the last one will be kept. You need a unique key to use a hashtable properly.
What you can do is store each entry in the hashtable as a list. That will then give you a list of ids to notify for each user.
ie
"Vikram" = [1313, 4613, 4583]
"Ranga" = [4183]
Does that help at all?

Similar Messages

  • Help needed for Project Work

    +People..I am new to this forum and your help is absolutely essential as it for my project work. There are two questions in my project. This is the second one. The first question is at the following thread.
    http://forum.java.sun.com/thread.jspa?threadID=5220057
    Thanks in advance..+*
    This is the Question
    Create a class ToyCollection that stores information about different toys in a toy shop.  The information to be stored about a single toy is,
    -         Toy identification as String
    -         Name of the toy as String
    -         Short description about the toy as a String
    -         Price of the toy as float
    -         Quantity of the toy in hand as short integer.
    This class contains following methods,
    -         Constructor method that assigns user input values to above mentioned variables.
    -         main ( ) method that creates array of 4 objects of ToyCollection class and that takes input for all above details from the user and
    calls method to check validity of Quantity and Price values. If all values are valid then create the objects and display the details
    for all 4 toys.
    -         Method that checks validity of quantity and price. If the quantity is 0 or negative then method should throw user defined
    exception with appropriate message and come out of program. Similarly if the price is 0 or negative then it should throw user defined exception with appropriate message and come out of program.
    -         Method that displays all details about a single toy in the following format, e.g. Here Total price should be calculated.
    Toy Identification                  :  S-1
    Toy Name                            :  Small Scooter
    Toy Description                    :  Ordinary 3 wheeler scooter
    Toy price                              :   650.50
    Quantity in hand                    :   3
    Total price of Toys               :    1951.50
    And i did the following coding
    import java.io.*;
    import java.lang.*;
    public class ToyCollection
         public int toyid;
         public String toyname;
         public String toydetails;
         public float toyprice;
         public int toyquantity;
         public void setToyid(int tid)
              toyid = tid;
         public void setToyname(String tname)
              toyname = tname;
         public void setToydetails(String tdet)     
              toydetails = tdet;
         public void setToyprice(float tpri)
              toyprice = tpri;
         public void setToyquantity(int tquan)
              toyquantity = tquan;
         public int getToyid()
              return toyid;
         public String getToyname()
              return toyname;
         public String getToydetails()     
              return toydetails;
         public float getToyprice()
              return toyprice;
         public int getToyquantity()
              return toyquantity;
         public static void main(String args[])throws Exception
              ToyCollection a=new ToyCollection();
              System.out.println("Enter the Toy id");
              BufferedReader br1=new BufferedReader(new InputStreamReader(System.in));
              int tid=Integer.parseInt(br1.readLine());
              a.setToyid(tid);
              System.out.println("Enter the Toy name");
              BufferedReader br2=new BufferedReader(new InputStreamReader(System.in));
              String tname=br2.readLine();
              a.setToyname(tname);
              System.out.println("Enter the Toy details");
              BufferedReader br3=new BufferedReader(new InputStreamReader(System.in));
              String tdet=br3.readLine();
              a.setToydetails(tdet);
              System.out.println("Enter the Toy price");
              BufferedReader br4=new BufferedReader(new InputStreamReader(System.in));
              float tpri=Float.parseFloat(br4.readLine());
              a.setToyprice(tpri);
              System.out.println("Enter the Toy quantity");
              BufferedReader br5=new BufferedReader(new InputStreamReader(System.in));
              int tquan=Integer.parseInt(br5.readLine());
              a.setToyquantity(tquan);
              System.out.println("The Toy Attributed you entered are displayed below \n" + " ID :" + a.getToyid() + "\n " +" Name :" + a.getToyname() + "\n " + " Details :" + a.getToydetails() + "\n " + " Price :" + a.getToyprice() + "\n " + " Quantity :" + a.getToyquantity());
    I submitted the above coding and this was the response from the evaluator
    *"You need to create array of toys. You are accepting details of toy in a single line and your program ends."*
    Eagerly awaiting your reply at the earliest people.

    DrLaszloJamf , here is the question.
    Create a class ToyCollection that stores information about different toys in a toy shop. The information to be stored about a single toy is,
    - Toy identification as String
    - Name of the toy as String
    - Short description about the toy as a String
    - Price of the toy as float
    - Quantity of the toy in hand as short integer.
    This class contains following methods,
    - Constructor method that assigns user input values to above mentioned variables.
    - main ( ) method that creates array of 4 objects of ToyCollection class and that takes input for all above details from the user and
    calls method to check validity of Quantity and Price values. If all values are valid then create the objects and display the details
    for all 4 toys.
    - Method that checks validity of quantity and price. If the quantity is 0 or negative then method should throw user defined
    exception with appropriate message and come out of program. Similarly if the price is 0 or negative then it should throw user defined exception with appropriate message and come out of program.
    - Method that displays all details about a single toy in the following format, e.g. Here Total price should be calculated.
    Toy Identification : S-1
    Toy Name : Small Scooter
    Toy Description : Ordinary 3 wheeler scooter
    Toy price : 650.50
    Quantity in hand : 3
    Total price of Toys : 1951.50
    What is the java code for the above ?

  • Software Systems Engineer (LV, LV RT, LV FPGA, CVI TestStand, Veristand, C/C++) available for full/part time and remote project work

    I am a software engineer with lots of experience in embedded and test systems. I am a certified TestStand developer, and recently finished a cRIO based embedded system for a medical device company using LV RT and LV FPGA. I have done a lot of TestStand customization and APIs to HIL and other test equipment and created my share of Windows/Linux based C++ applications and libraries.
    I am located in Southeast Michigan and interested in both local and remote project work, as well as full or part time employment.
    I will be at NIWeek 2010 on Wednesday and Thursday. I am holding a session on Simple TCP/IP messaging on Thursday.
    If you would like to meet during NIWeek and/or request my resume please email me at [email protected]

    I saw your posting on the LabView discussion forum concerning your need for a LabView Software Systems Engineer.
    I am a consultant and I am currently available for contract work.
    I have done the things you describe as experience you would like to have.
    I have attached a "Fact Sheet" which describes some of the systems I have built.
    You will notice that I am experienced with developing hardware systems and controls as well as software systems..
    I have over 20 years of experience developing these kinds of systems and have worked with many different kinds of hardware/computer interfaces as well as numerous different software environments.
    If you are interested in discussing this further please call or email me.
    Tom Moser
    ForMost Systems
    North Canton Ohio
    330-470-0404 begin_of_the_skype_highlighting              330-470-0404      end_of_the_skype_highlighting x202
    email:  [email protected]
    Attachments:
    IS 071410a .pdf ‏253 KB

  • Project working with Project Online in Office 365

    Hello,
    My question is related to project working and using Project Online to track projects.
    * Can I use a single "Project Online with Project Pro for Office 365" subscription for tracking and creating reports about all project sites and their tasks in Office 365?
    Meaning, if we have multiple projects designed in Project Pro and then uploaded directly to Office 365, can we gather the task, resource and progress information from these projects (created directly to Office 365) in a Project Online overview? One person
    using Project Online to oversee multiple projects, others uploading their projects and changing task information in Office 365 to a SharePoint site with Project Pro and Office 365 subscriptions.
    We want to have one person with Project Online overseeing the progress and create reports on all projects that have been uploaded to Office 365 (Project Portfolio Management), but not creating new projects. Is this possible with just one Project Online subscription?
    The other users would all have an Office 365 Enterprise 3/4 subscription for accessing Office 365, collaborating and updating their tasks. Project managers would have a Project Pro subscription for creating and uploading projects to Office 365.
    Thank you in advance.

    Helen,
    Your question is slightly confusing, so let me try and say it this way: 
    1) Your PMs (multiple) will use Project Pro, to create and publish plans to Project Online
    2) You will have one user who will 'administer' Project Online and create reports etc.,
    3) You will not have any other users access Project Online
    4) I am not sure about you 'SharePoint' comment--so excluding this.
    The problem is that, Project Pro+Office 365 does not necessarily give you access to Project Online. This combination is more useful when you are using just Project Pro or using project Pro to sync plans with Task lists on SharePoint Site. Plans that are
    uploaded this way will NOT appear in Project Online. So, the person who has the Project Online license will not have any data to report on.
    Having said that, here are few options:
    1) Stick with Project Pro +Office 365. Team Members can access "Task" lists in SharePoint Sites. In this scenario, Reporting will be somewhat complex, because each site is its own, and you might have to customize to be able to report across multiple sites. 
    2) If you want an easier Project Portfolio Management, Project Online is better. However, in this case, your PMs need to get Project Online with
    Project Pro for Office 365 which will allow them to publish plans to Project Online. Then your user with project Online license can generate reports for the portfolio easily. In this scenario, if you want team members to be able to submit timesheets,
    work with documents etc., you might want to look into getting the Project Lite for them (http://blogs.office.com/2014/03/31/project-lite-may-1st/)
    Hope it helps.
    Prasanna Adavi,PMP,MCTS,MCITP,MCT http://thinkepm.blogspot.com

  • Experienced CLA, CTD available for project work.

    Experienced CLA, CTD and CPI available for project work.
    Work model would be remote activity with availability for kick-off and integration onsite travel.
    Clear communicator with excellent presentation and customer facing skills.  Deep experience with large swath of NI technologies and hardware.  Wide capability with peripheral software tools such as sql, Amazon - AWS, bug tools, agile development, SCM, remote connectivity, networking, web service etc.
    Please email for more discussions:  [email protected]
    Michael Weir

    Hi All,
    Just to say I am still available for remote contract opportunities and that I am now also a Certified TestStand Architect.
    Message @ [email protected] for more information..
    Thanks & Regards,
    Shane.

  • Is projection work for Infotype which got subtype?

    Is projection work for Infotype which got subtype?
    I use the following statment but there is nothing show in my report.
    PROVIDE stras FROM p0006 BETWEEN pn-begda AND pn-endda
    WHERE P0006-subty = '1'.
    anyone can help?

    anyone can help?
    I'm quite confuse why projection is not work if I put the where clause for subtype.

  • No audio when i playback a project. All other projects work fine. My setting all seem right. if I solo a track I can listen to it. Unsoloed the Meters aren't even showing anything. Any ides anyone?

    No audio when i playback a project. All other projects work fine. My settings all seem right. if I solo a track I can listen to it. Unsoloed the Meters aren't even showing anything.

    seanyo888 wrote:
    No audio when i playback a project.
    try togling the Ducking menuItem

  • Reverse Costs for Project work item

    Good Day
    How do you reverse the costs for the project work item that has already been approved?
    Regards

    Good Day
    Thank you for your response, the problem has been resolved by reversing the hours captured not the costs. which someone else had authorisation to do which i didnt have.
    Regards

  • Adobe Media Encoder stopped working in this project, works in others

    Adobe Media Encoder just stopped working in my current project (in PPRO CS3). I'd output several MPEG2-DVD and Windows Media Files. Then I went to make one more MPEG2-DVD file, and when I clicked OK in AME, nothing happened. It should open a window to select where I want to put the file, and a few more options. No crash, no freeze, no error messages..and no output.
    None of the AME formats work (WMF, Quicktime, etc). But other exports do work. I made my MPEG2-DVD file using Export to Encore.
    I opened another project I'm working on, and AME does work in that project.
    Back to my current project, and it still doesn't work.
    I've rebooted, and uninstalled-reinstalled PP CS3.
    Anyone fixed this?  Thanks!

    After some more playing, I discovered that the other sequences in this project do still export using AME. So I made a new sequence, copied all the media from the problem sequence into the new one, and it exports OK.  I lose fairly extensive Encore chapter marking, but that's a minor problem. No way to "cut and paste" chapter markers, I don't suppose?
    For curiosity value, if I make a duplicate of the problem sequence, all the media in the duplicate sequence has a red bar (unrendered) except for the parts that have already been rendered, which have a green bar. This is straight transferred DVCam media and shouldn't need rendering.  If I add some new video to the sequence, it gets a red bar too. Bizarre. Oh, and it won't export.
    I tried a few other tricks with the original problem sequence: delete all media, and replace with one new short clip; delete the chapter markers; shorten the work area bar to just a few seconds and try to export "work area only"; turn off tracks; deselect either audio or video in AME... nothing worked to make this sequence export.
    I also tried making a whole new project, and importing this one into it. Nothing changes - the problem sequence still wont' export, a copy of it leaves all media "unrendered..." exact same trouble as the original project. But it was while playing with this new project that I discovered that my other sequences did export, leading me back to the original project. That should have been the first or second thing I checked. Brain-dead Sunday.
    Conclusion: something corrupt in the sequence, but darned if I can figure out what. Not the media. Not the chapter markers. There's code in the sequence itself, and I guess that must be it.
    Enough time wated on this project. Thanks, all!
    Gary

  • How to get garageband projects working again from .aif files?

    My harddrive crashed a few weeks back but i was able to recover the data in it. However, the garageband projects (which is .band files) are now gone and you can only see hundreds of fragments of .aif files which are little parts of the original projects i made. How do i convert all of this .aif files to be a working garageband project again? i really need help here, please

    the best you can do is to create a new project, and drop the AIFF files into its timeline. from there you can arrange, edit, and mix them to try to recreate your original project.

  • Air project works in test but fails when installed.

    I have a little project I'm trying to put together as a stand-alone widget.  It loads some sounds that are set up in sets and saved in a subdirectory of the application directory.  I have a movie clip in the library that appears when the "Config" button is pressed.
    Works great in test mode.  The sounds are loaded and play.  The config screen shows up when the button is pressed.  The components (two sliders) work and their listeners fire.  Wonderful!
    But when I pack it up as an installable AIR file and then actually install it on my poncuter, epic fail.  The sliders don't appear, the config button doesn't call up the configure movieClip and no sounds are played.  The buttons that I placed on the stage at design time appear but don't appear to function.  Nothing I added programmatically appears.
    Is this an Adobe CS3 problem or did I miss something in the security sandbox?  No files are being written to,  I'm getting a directory listing of ./sets and then opening the files in that directory where .isDirectory comes up false.  The files are XML and point to a folder off the ./sets folder and the files in that set.
    I could probably track this but I have no experience debugging an AIR project.  Trace is not working in development.  How do people debug the final?  Output to a dynamic text field?

    Sorry to hear you are having a tough go of it...
    there should be no reasons that your application functions differently debugging than when you install the application so the behavior you are seeing is likely something easy to fix (as opposed to having to re-write a bunch of AS code :D).
    Couple of Questions:
    1.) Are you using CS3 as-is out of the box - or did you manually upgrade your AIR SDK inside Flash Professional to target a later version?
    2.) What version of AIR are you targeting?
    3.) What version of AIR do you have installed on your system?
    4.) What OS are you running on?
    5.) Can you install any AIR applications on your machine and have them run properly? (Bunch of AIR apps here: http://www.adobe.com/go/airmarketplace)
    6.) It sounds like you are likely using CS3 and not the command line tools - but if you are using the command line tools (ADT) to create your AIR package what command line do you use to create it?
    That should help get things rolling...but likely the best course of action is for you to send us your project so we can take a look. You can send your project to cthilgen at adobe.com - please do not send a zip as our mail system will auto-reject it.
    Also, you should be able to get trace output. If you are using CS3 the trace output goes to the output panel. (Windows->Output) If you are using the AIR command line tools (ADL) - debug output is enabled by default (you have to manually pass -nodebug to turn it off).
    Hope this helps.
    Thanks,
    Chris Thilgen
    AIR Engineering

  • How to make sure, on success action 'Open another project' works on both ipad and desktop devices

    If I have a project with a open another project in a new window action set to a button in that project, will only placing the swf and htm files of the newly opened project within the published folder of the parent project be enough for allowing the parent project to be played successfully both in desktop and mobile devices like ipad? To allow this, I presume multiscreen.html file located within the published folder of the parent project is the file to be used. But, since swf files can't be played on mobile devices, do I need to place the multiscreen.html file located within the published folder of the newly opened project into the published folder location of the parent project? The parent project folder location already has multiscreen.html file specific to that project and if the multiscreen.html file of the newly opened project need to be added to the published folder location of the parent project(which also has multiscreen.html file), how do I go about doing this? Can I just rename the mulscreen.html file of the newly opened project to say something different like multiscreen1.html and add this file along with the swf and htm file into the published folder location of the parent project, so that it works for both desktop or mobile devices.

    From what I'm hearing, you're probably wise to have a copy of the file in both locations.  One in the same folder as the SWF, and the other in with the HTML5 files.  What I don't know is exactly where in the HTML5 folders your file would need to be.  It might need to be at the same level as the index.html.  I haven't tested this.
    You should be able to figure out the answer to a lot of your questions just by testing things out on content uploaded to a web server.  At the end of the day, if it works, it works.

  • Labview Programmer needed for project work in Milwaukee Area or over the internet

    We have a project I need to get done before summers end and we have majotiy of the code. My company builds robotic systems which we use for industrial inspections mainly in the petrochemical industry.  These robotic systems work with a ultrasonic systems which we use to take thickness measurements of piping and pressure vessels using ultrasound.   We have the ultrasound equipment and most of the software as said previously, we just need it polished up and some additions made.  Here is a link from NI which is simular to what we do and you can even download the code and have a look at there code: http://zone.ni.com/devzone/cda/epd/p/id/3618 . Our code is a bit more complex but you get the picture. 
    This position is not a full time position as of yet.  We are looking for someone to work with us on a contract basis for now. We need someone experienced with the following; Data aquisition, Data analysis, Experience with RF, USB comunication.  We perfer to hire somebody local but if we cant we can can do this over the internet.  If you are interested, give us a reply with contact info.  Thanks.
    Regards,
    Bill

        Bill,
    We are able to offer you the help you need on
    this.  I work for a LabVIEW/test-system consulting group based here out
    of Salt Lake City...not too far if a quick trip is needed.  Among the
    six of us, four of us are former NI employees and we count with a lot of LabVIEW experience and regularly do
    contract work, local and remote.  This sounds interesting and right up
    our alley as far as experience goes.  I'd refer you to our website for
    further info about different projects that we've done for many
    clients.  www.mooregoodideas.com.
    If this seems workable for
    you, feel free to shoot me a note at [email protected]  I'd be
    curious to know more about what you're after and how we can help you
    out. 
    Thanks,
    Jim

  • Urgent :Deploying ADF Project

    Dear All :
    i am deploying my project into stand alone weblogic server 10.3.2.0 and i user jdevloper 11 , i face the following problem while i am tring to tun it :
    unresolve application library referance , define in weblogic-application.xml [extenstion-name :oracle.jsp.next,exact match :false]
    how can i add this library .
    and should i add any new things to the WLS (stand alone) , should i add adf librarieres or install jdevloper .
    Best Regards
    Edited by: bara on Jul 3, 2010 11:44 PM

    In order for things to work, you must extend the domain with the Java Required Files (JRF), which includes the ADF libraries. You can get these (among other ways) by downloading the Application Development CD from the WebLogic download page and installing it in your WebLogic home. You can then run the configuration wizard to extend the domain with the ADF libraries.
    John

  • Will 3.0 project work in 3.5 FCE?

    just wondering...i have fcehd3.0 on my G5....got a macbook pro with 3.5...if i install 3.5 onto the G5 will i be able to work on a project started on 3.0??
    thanx

    I agree with Tom. If you're in the midst of a big project, and you have the choice, don't upgrade until you're done with your project.
    While rendering time in 3.5 may or may not be faster than in 3.0 it won't be a whole lot faster. Rendering is more dependent on the processor and RAM than it is on the software.
    As for the versioning, 3.5 is fine on both Intel and PPC Macs, it's a universal version. The big deal is that 3.5 has fully keyframeable effects and solved some capturing problems that cropped up in 10.4.9

Maybe you are looking for

  • End of project markers

    Hi i read some of the post here regarding this and I believe i need to hit option-z then find the purple triangle. Problem is, i only see blue triangles. Is this the same? I have a 8sec track which i cropped till it's 3sec. When I export it out, the

  • TNS-12535: TNS:operation timed out with ORA-609

    Hi All, In 11gR2 Database on Linux ,I am getting the below error for one client only - This is a c++ application which is accessing database from different linux machines with Oracle Client installed on each machine(OCI). C++ application is working f

  • Please Help with text parsing problem

    Hello, I have the following text in a file (cut and pasted from VI) 12 15 03 12 15 03 81 5 80053 1 1,2,3 $23.00 1 ^M 12 15 03 12 15 03 81 5 84550 1 1,2,3 $15.00 1 ^M 12 15 03 12 15 03 81 5 84100 1 1,2,3 $15.00 1 ^M 12 15 03 12 15 03 81 5 83615 1 1,2,

  • Create default sql query in DashBoard Prompt

    Hi, I want to set the default value in a DashBoard Prompt to current year with a sql query? thnx, Robbert

  • How to make my iphone openline?

    Or can o just pop in another sim from other carriers and it will be just fine?