Is there any order for objects in a relationship collection

I am using two cmp ejbs A and B which are in a many to one relationship.
This is like : Any Order has 0 to * OrderLines.
For this my ejb A has a cmr fild of type Collection:
public abstract Collection getBs();
public abstract void setBs(Collection x);
My question is if there is any way to indicate the position in which the related objects are saved in the collection.
This is very important for me. Because I want to generate a view to the
user for ejb A that should be allways in the same order.
This is like:
The view of the "order" should show the "orderLines" allways in the same positions: first orderline, 2nd orderline , 3rd orderlin,....
And if the user replace the 2nd "orderLine" with an other orderline, next time the view should still show it in the 2nd position in the "order" page.
If I use the following code:
Collection x = getBs();
x.add(someObject);
It won't be in any specific position.
I wanted to do the following:
Collection x = getBs();
Vector v = new Vector(x);
v[anyPosition] = someObject;
setBs(v);
But then I read that I should never use the set method for a cmr field of type Collection! Because this will be done exclusively by the container!
So what to do?????

Hi sarkarati,
As J2EE requires the usage of the Collection interface, the only way is to order the OrderLine by hand before display.
Regards,
-- markus.

Similar Messages

  • Is there any config for plant-cost center relationship

    looks like our new cost center is not defaulting on the PO accounting document. Is there someplace I should have set-up a plant/cost center relationship?
    Thanks in advance
    Satya

    Hi Satya,
    You cannot directly assign a Cost Center to a Plant. But indirectly yes. A Cost Center is assigned to a Profit Center, a Profit Center is assigned to Material Master and the Material Master to a Plant.
    Hope this clarifies.
    Regards
    Sridhar

  • Is there any downside mixing Objective-C with C++ for iOS apps?

    I'd like to use C++ since it's fast and more dynamically in memory reference.
    Is there any downside mixing Objective-C with C++ for iOS apps?
    When googled for info, I only found tutorials about how to let xcode compile Objective-C with C++.
    Thanks for help.

    hokanst wrote:
    Both Objective-C and C++ are (more or less) extensions of C.
    C supports manipulation of pointers and casting of pointers, this implies that both Objective-C and C++ will be able to manipulate C data like arrays, structs ...
    Objective-C has classes like NSData to read/write blocks of bytes from/to file and to access ranges of bytes when the data is loaded into memory.
    C++ probably has similar classes (I'm not well versed in C++ so I don't know).
    If you want to look into using C++ you will probably want to look at Objective-C++, the link below has links to docs on how to use C++ with Objective-C:
    http://stackoverflow.com/questions/3684112/what-is-objective-c
    Thanks for the info, NSData does what I need.
    A replied in the link also mentioned that he's using C++ in his application too. As long as I'm aware of memory management (prevent memory leaks, etc) as @disguise said, it should be fine.
    @etresoft indeed, but C is the base language of ObjC, there are ways to deal with.

  • Are there any shortcuts for creating Value Object Classes?

    Hi,
    I'm using a Remote Object to connect to my server
    (pyAMF/Django). I'm getting stuck with the creation of Value Object
    Classes. It doesn't seem very DRY to have a class on my server
    representing the data model and then have to recreate that class
    and all its properties in my Flex app.
    Are there any shortcuts for creating client side VOs from
    server side data?
    I was thinking about declaring an empty VO class in Flex, and
    then dynamically assigning/casting my Proxy object to that class.
    It seems like that approach may cause problems for the Flex
    compiler though.
    Any hints?
    Thanks!

    quote:
    Originally posted by:
    tptackab
    Oh man, do I feel your pain. I'm not sure what middle-tier
    technology you're using, but I'm using Java (w/Spring) and I
    absolutely hate having to create and maintain two sets of VO (aka
    data transfer - DTO) object for Java and Flex.
    One thing that has helped me in that area is a free tool from
    Farata Systems called
    DTO2Fx. If you're using Java and Eclipse, it's a great time saver.
    You simply install a (very lightweight) Eclipse plugin, add a
    single annotation to your Java VO classes, and it automatically
    generates your Flex VOs. It even creates a base and extended
    version of each VO on the AS3 side so you can add code to the
    extended VO without fear of having your changes overwritten when it
    regenerates your Flex VOs.
    Here's a like to thier
    PDF that
    gives instructions and a download link. I had it up and running in
    my application in less than 30 minutes!
    I'm using Python/Django serverside (PYAMF is my AMF
    serializer).

  • Is there any provision for viewing Sales Order at a plant level?

    Salute All !
    Is there any provision for viewing Sales Order at a plant level?
    Please provide TCode or any other way.
    Rgds
    Srivastav

    Hi
    Go to SPRO>Sales & Distribution>Sales>Lists>Define selection criteria.
    Select the Programme "SAPMV75A" , Trnsaction group=0 and pu display group=K and select the field =WERKS.
    Hope it will resolve.
    Regards
    Sanjay

  • There is Tcode CU51which is for Order BOM ,Is there any BAPI  for OrderBOM.

    Hi All,
    There is Tcode CU51which is for Order BOM , So is there any BAPI for that Ordre BOM
    pls can you help me
    thanks
    mars

    Hi,
    Refer These links:
    https://forums.sdn.sap.com/click.jspa?searchID=13707386&messageID=5726376
    https://forums.sdn.sap.com/click.jspa?searchID=13707605&messageID=4868211
    Regards,
    Shiva Kumar

  • Is there any order in which records are stored in SessionDetails and Conferences Table in Lync Archiving DB?

    Hi,
    Archiving Database Schema states that in the tables SessionDetails and Conferences tables, the column 'SessionIdTime'
    holds datetime value at which session request is captured by Archiving service.
    But, is there any order in which the records are stored in the db?
    Say, a session 'S1' starts at 1:00 PM and another session 'S2' starts at 1:05PM. 'S2' ends at 1:10 PM and 'S1' is still on going. I have observed that on ending the session the record is written to DB, so is it possible that details of session S2 is written
    in db prior to 'S1'?
    Is there any way to query these tables, in the order in which the records are stored?
    Thanks and Regards,
    Arjabh

    Hi,
    You can export records that have been stored in the Lync Server Archiving database with the following cmdlet in the link using Lync server manageshell.
    http://technet.microsoft.com/en-us/library/gg398452.aspx
    You need to write a SQL query/view or report server report to display the information.
    More details:
    http://blogs.technet.com/b/dodeitte/archive/2013/06/02/sample-lync-server-archiving-report-available.aspx
    For the issue about “is there any order in which the records are stored in the db?” you can post a case to SQL forum and more experts will help to verify the issue.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Is there any log of object-generating ? - why is an object generated?

    is there any log of object-generating ? -
    why is an object generated?
    in Table REPOLOAD, i can see that an object / program is generated  (SDAT, STIME)
    is there any log-file, where i can see, why this object is forced to be generated ?

    it is a JavaBean class that implements Serializeable. suppose i have a method called copyObject(Object o) that returns a copy of o
    public Object copyObject(Object o)
    Object newObject = null;
    Class c = o.getClass();
    newObject = c.newInstance(c.getName());
    PropertyDescriptor p[] = Introspector.getBeanInfo(o.getClass()).getPropertyDescriptors();
    for (int i = 0; i < p.length; i++) {
    //this is the part i am not really certain, how do i read value from o, so i can set it to newObject for each element
    //String name = p.getName();
    //String value = p[i].getReadMethod() .;
    p[i].getWriteMethod().invoke(newObject, value);
    //how do i use the introspector to invoke method to copy from o to newObject?
    return newObject;

  • My ipod nano 6th gen fell out of my pockey and the screen cracked badly, is there any coverage for this under warranty? I just bought it a month ago. If not what are the options for getting it fixed

    My ipod nano 6th gen fell out of my pocket and the screen cracked badly, is there any coverage for this under warranty? I just bought it a month ago. If not what are the options for getting it fixed? It is pretty frustrating, it fell from about 3 feet out of my pocket and now looks like it was beaten by a hammer.

    Debbie:
    deborahfromwindsor wrote:
    he advises restarting by inserting the OSX disc and pressing down the C button to reboot from there then selecting disk utility, hard disk and repair.... Does he mean me to hold down the C key on the alpha keyboard or the ctrl key?
    Should I just ask for my money back??? If it is a simple repair do I just literally push the disc in, push the power button and hold down the C button?
    That's where I would begin, too, with
    Repair Disk
    Insert Installer disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu (Panther and earlier) or Utilities menu (Tiger) and launch Disk Utility.
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    (Check S.M.A.R.TStatus of HDD at the bottom of right panel, and report if it saysanything but Verified)
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    If DU reports errors it cannot repair you will need touse autility like TechTool Pro,Drive Geniusor DiskWarrior
    First we need to determine if the issue you are experiencing with the computer is software or hardware based. Once we have gotten things sorted out there should be time enough to make you decision about keeping or returning it.
    cornelius

  • Is there any functionality for AVERAGE in ALV, like do_sum, subtot?

    Hi Experts,
    In my_alv report, am doing sub/totals for prices, by using do_sum, subtot functions.........fine. But, I need to do/display the AVERAGE value for Discount % column?
    Is there any functionality for AVERAGE in ALV, like do_sum, subtot?
    thanq

    hi
    check these links out
    http://www.sapfans.com/forums/viewtopic.php?t=20386
    http://www.sapfans.com/forums/viewtopic.php?t=85191
    http://www.sapfans.com/forums/viewtopic.php?t=88401
    http://www.sapfans.com/forums/viewtopic.php?t=17335
    regards
    vijay
    reward points if helpful

  • I have an iphone and an ipad (which are connected by the same apple id) i broke the phone and sold it but i didnt get to factory reset it because it was broken, is there any way for me to wipe my iphone from my ipad?

    i have an iphone and an ipad (which are connected by the same apple id) i broke the phone and sold it but i didnt get to factory reset it because it was broken, is there any way for me to wipe my iphone from my ipad?

    Try this:
    Open the "Find my iPhone" app on your iPad, fill in your AppleID and password at the start up screen, and you should see a list of all your devices and their current location, if connected to a Wi-Fi or mobile data network. Devices not connected will be shown as "offline". But you can still trap on the icon and hit "erase iPhone" in the right hand window.
    If your iPhone is not listed, you did not activate this feature during the setup of the phone and it can't be erased remotely.
    If the phone is listed, even as offline, tap on "erase" to send the erase command. The next time your device will be connected to any kind of network, the content will be erased.

  • I accidentally formatted my portable hard drive when setting it up for time machine. Is there any way for me to get back my lost files?

    I have an external hard drive of the brand Western Digital.
    Before I got my iMac I moved a lot of my important files from my PC to the hard drive and today I went on and connected it to my iMac to move my files over to it.
    When it had connected a window popped up that asked if I wanted to use this hard drive with the program Time Machine and create backups. Without thinking it trough enough and reading the warning properly (I'm stupid I know) I clicked "yes". I then realised how stupid it was and cancelled the formatting of the hard drive. But somehow the program still managed to delete all my important files and can't find any way to get them back. Neither can I connect the hard drive to my PC anymore so I can't check if the files are still there (which I doubt they are since I can't see them on my iMac either).
    And now I wonder: is there any way for me to get back my lost files or are they lost forever?
    Thank you in advance!
    //Gina

    A data recovery specialist or some data recovery programs should be able to help.  Most format simply rewrite the directory tree saying no files are on this disk.  The bits that represent the files are still flipped appropreiately so they still exists, you just don't have the location info to get at them.  Secure formats and erases rewrite each bit to a zero or 1 or random so the data is then truely gone.  This type of format takes a long time to complete.
    I'm not making a recomendation of a particular program but here is one company that does what you ask:
    http://www.remosoftware.com/mac-recovery  The cost is pretty high but I'm sure they don't sell many copies and need to cover their development costs.
    Good luck and don't write anything on the freshly formatted disk until you decide what to do.

  • Is there any option for voting on a list item in SharePoint 2013?

    Dear All,
    I am looking for a feature vote a for list item from multiple users and need to show consolidated results on that.
    for SharePoint 2013 we have "like", "rating" by using these can we show the consolidated results.
    otherwise is there any alternative for this.
    Thanks & Regards,
    Jithendar

    I haven't seen any OOB vote feature in sharepoint list. It's better to go with "like" or "ratting" options.
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer :)

  • Is there any hope for a Nano 6th gen that went through the washing machine?

    Is there any hope for a Nano 6th Gen that went through the washing machine?  All of the devices contents are showing up in iTunes when connected but the device itself is not working.

    Hello kpratta,
    There is some hope. I have heard of someone putting the ipod in a bag of dry rice and putting the bag in a dark place for a 4-5 days. After that they used this:
    www.apple.com/support/ipod/five_rs/
    This has the best chance. The rice absorbs any liquid in the ipod.
    Hope this helps.
    ~Julian

  • Hi, I've been playing Smurf's village for a year now and just last week, i tried to get into the app but it keeps rejecting and goes back to the main page.  Is there any reason for this?  I've been updating the app everytime and now it's not letting me in

    Hi, I've been playing Smurf's village for a year now and just last week, i tried to get into the app but it keeps rejecting and goes back to the main page.  Is there any reason for this?  I've been updating the app everytime and now it's not letting me in.  Pls advise. Tq

    Reset the device, restart the device, try downloading any other app.
    All of these are basic steps that could have been found by a simple search of the forums as a resolution for the issue.

