How to avoid  save same employee name under same company name

hi,
i am doing flex4 web application with mxml tags,
i am having one text box and one datagrid and one save button. text box having one company name, data grid having employee names.
when i click save button which is placed in outside the datagrid it will save all the details.
Now my requirement is text box having the same company name and when i enter same employee name in datagrid and click save button means it wont
allow to save that record, and through msg box with some alerts.
How to do this,
Any suggession or snippet code are welcome
Thanks ,
B.venkatesan

hi raghs,
i want to add records in cloud.bt while adding the records if we enter existing record details and try to save again na it wont allow to that record.
that time the alert box  should show this msg "This record is already existing record in cloud database.
ex: one company name called mobile. i am adding a employee name called raja now i save this record,its data saved in     cloud DTO
  again try to add same employee name raja under the same compny means it should through error.
I am give my code here please if any suggession tel.
CODE:
private function saveRecord():void
            refreshRecords();
            model.employeeDetailsReq=new EMPLOYEEDETAILS_DTO();
                var lengthindex:uint=model.employeeDetailsReqRecordsList.length;
                var i:int;
                for (i = 0; i < lengthindex; i++)
                if((model.employeeDetailsReqRecordsList.getItemAt(lengthindex).employ ee name==customerdet.selectedItem.employeename)&&
                     (model.employeeDetailsReqRecordsList.getItemAt(lengthindex).employeeN  umber==customerdet.selectedItem.employeeID)){
                    Alert.show("you cannot Add Same CustomerName and Invoiceno again");
(when this line come the error through like this: Index '8' specified is out of bounds.
else
var dp:Object=employeedet.dataProvider;            
var cursor:IViewCursor=dp.createCursor();
var employeename:String = employeename.text;
         model.employeeDetailsReq.employename = employeename;
model.employeeDetailsReq.employeeNumber=cursor.current.employeeID;
var sendRecordToLocID:QuickBaseEventStoreRecord = new
                    QuickBaseEventStoreRecord(model.employeeDetailsReq, new
                        KingussieEventCallBack(refreshList))
                sendRecordToLocID.dispatch();
<mx:Button  id="btnAdd" x="33" y="419" enabled="false" label="Add" width="65"  fontFamily="Georgia" fontSize="12" click="saveRecord()"/>
employeename and employeeID are datafields of datagrid. datagrid id=customerdet
employeeDetailsReqRecordsList---recordlist of save records
Thanks,
B.venkatesan

Similar Messages

  • How do i save a numbers doc under a different name

    I'm trying to save a numbers document under a different name.  I could change it easily yesterday but it's not working today?

    What version of OS X and Numbers are you using?
    If you are working under Lion and the latest version of Numbers use File > Duplicate and then Save.
    Mario

  • How do I save a pages doc under different name?. it only says save version. I want to call it differentyl!, how do I save a pages doc under different name?. it only says save version. I want to call it differentyl!

    how do I save a pages doc under a different name?. it only says save version. I want to call it differentyl!

    Dan Mitchell1 wrote:
    (1) The OP is technically correct - there is no direct equivalent of  "save as".   There is "save a version" and there is "duplicate".
    (2) So far it seems that to get the same effect as "save as" you need to create a "duplicate", then save the duplicate.  The duplicate will automatically be given a name like "docname.copy.pages", which can be changed to that desired.
    (1) nobody wrote about the technical aspect of the OP's question !
    But, you wrote something wrong.
    There is a "Duplicate" item, a "Save a Version" item and there is a "Save…" item.
    (2)  The reproduced help page clearly state that the first step is to trigger 'Duplicate' For the second step, it's not clear. It seems that the ones writing the Help were not informed of the definite choices made by the developers. They wrote "Save As" but never was such an item. It was "Save As…" in which the ellipsis is an important component. At last, the developers defined two items : "Save…" and "Save a Version" ( at this time I'm running 10.6.8 so I can't check if this item has or hasn't an ellipsis).
    Yvan KOENIG (VALLAURIS, France) lundi 1 août 2011 10:20:08
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • When I try to same an image under the command 'save as' it will only let me save as file types 'firefox document' or 'all files' and when I try to look at them later they dont work. How can I save an image as the same file type it is on the web site?!

    When I try to save an image under the command 'save as' it will only let me save as file types 'firefox document' or 'all files' and when I try to look at them later they dont work. How can I save an image as the same file type it is on the web site?!
    == This happened ==
    Every time Firefox opened
    == I updated to one of the firefox versions (Not sure which one it was)

    Thanks Alex, but sadly I already tried that. Neither .docx or .xlsx files show up in the content list. They both show as a Chrome HTML document so changing how Firefox addresses those doesn't help since it thinks its the same type of file. I don't think I can manually add files into the "Content Type" left side nav.

  • What do I need to do, to sumbit an app under a company name?

    What do I need to do, to sumbit an app under a company name?

    You have to have a real company as evidenced by official state/government documents.
    Then you contact Apple to have them change your individual account to a company account.
    They will ask you to fax the above mentioned documents as proof.

  • Can I change name in receipt from my name to my company name when I renew iOS developer membership?

    Hi
    I have some question for asking. I receive email from Apple to renew my iOS developer. I want to change receipt payment from my name to my company name. Can I do that? For the fist enrollment I use my credit card for payment and the receipt specify my name but my company accounting need receipt specify with my company name only. How can I do? or Do you have other choose for paying for specify company name in receipt not my name. Pleas help me.

    I mean for the first enrollment I use my company account to enroll but I pay for membership by my cradit card so receipt specify my name not my company name. Now I want to renew by change specify in receipt to my company name only. Can I do that? and How to do?
    Thank you for you answer.

  • How to use more than one device under same apple ID?

    How do you you use more than one device under same apple ID? say for facetime?

    You don't. One Device and one Apple ID.

  • How can i save differnts data in the same file?

        Hi all,
    i need some help.  I'm working  on a project  for students an th university. We have to devellop  a programm for LEDs measurement so that all the measure data must be save in de same file.  We have develloped the programm, but we have  a big problem to save the measure in the same File.
    When we do the first  measure , the file must be created and the fisrt data gonna be save in this file that is correct
    When wie do the second measure, the third  ....  measure, the programm ask us to comfirm the file or where we want save our data
    We need some help, to know how we can change  or devellop this programm so that, for the first measure , the file must be created and the fisrt data gonna be save in this file,  the second measure the same file must be chose and from the third and more the measure data must be automatically save in this file without the programm ask to chose or to confirme a file? 
    I attach a part off this programmm
    Thanks
    Attachments:
    SR830DSP19.vi ‏212 KB

    Move the "File Dialog" where you open your new file out of the while loop. Only pass the refnum inside the loop.

  • How to avoid the "Enter Employee Responsible" error in an Opportunity

    Hi CRM gurus,
    My employer wants me to create a custom Lead Type (and an Opportunity Type) which will look just like the SAP default Lead (and Opportunity Type respectively), except that he wants a custom Partner Function called "Sales Person" instead of the two default Partner Functions "Sales Representative" and "Employee Responsible".
    So, I made a copy of the PF "Employee Responsible" and named it as "Sales Person". I made a copy of the Partner Determination Procedure for both Lead and Opportunity Transactions. Deleted the PFs "Sales Representative" and "Employee Responsible", and added the PF "Sales Person". I made a copy of the Lead and Opportunity Transaction Types, and assigned the appropriate PF Determination Procedures. I got the Access Sequence and the Partner Determination Procedure right (checked it by clicking the button "Check Part. Determ. Proc"). I did all the miscelleneous minor changes that need to be done.
    Now, when I create a Lead, and then create an Opportunity as a follow up document, and add a Product to this and try saving the Opportunity, I get an error message saying "Enter Employee Responsible".
    It seems that the PF "Employee Responsible" is a required field in the SAP default Opportunity, but how can I avoid that in my custom Opportunity?
    Even if we try to avoid this PF now, does it have any repercussions in the follow-up documents that get generated from this transaction (like Sales Quotation, Sales Order etc) or in any other way. How important is the PF "Employee Responsible", or better, what's the significance of this PF in the Opportunity transaction?
    I'll appreciate any thoughts from you. I will instantly award max points for the correct answer
    Thanks,
    -Pras

    Kai,
    Thanks for your response. I have mailed you the screen-shots of my configurations. I did not know how to pass this info via SDN, hence I mailed it directly to your e-mail ID in your profile. I am sorry if that's not the right way to approach for help.
    >>If you maintain an additional employee responsible, does it work then?
    I have set the configuration "Only Functions Assigned to procedure" for the Permitted Functions in the Partner Determination Procedure. Hence, I do not have an additional "Employee Responsible" Partner Function in my list. This is to not permit the end-user to use other Partner Functions besides the mentioned here. The client wants to make this as simple as possible without giving too many options to the end-user (sales folks).
    However, I will temporarily set this field to "All defined Partner Functions" and, enter a BP for Employee Responsible and let ytou know what I see.
    Thanks a zillion for your help.
    Thanks and regards,
    -Prashanth

  • Posting a podcast under my company name

    How can I post a free video podcast in iTunes using my company name and have that displayed as the author instead of my personal name?

    The author's name is carried in the 'itunes:author' tag in the feed. I asasume you aren't hand-writing your feed, but using a podcast creation program or service - most of these provide a place where you can enter the author's name, so you just change it there and republish. The Store will pick it up but not for a couple of days or so - possiblly not until you post a new episode.

  • Nagging One-Time .exe files with multiple names and NO company name associated V.11.0.10

    Multiple attempts to load and have an unsigned file execute multiple times a day.  see below;  Could these programs come from Adobe, and why would no company name be associated with the file?
    WinPatrol ALERT: New or Changed Program – Startup Program
    A new automatic startup program has been detected.
    Type: RunOnce
    Often required for software updates and new installations.
    This program should only run once when you restart your computer.
    This program could slow your computer by running in the background.
    Was this program expected and something you want active all the time?
    No description found.
    Company name not included in this program
    Accept Change / Reject Change?
    CHANGE REJECTED each time.
    Seems to display after opening a PDF file.
    Date: 02/04/15
    exe FILE NAME: 1423065554
    02/05/15  1115AM
    1423156848
    02/05/14  1140AM
    1423157865
    02/05/15  1150AM
    1423158578
    02/05/15  1229PM
    1423160904
    02/05/15  0120PM
    1423163901

    Adobe had this issue Multiple RunOnce keys created | 11.0.10, 10.1.13 | Acrobat, Reader

  • How can I save a pages document with a new name

    I often make changes to pages and numbers documents and save them with a new name. This seems to be impossible under LION. To remove the save as command is very shortsited. The only way I found to get around that is to save the changed document as a templete, remove the changes I made to the original document, Open a new document using the templete I just created, saving that document under the name I would have created using the save as command if it was still there, and then delete the templete. How in the **** is this better? Lion has disrupted almost everything I used to do in Snow Leopard.
    The only thing that syncs with mobile me is email. Everything else quit working. I reported the mobile me issue to Apple and am waiting for them to contact me.

    Antuco wrote:
    I think the issue is easy:
    1.- Try to go to the File Menu
    2.- Then hold down the Option Key
    3.- You will see in the File Menu (while you press the option key) the "save as" option.
    4.- Choose the "save as" option.
    5.- Choose the file where you want to save your document (you can choose any folder or sub foler in your mac or even iCloud). If you want to, you can even rename the open document where you are working in.
    I hope this would help
    Antuco
    That is wrong, (unless you have Mountain Lion), the correct answer is above, posted by deggie

  • Why do my video podcasts now save in a folder under the file name "download"  and not the name of the podcast

    I just downloaded Itunes 10. When I download video podcast they save in a individual folder with the podcasts name.tmp, then inside the folder is the video file just named DOWNLOAD. This didnt happen in the previous versions of itunes why is this happening in Itunes 10? How can I change so that the files save as the name of the podcast.

    Some users seem to be having issues with the latest build (10.2.2) where files are not moved/renamed after downloading. It works fine for me in a test library so I'm not quite sure what the issue is. You may find things sor themselves out if you turn off Keep iTunes Media folder organised and then turn it back agaqin (assuming you use that feature). Hopefully the next update isn't too far away.
    Alternatively you can try my script ConsolidateByMoving which should move selected files that are in the "wrong" place to their standard iTunes locations.
    tt2

  • How to add save button in ButtonControl.vm same as submit button?

    Hi,
    I want to add save button in ButtonControl.vm and also need to save the current page data into siebel using the save button.
    how to add type,name and how to get event handler in java for the input type for save

    Using the version of OPA Web Determinations that ships with OPA Connector for Siebel 10.2 or later, the save button will persist the current Web Determinations data to the Siebel OPA WD session tables.
    Davin.

  • How do I run a script saved under a diffrent name

    Hi
    I have a well working script that I expand with other features and save it with a different file name.. However this new script seems to fail due to that it somewhere still has a reference to the original script...
    How do I go around this without having to rewrite everything...
    I use TestStand v.3.1
    Thanks
    Claus

    Hi Antonio,
    Thanks for your reply.. I could understand that the behaviour I saw in my .seq script was not a known problem, so I invetigated it further.. And I solved the issue
    In a call sequence I had made it look in a specific file instead of "Use Current File"..
    Regards
    Claus

Maybe you are looking for