While i am trying to save the existing record with same fields in cloud DTO using flex4 mxml app

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 in cloud DTO.
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.
this is my 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).employee name==customerdet.selectedItem.employeename)&&
                      (model.employeeDetailsReqRecordsList.getItemAt(lengthindex).employeeNumber==customerdet.s electedItem.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
please help .
any suggession or snippet code welcome
B.venkatesan

sorry but you question  is not very  clear...are you trying to show the item clicked on the datagrid on the input box? with an alert? you should look at "listevent" if thats the case?... sorry i just dont follow.
Miguel

Similar Messages

  • In OWB I need to update the target table with same field for match/update

    In OWb I am trying to update the target table with the match and the update on the same field can this be done. I am getting a error match merge error saying you cannot update and match on the same field. But in SQl my select is
    Update table
    set irf = 0
    where irf = 1
    and process_id = 'TEST'
    Hwo do i do this in OWB.

    table name is temp
    fields in the table
    field1 number
    field2 varchar2(10)
    field3 date
    values in the table are example
    0,'TEST',05/29/2009
    9,'TEST',05/29/2009
    0,'TEST1',03/01/2009
    1,'TEST1',03/01/2009
    In the above example I need to update the first row field1 to 1.
    Update temp
    set field1 = 1
    where field1 = 0
    and field2 = 'TEST'
    when I run this I just need one row to be updated and it should look like this below
    1,'TEST',05/29/2009
    9,'TEST',05/29/2009
    0,'TEST1',03/01/2009
    1,'TEST1',03/01/2009
    But when I run my mapping I am getting the rows like below the second row with 9 also is getting updated to 1.
    1,'TEST',05/29/2009
    1,'TEST',05/29/2009
    0,'TEST1',03/01/2009
    1,'TEST1',03/01/2009

  • While importing, how do I save the file name with the artist in it?

    Currently when Itunes imports any cd, it imports it with the song name only, and put it in a folder with the artist name. I would prefer the tracks to be named 'Artist - Song.mp3'.
    Any idea how I can do this? It's driving me crazy. I need to rename all the imports with the artist on the file name.
    Thank you!
    I have itunes 6

    Anyone have any suggestions for this problem? I have the same issue. I have iTunes for Windows, so Doug's AppleScripts for iTunes is not an option.

  • An error has occured while trying to save the application. Please try again.

    Hi,
    When i try to add application on my primary CRS node i am getting below error
    An error has occured while trying to save the application. Please try again.
    This also happens if i edited another existing scripts
    CCX version is 8.0
    thanks

    How about if you try to add it on the HA server?
    Which server is master at this time?
    Chris

  • I finally got my iphone out of recovery mode, after 7.1.1 but now it won't accept my Icloud info and states "An error occrured while trying to save the Icloud account?" What do I do????

    I tried updating my iphone 4 to 7.1.1 and it went straight into recovery mode.... I finally got my iphone out of recovery mode, but now it won't accept my Icloud info and states "An error occrured while trying to save the Icloud account?" What do I do????

    Same situation. I installed iOS 8 beta 4 on my iPhone 5 and a few days later my iCloud account disappeared. My contacts and calendar entries are gone.
    My Mac Mini and MacBook do sync as they should with iCloud.
    When I try to log in to iCloud on the iPhone (the username shows "[email protected]" and password shows "required"), I put in my username and password and tap "Sign In", It says "Verifying" at the top and after a while checkmarks appear next to my username and password. Then I get an error message saying "An error occurred while trying to save the iCloud account". If I tap OK the message goes away, leaving my username and password intact (checkmarks are now gone). If I tap "Sign In" again I get a message saying " '[email protected]' is Already Added. This iCloud account has already been added to your iPhone". If I go back to Settings and then go into iCloud again it's not set up and appears as I stated at the beginning of this paragraph.
    Nothing works and the sync does not occur. Contacts are empty and Calendar has no entries.

  • "An error occurred while trying to save the iCloud account"

    cannot logon to my iCloud account on iPhone but have no problem logging on mac, so username+password is ok. Get the above error message.
    tried to reset all settings but did not help.
    Any ideas?

    Same situation. I installed iOS 8 beta 4 on my iPhone 5 and a few days later my iCloud account disappeared. My contacts and calendar entries are gone.
    My Mac Mini and MacBook do sync as they should with iCloud.
    When I try to log in to iCloud on the iPhone (the username shows "[email protected]" and password shows "required"), I put in my username and password and tap "Sign In", It says "Verifying" at the top and after a while checkmarks appear next to my username and password. Then I get an error message saying "An error occurred while trying to save the iCloud account". If I tap OK the message goes away, leaving my username and password intact (checkmarks are now gone). If I tap "Sign In" again I get a message saying " '[email protected]' is Already Added. This iCloud account has already been added to your iPhone". If I go back to Settings and then go into iCloud again it's not set up and appears as I stated at the beginning of this paragraph.
    Nothing works and the sync does not occur. Contacts are empty and Calendar has no entries.

  • An error occrured while trying to save the Icloud account

    after getting my phone out of recovery mode from updatinig 7.1.1 I now cannot set up Icloud as is sais everytime I try "An error occrured while trying to save the Icloud account" Please does anyone know what this means or how to get around this???

    Same situation. I installed iOS 8 beta 4 on my iPhone 5 and a few days later my iCloud account disappeared. My contacts and calendar entries are gone.
    My Mac Mini and MacBook do sync as they should with iCloud.
    When I try to log in to iCloud on the iPhone (the username shows "[email protected]" and password shows "required"), I put in my username and password and tap "Sign In", It says "Verifying" at the top and after a while checkmarks appear next to my username and password. Then I get an error message saying "An error occurred while trying to save the iCloud account". If I tap OK the message goes away, leaving my username and password intact (checkmarks are now gone). If I tap "Sign In" again I get a message saying " '[email protected]' is Already Added. This iCloud account has already been added to your iPhone". If I go back to Settings and then go into iCloud again it's not set up and appears as I stated at the beginning of this paragraph.
    Nothing works and the sync does not occur. Contacts are empty and Calendar has no entries.

  • ICould error, "An error occurred while trying to save the iCould account"

    Randomly, all contacts names were gone and replaced with numbers. Told to sign-in to iCould, signed it, got error "An error occurred while trying to save the iCould account"
    -Help Please

    Same situation. I installed iOS 8 beta 4 on my iPhone 5 and a few days later my iCloud account disappeared. My contacts and calendar entries are gone.
    My Mac Mini and MacBook do sync as they should with iCloud.
    When I try to log in to iCloud on the iPhone (the username shows "[email protected]" and password shows "required"), I put in my username and password and tap "Sign In", It says "Verifying" at the top and after a while checkmarks appear next to my username and password. Then I get an error message saying "An error occurred while trying to save the iCloud account". If I tap OK the message goes away, leaving my username and password intact (checkmarks are now gone). If I tap "Sign In" again I get a message saying " '[email protected]' is Already Added. This iCloud account has already been added to your iPhone". If I go back to Settings and then go into iCloud again it's not set up and appears as I stated at the beginning of this paragraph.
    Nothing works and the sync does not occur. Contacts are empty and Calendar has no entries.

  • Attempting to save a bookmark, i get "a problem occured while trying to save the bookmark. Please try again later". ???

    When I try to save any page to my yahoo bookmarks, I get a blue box and at the top it says, "A problem occured while trying to save the bookmark. Please try again later. All of my bookmarks are there but I can't add any more. I reloaded the toolbar, but still the same...thanks...

    To help other users find solutions, please return to this Thread and '''Sign-in''' to the forum with your Username and Password:
    click on '''"Solved It"''' Next to the reply ABOVE that '''BEST''' solved your Question
    '''DO NOT click "Solved It" next to this reply

  • I am trying to set an open DNS using the MacAir. But when I tried to flush the existing one at utilities/terminal, it will not work.  I am using Yosemite.  May I know what should be the command line so that I can shift to an open DNS?  Thanks

    I am trying to set an open DNS using the MacAir. But when I tried to flush the existing one at utilities/terminal, it will not work.  I am using Yosemite.  May I know what should be the command line so that I can shift to an open DNS?  Thanks

    >SystemPreferences>Network>DNS

  • Is it Possible to Save the existing querry in Prod System

    Hi Gurus
    Is it possible to save the existing Querry in Production system with another name.if yes pl. tel the procedure.
    thanks and regard kumar. [email protected]
    Message was edited by:
            s k

    Hi s k,
    You can do the query copy in the DEV (development system) & transport the request to the PRD (production system).
    This is the SAP recommended best practise.
    However, you can also directly do the query copy in PRD system, provided you (sap login) have the authorizations to do the same.
    For more information on SAP query, check the following link:
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/cb3efb455611d189710000e8322d00/frameset.htm
    best regards,
    Thangesh

  • How to recover photo that i deleted accidentally while i was trying to upload the photo on the phone??

    how to recover photo that i deleted accidentally while i was trying to upload the photo to the computer??
    also, itn't itune will backup myself whenever i sync???Will the old back up file got updated when i connect the phone with computer??

    I don't think recovery software will help since the file isn't just deleted, it's overwritten.  If you want to try, the backups are located at one of these locations:
    Mac OS: ~/Library/Application Support/MobileSync/Backup
    Windows XP: %AppData%\Apple Computer\MobileSync\Backup
    Windows Vista: %AppData%\Roaming\Apple Computer\MobileSync\Backup
    Windows 7: %AppData%\Roaming\Apple Computer\MobileSync\Backup

  • Opening a new tab in safari opens an untitled tab while replacing the existing tab with top sites

    When I open a new tab in safari, it opens an untitled tab while replacing the existing tab with top. Then if I have other tabs open, the website url of the page I was on before I opened the untitled tab freezes and is shown on each other tab.
    How can i fix this problem? It is starting to occur with increasing frequency.

    I had the same problem and I suspect you are using Glims. I uninstalled Glims and voila, problem gone. I reinstalled Glims and the problem returned.
    Link to Glims uninstaller for those who have this problem http://www.MacHangout.com/dwnlds/Glims-UnInstall.dmg.zip
    I'll report the bug and hope they fix it soon, I like Glims.

  • Trying to save the order transaction i get this note?

    hi,
    when i trying to save the transaction in order management i get this message but still i am able to save the record
    note: order level sales credit updated to match new order sales person
    can someone explain what this note means?
    am i missing some setup?

    When you use a sales person on the order or line, oracle automatically creates a record in the sales credits (actions --->Sales Credits). Hence you can split the sales person credits into two or more depending on your need. So when you are changing the sales person on the order or line it is automatically synching that up with the sales credits. Hence the message.
    Thanks
    Nagamohan

  • Each time I open my Firefox browser, the tab from the last time opens. I have the browser set to open on my home page, not to the tab from the last time. I keep trying to save the setting for the browser to open on my home page but it doesn't.

    Each time I open my Firefox browser, the tab from the last time opens. I have the browser set to open on my home page, not to the tab from the last time. I keep trying to save the setting for the browser to open on my home page but it doesn't.

    Try to create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.org/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If the new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br /><br />
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/security/scanner/en-us/default.aspx - Microsoft Safety Scanner
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    You can also do a check for a rootkit infection with TDSSKiller.
    *http://support.kaspersky.com/viruses/solutions?qid=208280684
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

Maybe you are looking for

  • IPhone 4s  version 6.1.3 mms code for T-mobile

    Ever since I updated my iPhone 4s to version 6.1.3 but can't send pictures or recieve them. Need new MMS code for tmobile? Does anyone know where I  can get it?

  • Techn.object with BAPI_SALESORDER_CREATEFROMDAT2

    Hi, I am currently using the BAPI 'BAPI_SALESORDER_CREATEFROMDAT2' in a program in order to create sales orders. This is no problem so far. Now the customer wants to create one serial number for each sales order item. Unfortunately there is no struct

  • Switching from 15" Pro to 13" Air

    I have a 2010 MacBook Pro 15", 2.4gHz i5 with hi-res antiglare screen. I might be able to sell it and only add a hundred dollars or so to it to get a 2012 MacBook Air 13" base model, making it almost an even trade. I don't use much of my hard drive s

  • How to Remove Shutdown Prompt

    Is there any way to either 1) completely remove/disable the prompt that appears when selecting Shutdown from the Apple Menu or 2) reduce the time before it automatically shuts down? It's not a big deal, but when I hit shutdown, I mean shutdown, not "

  • Utilities Dock Icon Will Not Change

    For some reason when I do get info on my utilities the icon is proper but as soon as I move it to my dock it changes to look exactly like my activity monitor icon.  Anyone know why and how to fix it?