Maybe you are looking for

  • How do I get ios5 devices to sync their directly downloaded apps with iTunes ?

    I have an iMac /Lion, iPhone and iPad, previously on MobileMe and an iPod touch, never connected to mobile me. I have transferred MobileMe to iCloud. I have found that programs, downloaded directly to my iPad, will download to my iPhone(directly), bu

  • How to install a PFX file?

    I'm trying to install a PFX file onto a Cisco 1941 but cannot find instructions for this. I've found similar instructions but these are for ASA's and seem to only give instructions of doing it via the wenb interface. Can anyone point me in the right

  • Web.xml context-param problem...

    Hi all, Thoes anyone know how to set CHECK_FILE_MODIFICATION in web.xml param permanently, because whenever I set it on true, after few moments it's back on false?     <context-param>         <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFIC

  • Reusable pluggable Components

    Hi, Please name, suggest some J2EE Reusable Components that I can develop. The Components can use any or all of these Java, JSP, Struts, JDBC, XML, XSL and so forth - even webservices Thanks in advance.

  • Ezvpn client on router to windows vpn server

    Hi is it possible to connect cisco router using ezvpn to windows 2008r2 server? i spend a lot of time and got no success. i'm trying to connect cisco 881g using ezvpn to windows vpn server (RRAS) usign pre-shared key. or i should try to connect in an