How to save only newly added elements from the trailing list

Dear,
I have a shuttle bean with left and right trailing lists.
At some point I save the right trailing list content to DB. Then I add additinal elements to the trailing list. Trying to save again gives me oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key
exception.
What is the approach I can take to only save newly added elements from the shuttle?
I am wondering if I can put the extra logic (what logic would that be - do I need to check the PK value that is already in the database?) in the AM method with which I save the shuttle like here (TicketID and ResponsibilityID are primary key)
if (items != null)
Object ia[] = items.toArray();
for(int i=1; i<ia.length; i++)
Row rowApproval = vo.createRow();
vo.insertRow(rowApproval);
rowApproval.setNewRowState(Row.STATUS_INITIALIZED);
Row row = vo.getCurrentRow();
row.setAttribute("TicketId",items.get(0));
row.setAttribute("ResponsibilityId",items.get(i) );
row.setAttribute("Status",items.get(i));
or should I do something in the EO?
Thank you
Anatoliy

Hi,
Can you please clarify - do I have to make a loop? I mean for every record/element in the trailing list
I run the VO (that I will create) VO.executeQuery?Yes you do need to execute the VO for every record....by passing the different parameter in each iteration.
Regards,
Gyan

Similar Messages

  • There is absolutely NO way to drag and drop newly purchased music from the Purchased list on the phone into my iTunes library?  I'm finding it hard to believe that something so simple cannot be done!

    I like to make MP3 CD's when I have people over, or when my friends have people over so I can just pop them into the CD player and let them play all night without having to worry about changing the CD or anything.  Well, Apple's music is in AAC format, so I have to convert the songs to MP3 files using the converter in iTunes.  So I'll convert them to MP3's and just delete the AAC file so I don't have doubles.  The problem is, the next time I plug the phone into my laptop to transfer new purchases, iTunes thinks that the songs I converted aren't there anymore because the phone has them as AAC files, and iTunes has them as MP3 files, so it doubles the music again...EVERY time!!  It's very frustrating!  So this is why instead of clicking Transfer Purchases, I would like to be able to just drag and drop the songs I want from the Purchased list on the phone into my iTunes library.  I hope I explained this right...lol.  Unfortunately, it doesn't seem like I'm able to do that.  I'm hoping maybe somebody here can help me out and give me some pointers on what to do about this.  Thanks!!

    That stinks!  I can actually do that at my house...I just plug my iPhone right into the wire that's plugged into my receiver in my living room...but some of my friends aren't "technology savvy"...lol...so they just have DVD players and I'll put the CD in there because it will read an MP3 disc.  What's funny, is I have the phone set to "Manually Manage Music", and when I plugged it into the laptop just now, the one song I downloaded last night on the phone, transferred over to the iTunesl library.  That NEVER happens.  And it only transferred the one song...it didn't double the other songs like it ususally does.  I swear, iTunes does what it wants, when it wants sometimes...lol.  Thank you for your quick response. 

  • How find print program and form name from the spool list

    Hi,
          I have a requirement to find print program and form name from the spool list.
    I got the list of programs and forms from TNAPR table, I also want to find out any custom program sending the form directly to the spool.
    Cheers
    Sam

    Hi
    Try TSP01-Suffix2
    Regards
    Raj

  • How To Save Modified Fields After query From The Database

    I Have This Customer Information Form That's Sort of an Ordering Forms , I Made It By LiveCycle v9.0
    And I Want To be able to search for Specific Record and Modify it and Save It Again to The DataBase
    I believe That We All Saw The (( Data Connected Forms Presentation )) For Pual Guerette
    At One Part Of The Presentation (Minute 0:26:00 specifically) When He Try To Search A Specific Record In the Database
    And He Got all this annoying Messages Then The Record what He looking Shows up ; He Said That We No Longer able to Modify The Record After We Doing the Search
    My First Question Is Why ???
    Is there anyway After I got that Specific Record I Want from the Database I Can make my modification on it and update it Back in the DB.
    OR i Have to Browse the whole DB looking for it Specially that I got this (ID Auto Increasment Number field Issue) Which leads me to ;
    My Second Qustion;
    Why I Can't just connect ''The Form Order Number'' to an Auto Increasment Number field in the DB
    Obviously i can't, So Can I do Anything to achieve this goal ??
    I Believe that we can Find some scripting to make that Happen 
    I Will Be So Grateful If There Is Any Helpful Answer
    FYI: I'm Not Java Expert So If There Is any Coding That's Can be Helpful Please POST ALL OF IT if you can ,,,,

    Hi,
    The information there is excellent and I would strongly recommend it.
    I don't have any public database examples and I am not inclined to spend time preparing an example if you are not prepared to read up on the methods.
    Stefan's site is the only link I have for databases.
    Good luck,
    Niall

  • How do i retrieve a cleared item from the download list?

    It was a .pdf downloaded from a website. I accidentally cleared it before I had printed it. It is not in the history as it is an external .pdf.

    If you removed the file from the hard drive then it is most likely lost.<br />
    Otherwise it may be in the browser cache of the Operating System temp folder.
    Do you see that file in the Downloads folder in the History Manager (Library)?
    *History > Show All History

  • How to Purge ONLY multiple STALE instances from the Instances Tab in a sing

    Hi BPEL Gurus,
    In BPEL Process Manager (Instances Tab), I am able to see all the
    instances (Active, Completed, Faulted, Aborted and Stale).
    We are using Oracle's SOA Suite 10.1.3.1
    The Instances Tab also gives me an option to filter out different
    state of instances, with this kind of filtering,
    I am able to view either Active instances or only Stale instances.
    But my primary concern is after doing this filtering,
    If I want to delete all the 100 Stale instances in a single command,
    How do I achieve this ?
    I am able to delete only single instance at a time, which is really
    a time-consuming activity.
    Is there some kind of SQL Script (Delete statement), which does
    the above activity to delete 100 Stale instances in one go.
    If there is any SQL Script, please do provide me with the same,
    since this is a critical production issue for us.
    Also on which Oracle schema, do I need to execute the above SQL Script.
    All BPEL Geeks, please do help me.
    Thanks & Regards,
    Gopal D. Kalsekar
    Senior Software Developer
    Business Solutions (eGroup)
    M.H. Alshaya Company W.L.L.
    www.alshaya.com
    P :- (965) 224 3598
    F :- (965) 224 2488
    E :- [email protected]

    Hi Riko,
         Marc Kelderman has done an excellent job by writing
         purge_bpel_dehydration Stored Procedure.
         But after having a look at ORABPEL schema,
         no records are visible in any of the tables.
         (Is there any way to unhide these records in TOAD 6.3.2 ?)
         Also the script mentions about CUBE_INSTANCE table.
         In this table, there is a STATE column.
         What number do I need to specify in the WHERE clause
         of my SELECT query for this STATE column, so that I can
         only retrieve and delete STALE instances.
         Also as we are using SOA Suite 10.1.3.1, there is no
         such table by the name of WFTASK.
         I can see only 2 tables PC_TASK and TASK in ORABPEL schema.
         From which table, do I need to delete.
         Please confirm.
    Thanks & Regards,
    Gopal D. Kalsekar

  • How to save a new jpg image from the clipboard

    It seems like it should be simple but I can't find anywhere this has been documented.
    I have an image on the clipboard and simply want to save it as a new image.
    I've been using Image Events and I can get a file saved but it's always empty.
    Can someone please post some sample code to do this?

    I'm sure there's a more elegant way to script this, but here is a script I just wrote real quick that should at least give you a start to an alternate way of dealing with clipboard data without having to launch Preview...
    <pre style="width:630px;height:auto;overflow-x:auto;overflow-y:hidden;"
    title="Copy this code and paste it into your Script Editor application.">--see if clipboard is a file
    set filePath to ""
    try
    set clipPath to the clipboard as «class furl»
    set filePath to clipPath as alias
    end try
    if filePath is not "" then
    set newFile to getFileName("copied")
    do shell script "cp " & quoted form of POSIX path of filePath & ¬
    space & quoted form of POSIX path of newFile
    return --end
    end if
    --see if clipboard is image data
    set jpegDATA to ""
    try
    set jpegDATA to the clipboard as JPEG picture
    end try
    if jpegDATA is not "" then
    set newFile to getFileName("new")
    set theFile to open for access newFile with write permission
    write jpegDATA to theFile
    close access theFile
    return --end
    end if
    beep 1
    display dialog ¬
    "No file or image data found on the clipboard." with icon ¬
    note buttons {"Whatever"} default button 1
    on getFileName(type)
    choose file name with prompt ¬
    "Select a name and location for the " & type & ¬
    " jpeg:" default location (path to desktop) default name ¬
    type & ".jpg"
    end getFileName</pre>
    Hope this helps...

  • How do you get Itunes to only sync newly added photos from my phone to the computer and not every photo on my phone each time I try to sync?

    How do you get Itunes to only sync newly added photos from my phone to the computer and not every photo on my phone each time I try to sync?

    Hello Angelcasper,
    Welcome to Apple Support Communities.
    The following article provides some suggestions on importing photos from your iOS device to your computer.
    iOS: Import personal photos and videos from iOS devices to your computer
    http://support.apple.com/kb/HT4083
    Regards,
    Jeff D.

  • How to get the Newly added fileds from Oracle to BW

    Hi ,
    We have created the view in the DB side and extracted the data to BW side. After that in the DB side they have added new filed. I want to extract the data for that filed also. But that filed is not displaying in the data source itself. We have deleted the sources system assignment to that particular info source and generated the data source in the source system side, and then also I an unable to get the newly added filed in the data source. We are extracting the data from the ORACLE data base. Please let me know the steps how to get the newly added filed in the data source.
    Thanks,
    Visu

    Hi Yadav,
    yes i have alreday created the info objects in the BW side. In the Oracle DB i can see the fileds in the data sources. Newly added filed is not displaying where as previous all fileds are displaying in the oracle DBside.
    Thanks,
    Visu

  • I have iphoto 6.  How do I only selecy certain photos from my camera when importing rather than all of them as show in the import page that loads

    I have iphoto 6.  How do I only selecy certain photos from my camera when importing rather than all of them as show in the import page that loads

    You use Image Capture (in your Applications Folder) for that job - or upgrade to a later iPhoto.
    Regards
    TD

  • How to save a kit in garageband from a folder in my desktop

    how to save a kit in garageband from a folder in my desktop

    in my safari url bar (it's the place where the www. bit are) to the most right it show an icon on this page it's an apple icon if I click down on it and drag it out of safari on to the desktop it's made into a shortcut for the page

  • I upgraded to the new IOS, but lost data and apps. When I try and restore the only backup I see is the one made AFTER the lost data. How can I access an older backup from the cloud?

    I upgraded to the new IOS, but lost data and apps. When I try and restore the only backup I see is the one it made AFTER the lost data. How can I access an older backup from the cloud?

    Why don't you talk to apple and find out if backup exists? That conversation with apple will stop your guessing.

  • How can I fix my text messages I can only text one person from my contacts list is was working fine and now I can only text one person and I do have a plan and like I said I was texting fine   Pls help.  Thanxs

    How can I fix my text messages on my Iphone4s it was working fine but now I can only text one person from my contact list  I do have a plan and have tryed reset the iphone4s Can someone help me pls. Thanxs

    Why post the same information instead of responding to your initial post?
    https://discussions.apple.com/message/17160874#17160874
    Gonna go out on a limb here and say it's probably user error.

  • How do I save "Sent" messages when sending from the ipad

    How do I save "Sent" messages when sending from the ipad2?

    By default sent items should be saved in your Sent folder. For IMAP type accounts you should be able to change that by selecting the account in Settings > Mail, Contacts, Calendars , then selecting 'Account' on the popup for it and then 'Advanced' at the bottom of the next popup

  • Deleted the recently added section from the source area how can i add back

    how can i add back the recently added section from the source without reinstalling itunes thanks in advance....
    insp 8100   Windows XP  

    Ok that is easy.
    1) File > New Smart Playlist.
    2) Make sure match the following rule is checked
    3)The first drop down change to date added.
    4)Set the second drop down setting
    5) Enter the number you want based on step 4
    The rest of the check marks are up to you but make sure "Live Updating" is checked.
    Take some time playing around with the smartlists. I love them!! I have a 2 level smartlist at work, I hardly use the regular playlists.

