How to insert a detail record that has more than one master record

I have a somewhat complex situation that I am triying to figure out. I have three tables A, B and C. Table C is a detail table that has a foreign key to table A and table B. There are is nothing else in table C (basically it's used to create a many to many relationship between A and B.
Now I have a application module method that based on some user provided data needs to insert records in tables A and B and link them using table C. I have view links (and associations) between A and C as well as B and C. I can easily go from A and insert (via the view link accessor) a record into C. My problem is that I don't know how to the take that same C row and add it to B as a detail.
I have kinda hacked it by creating a row in B, using postChanges to get it's primary key ID and set the attribute directly in C. It works but I was hoping to find a way to avoid calling postChanges possibly hundreds of times in a loop. I also cannot commit the AM until the process is completed.
I tried setting the "composition association" on both associations but that didn't work either.
Thanks

I'm not sure if this helps, but here's a web page which talks about Image I/O:
http://java.sun.com/products/java-media/jai/iio.html
For your problem, they have a sample solution which can read a specific page of a multi-page tiff file, so perhaps you could make a loop to read all of the pages:
http://java.sun.com/products/java-media/jai/forDevelopers/samples/MultiPageRead.java
Good luck!

Similar Messages

  • How to read a tiff file that has more than one page?

    Hi,
    I use JAI to read TIFF image and get the pixels from a raster object. A TIFF file can have more than one image in itself. The JAI doc from SUN only mentioned that we can get the number of IFD (image file directory) by using
    getNumDirectories() function but no description about how to get different images separately out of one TIFF file. Does any one know how to do it or some example programs implementing such function? Thanks a lot.
    Marvin

    I'm not sure if this helps, but here's a web page which talks about Image I/O:
    http://java.sun.com/products/java-media/jai/iio.html
    For your problem, they have a sample solution which can read a specific page of a multi-page tiff file, so perhaps you could make a loop to read all of the pages:
    http://java.sun.com/products/java-media/jai/forDevelopers/samples/MultiPageRead.java
    Good luck!

  • In Music, sometimes an album that has more than one artist, only one shows up, how do I get them all that are all on the album to play in sequence when I select that album?

    I can't figure out why, on my ipod touch in Music, when I select some albums that have more than one artist, the whole album doesn't come up to play all together.  This happens in some compilations, and only ne song shows up from each artist on the album.  Or like on an artist's album that has someone else singing with her.  I get that they are on the same line as an artist, but the album is an album, and when you play an album, the whole thing should play - right?  Thanks for your help!

    Generally all you need do is give tracks from the same album a common Album Artist. See Grouping tracks into albums. The images need an update but the basic info. still holds.
    tt2

  • Error using JAX-WS to consume a WS that has more than one parameter

    I am trying to create a web service proxy in JDeveloper using JAX-WS for an OAM web service from a WSDL (identity/oblix/WebServices/CompositeWebServices/WSDL/um_view_interface.wsdl). I received the following error when I try to run the proxy:
    Exception in thread "main" com.sun.xml.ws.model.RuntimeModelerException: runtime modeler error: SEI test.profile.OblixIDXMLPortType has method oblixIDXMLUmView annotated as BARE but it has more than one parameter bound to body. This is invalid. Please annotate the method with annotation: @SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
    at com.sun.xml.ws.model.RuntimeModeler.validateDocBare(RuntimeModeler.java:1267)
    at com.sun.xml.ws.model.RuntimeModeler.processDocBareMethod(RuntimeModeler.java:1256)
    at com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:628)
    at com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:416)
    at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:267)
    at com.sun.xml.ws.client.WSServiceDelegate.buildRuntimeModel(WSServiceDelegate.java:715)
    at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.buildRuntimeModel(WLSProvider.java:427)
    at com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:703)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:347)
    at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:409)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:330)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:312)
    at javax.xml.ws.Service.getPort(Service.java:92)
    at test.profile.OblixIDXMLService.getOblixIDXMLPort(OblixIDXMLService.java:79)
    at test.profile.OblixIDXMLPortClient.main(OblixIDXMLPortClient.java:23)
    Process exited with exit code 1.
    It seems like the OAM web service (um_view_interface.wsdl) is not WS-I BP 1.1 compliant. It expects two elements under the body. WS-I BP 1.1 specifies that there should be only one child in the body of the element.
    The expected request body would look like this, there are two elements under the body:
    <soapenv:Body>
    <authentication xmlns="http://www.oblix.com/">
    <login>loginname</login>
    <password>pass</password>
    <domain>dc=test,dc=org</domain>
    </authentication>
    <request application="userservcenter" function="view" mode="dataonly" version="NPWSDL1.0" xmlns="http://www.oblix.com/OblixXMLLocalSchema">
    <params xmlns="">
    <ns1:uid xmlns:ns1="http://www.oblix.com/">cn=tester,cn=Users,dc=test,dc=org</ns1:uid>
    </params>
    </request>
    </soapenv:Body>
    Has anyone encountered the similar problem? Is there a solution to this problem?
    Your help is appreciated!

    Can u pls share ur solution if u have found a way 2 create a web service with 2 ports.I have not yet found a solution so far and nobody reacted to all my posts in the different fourms. It seems nobody is implementing web services with two ports using the EJB annotations technology.

  • How to Import Excel 2007 worksheet that has more than 255 columns into SQL Server 2008 table using SSIS 2008.

    I am using Excel source which uses Microsoft ACE 12.0 OLE DB provider, this only allows the first 255 columns to be imported and not the rest.
    I need to export all the columns into the table .
    Any pointers to this is greatly appreciated

    If you can use third-party solutions, check the commercial COZYROC Excel adapters:
    Excel Connection Plus Manager
    Excel Source Plus
    Excel Destination Plus
    Excel Task
    The enhanced components can be used both under 32bit and 64bit modes and doesn't exhibit the 255 columns limitation.
    SSIS Tasks Components Scripts Services | http://www.cozyroc.com/

  • How to map when the Context node has more than one element

    Dear SDN Community,
      I am develping a WebDynpro java application with Adobe forms. My goal is to present a user a screen with 10 records of customer details and submit. I have created a context element for the customer(Cust#, address details etc) and mentioned the cardinality as 1..n. Now How do I bind these 10 records in my data view to first element, second element... 10th element of the context. Once the user submits, I need to write the 10 record values to Z table. Can you please advice me here.
    Thanks!
    Surya.

    solved this problem by going through the Interactive forms tutorial.

  • How to create a theme with more than one master-slide size defined?

    I would like to create a Keynote theme that has more than one size of page defined - for example one for on-screen show, and one for printing.
    I noticed that the stock themes, and those from theme vendors, come with multiple page dimensions, and that the master slide layouts for the 'same' master slide appear to be designed differently for the different sizes.
    How do I create themes like this in Keynote? I cannot find any information about this in the Keynote manual. I have worked out how to change the master slide dimensions, but not how to tell Keynote that the layout I've created for a slide is for a particular set of dimensions. So when I look at my theme in the theme browser, I only see the dimensions I had selected last time I saved my theme showing.
    Any help most appreciated.

    The same reason that Apple and 3rd Party vendors put multi-size templates in one file I expect. I am trying to construct an in-house standard template for use in our company, and it is easier to manage if there is only one file to send to people rather than many - both initially and for subsequent edits / updates to the template.
    Of course it would be possible to create several templates (one for each size). But since it is clear that templates can be combined, it appears sensible to do this - unless the doing of it is horridly complicated

  • How to get more than one lack record in 1 or 2 seconds

    pls help its urgent ,
    i need to retrieve more record from different table it have more than one lack record ,and its more than 20 seconds ,how to minimise the time to one seconds
    My sql:
    SELECT
    tl.ProjectID,
    pr.jobname,
    name as Department_name,
    ChargeNum,
    (ac.ActivityCode ||':'||ac.SubCode) as ActivityCodeName,
    SUM(HoursWorked), (Case When isBilled=1 or billedRate<>0 then BilledRate else ppr.Rate End) as RATE
    FROM
    TimeLogEntries tl INNER JOIN activitycodes ac on ac.ACTIVITYCODEID=tl.ACTIVITYCODEID INNER JOIN projectrates ppr on tl.ACTIVITYCODEID = ppr.ACTIVITYCODEID and tl.projectid=ppr.projectid ,
    projects pr INNER JOIN departments d on d.DEPARTMENTID =pr.REVENUECENTERID
    WHERE
    to_char(Date_,'yyyy-mm-dd') BETWEEN '2006-01-01' and '2008-12-30'
    AND
    tl.ProjectID = pr.ProjectID
    Group By
    tl.ProjectID,
    tl.ActivityCodeID,
    BilledRate,
    ChargeNum,
    pr.jobname,
    name,
    (ac.ActivityCode ||':'||ac.SubCode),
    (Case When isBilled=1 or billedRate<>0 then BilledRate else ppr.Rate End)
    ORDER BY
    tl.ChargeNum;

    hi,
    even i am searching for some thing similar.
    i want to have 3 calendars in one page.
    getting same message calendar already exists on page 2. You can only add one calander per page. Select a different page.
    pls help.

  • Auto creation of child requests when parent request has more than one group

    Hi,
    I have created a request dataset which has a child form for AD Group. While raising a request, if I add more than one group, how to process the approval flow. Because I will be having different different approvers for different different groups. Is there any way to create child requests automatically when we submit a request with more than one group? I am using OIM 11.1.1.5.0.
    I know in OIM 11g, whenever user raises request for more than one beneficiary/target-resource then OIM breaks that request into Child Requests. But this is not happening when I add more than one group in the same resource. Do I need to write my own code for DataValidator to split parent request into child requests upon validating child form? If so, is it going to impact the existing feature which is creating child request when parent has more than one user/resource.
    Please let me know.

    No not possible OOTB in current version. Check {thread:id=2318652} for more information.
    -Bikash

  • Lumia 520 SMS- when a contact has more than one nu...

    Hi- when calling a contact who has more than one phone number it is easy to choose which of the numbers for that contact to use, but when sending SMS there is no option to choose. How does the SMS system decide which of the available numbers to use?
    Solved!
    Go to Solution.

    If I do the following steps: Messaging > + >To + > Select contact > I see all numbers listed for the contact.
    If I do instead: People > Contact > SMS, the number entered as "mobile" is selected by default. If you want to change it to "mobile2", you need to go: ... > switch number and select from there.

  • VLD-0201:Table has more than one primary key

    hi
    i'm working with OWB 9.2,I was imported the table from database,when i validating that it is giving message:
    VLD-0201:Table has more than one primary key
    vld-0209:Duplicate unique key i.e:cust_acc and SYS_C00435 detected.
    Can i use this table and generate the mapping with out any errors?
    Any help will be very generate.

    Hi Ashok,
    I'm quite curious how you managed to get a table with 2 PK's.
    I tried it myself:
    =======================================================
    SQL>create table x(c1 number constraint pk1 primary key,c2 number constraint pk2 primary key, c3 date);
    create table x(c1 number constraint pk1 primary key,c2 number constraint pk2 primary key, c3 date)
    ERROR at line 1:
    ORA-02260: table can have only one primary key
    SQL>ed
    Wrote file afiedt.buf
    1* create table x(c1 number constraint uk1 unique,c2 number constraint uk2 unique, c3 date)
    SQL>/
    Table created.
    =====================================================
    As you can see, trying to create a table with more than 1 PK is impossible. With Unique Key, that IS possible (see second example).
    I don't expect mappings to function properly with such an error message.
    Is it possible for you to drop the table in the database, correct the definition of the table in OWB and then deploy that corrected version to the database?
    If on the other hand the table on the database is correct (i.e. has only one PK) then the import into OWB obviously did not go well and I'd suggest you drop the imported definition and try to import it again.
    Cheers, Patrick

  • How can I use my iPod nano on more than one computer?

    How can I use my iPod nano on more than one computer?

    Hi, China6450.
    Thank you for visiting Apple Support Communities.
    I would recommend setting up Manually manage music.  This will only allow music to be synced from the computer to the iPod nano.  Here are some helpful articles that will walk you through the process. 
    Managing content manually on iPhone, iPad, and iPod
    http://support.apple.com/kb/HT1535
    Using iPhone, iPad, or iPod with multiple computers
    http://support.apple.com/kb/HT1202
    Cheers,
    Jason H. 

  • An operation has more than one setup activity-error message

    Hi All,
    I have a queue which is failing and giving error message "An operation has more than one setup activity".
    I have  debugged it but of no use.
    In SAP R3 planned order data is created and is being sent to APO system through a CIF interface in queue.
    In APO system,planned order data is integrated to process order,during this they are getting the subject mentioned error.
    Kindly help me how to rectify this error.
    Please help...Thanks in advance.

    Hi,
    Back again...hopefully below should solve your issue.
    Check if any of the co-product (of the main assembly) has GR processing time. Are there any phantom component in the BOM, if yes, please check the co-products in phantom assembly as well.
    Any co-products /phantom assembly should be assigned to APO related Produce phase.
    Otherwise, you can remove the GR processing time for co-products (make it zero) and sync the master data and then try.
    This should solve the issue.
    Let know if this helps.
    Regards,
    NR

  • Identify Supervisor if current Position has more than one A012-assignment

    Hello experts,
    I wonder if you could help me with this "challenge" please:
    Starting point is a non-vacant position that owns more than one A012-assignment.
    For example:
    Position-ID: 00000001
    01.01.2006     31.12.9999     A012     O     004712
    01.01.2007     31.12.9999     A012     O     004711*
    01.01.2006     31.12.9999     A008     P     101010
    *The second A012-assignment is needed because the person leads the O 004712 as well as O 004711 (general manager).
    If I am using the standard function RH_GET_LEADING_POSITION, I get a sy-subrc = 1 (which means that there was no leading position found). But there is a position owned by the supervisor of the person 101010 that should be determinated:
    O 004711
    ___S 00000002
    _____P 101020
    _______|O 004712
    _________S 00000001
    ____________P 101010
    If I delete the first A012-assignment of position 00000001 it works fine: P101020 is shown as Supervisor of P 101010.
    Does anyone know how to solve this problem, if there is more than one A012-assignment?
    Thanks in advance.
    Greetings,
    Dirk vdH

    Hi Ronny,
    According to your description, the lookup column would render incorrectly when adding more than one datasheet view in the Enterprise Wiki page.
    I tested the same scenario per your post, and I got the same results as you got.
    We will help to submit the issue to proper pipeline for you.
    Again, thank you for your report which will definitely make SharePoint a better products. There might be some time delay. 
    Appreciate your time and patience.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Text that spans more than one cell in a JTable

    Hi all.
    I have a JTable where I've altered the renderer so that it looks like I have columns that span more than one cell.
    e.g.: http://i.imgur.com/RSGOh.png
    From that image though you will notice that the text (which is based in a JLabel) is truncated.
    I need this text to span the available cells so was wondering about the best way of doing it.
    I could:
    1) When I know that the text won't fit, don't draw anything at all with the renderer but make a note of it and then in the paintComponent method of the JTable, paint the text in the appropriate position once the rendering has been done.
    2) Provide a custom renderer that draws as much of the text as possible up to the right edge, and then have an adjacent cell renderer paint the rest.
    3) Use a different TableUI that when I know I need to span, uses a special renderer to stamp over the spanned cells...
    4) other methods???
    I was going to attempt choice 1) but thought I'd ask here first in case someone has had experience in this and knows the "correct" way to do it.
    Is this the right way to go about it?
    Thanks, Nick.

    // Allow selection to span one contiguous set of rows, visible columns, or block of cells
    table.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
    // Allow multiple selections of rows, visible columns, or cell blocks
    table.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);

Maybe you are looking for

  • HT4437 Can I use more than one Apple account on Apple TV ?

    Can I use more than one Apple account on Apple TV ?

  • Using dynamic query to create sequence

    Hello, I created the sequence dynamically in a Procedure, but when I executed, it gave me an Insufficient privileges error: SQL> create table dummy (id number, module_id varchar2(20), p_order number, status varchar2(1)); SQL> insert into dummy values

  • How to DEBUG a function module running in background mode? Please help!

    Hi Experts,    I am calling a function module in my ABAP code in background module using the following syntax:   CALL FUNCTION 'YBBC2_CREATE_SNAPSHOT' IN BACKGROUND TASK           TABLES             itab_std_format_inv = itab_std_format_inv          

  • RoboHelp 8 - All Files Unrecognized

    I upgraded a RoboHelp 6 project to RoboHelp 8. It worked okay for awhile (very slow and many style issues), but okay. Now, any topic that I try and open, RoboHelp tries to open a new project and then I get the following messgae: The file "xxxx.htm" i

  • ISA Change Sales Order Opens in Popup

    Hi experts!! I have the following issue: After searching for sales orders in B2B and when i try to open one order sometimes it opens in pop-up. I rea;ized after some testing that this happens when the user uses IE8, while on IE7 it does not happen. A