Maybe you are looking for

  • Pb screen fuzzy plugged with mac mini and hdmi cable

    Hi all, I bought my first mac yesterday and I plugged it it this morning on my tv screen with an hdmi cable. I saw that the screen at the bottom where all the icones are is fuzzy. We set it up at the apple store and it was working well. Could you ple

  • Switching my mac from airport to ethernet

    I noticed that plugging in the LAN cable directly to my powerbook the internet is much faster, so I started unplugging the cable from the airport express to the computer when I need to go faster. The problem is I can't understand how to set this in t

  • Addition of new table in object BUS2013 in MASS T.Code

    hi, I like to add table A016 in object BUS2013 in mass transaction, please let me know the process or is there any other way to extend PO line item condition validity. Regards, Kishore Ghodki.

  • Looking up an EJB in a foreign app server

    Hi, I am trying to look up an EJB in a foreign app server from within an EJB deployed in WLS 7.0.2. I have passed the name of the initialcontext factory with the -Djava.naming.factory.initial argument to the java command in the startWebLogic.cmd file

  • Finder doesn't reopen all windows on restart

    In Snow Leopard, when restarting, the Finder would remember the multiple windows I had open before restart and reopen those windows. Since getting my new Macbook Pro with Lion, the Finder now remembers only one or two of the windows that were open wh