Insert values in multiple tables. One of the tables has complex primary key.

Hello, I am using Jdeveloper version 11.1.2.3.0
I have a table FORM_TYPE and another table Str. The Str table is used to translate strings from the table name which are read from another program from the database and used to generate forms..
The FORM_TYPE  table has a relation to the STR table via formtype.title_str_id = str.str_id.
The STR table has a primary key that is depending on mf_language and str_id columns. I generated entity for the STR table but can't insert from the application module new values for some reason... It says the record invalidates its own entity..
I am trying to create a table that will be editable and will have the columns Description, Name, Str in English, Str in French etc...
Want to create a Form_Type and in the same time to insert new values for each language... But can't make the inserts of the new STR work..
Also the    FormType.TITLE_STR_ID has many values null already in the database.
SELECT FormType.DESCRIPTION,
       FormType.FORM_TYPE_ID,       
       FormType.NAME,
       FormType.PAPER_REPORT_FORMAT,
       FormType.PAPER_REPORT_NAME,
       FormType.TITLE_STR_ID,
       en.str en_str,
       en.str_id,
       en.object_name en_object_name,
       fr.str,
       fr.str_id,
       fr.object_name,
       du.str,
       du.str_id,
       du.object_name,
       bg.str,
       bg.str_id,
       bg.object_name      
FROM FORM_TYPE FormType,
(select str.str_id, str.mf_language_id, str.str, str.object_name
from mf_language ml,  str
where ml.mf_language_id = str.mf_language_id
and ml.code ='en') en
  , (select str.str_id, str.str, str.object_name
from mf_language ml,  str
where ml.mf_language_id = str.mf_language_id
and ml.code ='fr') fr,
  (select  str.str_id,   str.str, str.object_name
from mf_language ml,  str
where ml.mf_language_id = str.mf_language_id
and ml.code ='du') du,
  (select  str.str_id,  str.str, str.object_name
from mf_language ml,  str
where ml.mf_language_id = str.mf_language_id
and ml.code ='bg') bg
WHERE
formtype.title_str_id = en.str_id and
formtype.title_str_id = fr.str_id and
formtype.title_str_id = du.str_id and
formtype.title_str_id = bg.str_id  

Tried that I made view links and associations but still can't insert in both tables at once... Could be because the tables aren't having relationship between them or because the STR table has a (STR_ID, MF_LANGUAGE_ID) primary key...

Similar Messages

  • Inserting values into multiple tables in one jsf page with single commit op

    hi all,
    i have two tables ,
    one is parent table and other is child record.
    record details:
    table1:(parent table)
    emplid (primary key)
    empl_name
    table 2:(child table)
    empl id ( Foreign key)
    empl_name ( Foreign key)
    contact_no (primary key)
    my senario is , i need insert values into both parent and child table in one save option.
    and both the tables will be in one jsf page.
    is this possible to do?
    thanks all,
    regards,
    M vijayalakshmi

    hi,
    i feel my question is not clear.
    let me explain my question clearly.
    1. i have two records
    *1. emp_names*
    attributes of this table is 1.emplid
    2.emp_name.
    emplid is a primary key.
    2. emp_contact
    attributes of this table is 1.emplid
    2. contact_no
    In this table emplid is forigen key from emp_name table
    contact_no is primary key.
    and my senerio is,
    for one emplid there are many contact no.
    in database diagram i have created these two entities. and from that i have generated two views objects.
    now in jsf page ,
    i shd have all fields from both the records.
    wn ever i click on add button , i shd be able to insert one complete row of data to both the tables.
    means,
    emplid
    empl_name
    contact_no.
    and if i click on commit button data shd be insert in both the tables.
    so how to achive this?
    am very beginner to the jdeveloper tool.
    regards,
    m vijayalakshmi.

  • Fastest way to add multiple images, one after the other, in DW5.5

    There has to be a faster way to add multiple images, one after the other, in a web page rather than just dragging each from the Files tab w/in DW 5.5
    I was a little surprized I couldn't select multiple images and just drag a block and have DW just insert an img tag with empty alts and the source path but maybe there is some options I just haven't found?
    I tried using Bridge to generate a quick html slideshow/gallery but it creates skads of divs and such... I just have to update an older site and was looking for an efficient way to add a bunch of images (random names ugh so just copying-pasting one and changing names is still more manual) that lie next to each other, no breaks inbetween....seems an ideal automated situation.
    I'd settle for an external script or app or something because they come in blocks of 25 approx and I have all my actions in PS set up to size appropriately which is nice so I just wondered if there was something good for this low-level production task.
    Thanks

    Thanks. Yes, I started writing a script but I just wondered if there were hidden gems in DW....so many programs do more than they are intended to do nowadays, I had to ask people who use it more!
    Actually, the fastest was to just dupe one line of code, paste x amount and then just use the pick-wip to point and drag. That at least cut the menu out of the equation.
    I thought I remembered doing a batch insert years ago..maybe in GoLive or before Adobe had DW? DW and GoLive are the only GUI html editors I've ever used..but, may it was just something out of an ealier photoshop...they've taken good stuff out and put good stuff in so many times that I can only remember so much!

  • Using column value is it possible to find the table name in the database?

    Hi all,
    using column value is it possible to find the table name in the database?
    guys i need the table value
    Note:
    oracle-9i
    for example:
    i don't know NIC(column value) in which table in the database.
    Thank you,
    with regards,
    JP.
    Edited by: Guest on Feb 27, 2012 5:42 AM

    Hi,
    As far as I understand what you are asking for I would suggest 4 data dictionaries that will help you to know the table name from the column names
    1. USER_TAB_COLS
    2. ALL_TAB_COLS
    3. DBA_TAB_COLS
    4. COLS
    These can give you detail information about the columns and respective tables at user, schema, dba level. Further information on the table can be found by querying ALL_OBJECTS table giving table_name as Object_name, or you can join the data dictionaries too.
    To know about various data dictionaries avalible in Oracle please query select * from cat;
    Let us know if you need further assistance.
    Twinkle

  • The etag value \'\"1\"\' specified in one of the request headers is not valid. Please make sure only one etag value is specified and is valid.

    I try to receive data from a SharePoint List by using REST Services. (_vti_bin/ListData.svc)
    This approach worked fine for some days, until I get an error 400 with following error message:
    "The etag value 1 specified in one of the request headers is not valid. Please make sure only one tag value is specified and is valid."
    Hope anybody can help.
    Many thanks in advance.
    

    Hi,
    According to your post, my understanding is that you had an issue about retrieve data form list using REST in SharePoint 2010.
    I had created a simple demo to retrieve a list item, you can check with the following code snippets.
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    _spBodyOnLoadFunctionNames.push("callCSOM");
    function callCSOM()
    $("#Button1").click(function()
    ExecuteOrDelayUntilScriptLoaded(ready, "sp.js");
    function getListItemById(webUrl,listName, itemId, success, failure) {
    var url = webUrl + "/_vti_bin/listdata.svc/" + listName + "(" + itemId + ")";
    $.ajax({
    url: url,
    method: "GET",
    headers: { "Accept": "application/json; odata=verbose" },
    success: function (data) {
    success(data.d);
    error: function (data) {
    failure(data.responseJSON.error);
    function ready(){
    getListItemById('http://sp','ListB',2,function(data){
    alert(data.Title);
    function(error){
    console.log(JSON.stringify(error));
    </script>
    <input id="Button1" type="button" value="Run Code"/>
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • How can I findout the coulm value contains 0 through 9 for the table

    could u plz suggest me how can I findout the coulm value contains <> 0 through 9 for the table...

    Well I am going to give it a shot, because I believe I am looking for the same thing.
    I have a value that is of type varchar2. How can I determine if it has special characters or alpha characters in it? In other words, I only want the value to consist of numbers. (Initially it had been thought that Letters would be used as well, but now they just want numbers and the datatype of the column cannot be altered since there is data in it.)
    I have gotten this far, but I do not know what else I can use besides '[:alpha:]'? I cannot seem to find this documented anywhere...I can find the regexp package reference, but not the character classes...
    select regexp_instr('1a23456', '[[:alpha:]]',1,1,1, 'i') x
    from dual
    This works fine = returns 3, so I know there is an alpha character.
    select regexp_instr('1$23456', '[[:alpha:]]',1,1,1, 'i') x
    from dual
    This returns 0 - what do I need to change so that it detects the '$' and returns 3?
    Thanks!!
    Janel

  • I have two Macbooks at home that are connected to a Comcast Wi-Fi network modem. One of the computers has sporadic in receiving the WI-FI signal while the other is unaffected. Both have same operating system. Does anyone know a solution to this problem?

    I have two Macbooks that are connected to the same Comcast Wi-Fi network modem. One of the computers has become very sporadic in receiving the WI-FI signal while the other is unaffected. Both have same operating system (10.5.8). I have restarted computer, and unplugged and retarted modem on several occassions to no avail--one still works the other inconsistent. Have spent a great deal of phone time with Comcast and they suggest acquiring latest OS. Does anyone know a solution to this problem?

    This does not sound to be a router problem...You should try to uninstall and re-install the ethernet adapter/card installed in your computer...Do you have 2 Ethernet Adapter's by any chance...Check the Device Manager, Click on the Start button >>> Settings >>> Control Panel >>> Double click System, go to Hardware >>> Device manager, click on the plus'+' sign next to Network Adapters and see how many Ethernet Adapters are listed...
    Also connect that computer straight to your modem and see check if you get the same message,that 'YOU ARE CONNECTED TO MORE THAN ONE NETWORK'...

  • Is there any restriction on the length of all Primary keys in a table

    Hi all,
    Is there any restriction on the length of all Primary keys in a data base table?
    i have some 10 fields as primary key in a DB table and length exceeds 120 and getting a warning.
    Please let me know will there be any problems in future with respect to the same?
    With regards,
    Sumanth

    Well actually there are constraints like
    Total of internal lengths of all primary key columns        1024 Bytes
    Number of primary key columns per table                     512
    For other information about SAP database please refer to http://sapdb.org/sap_db_features.htm  
    Thanks & Regards,
    Vivek Gaur
    Alwayz in high spirits

  • How to make a form using a wizard when the table has no primary key ?

    Hi,
    I want to make a form to update, delete a table. The table has no primary key. The problem is that the Wizard ask for a primary key.
    How to avoid using a primary key ? i mean I don't want to create a primary key if is is possible.
    I would like to use the wizard; is it possible ?
    Thank you for your kind answers.
    Christian

    I believe the key is choosing 'Interactive' as opposed to 'Classic' in the implementation and then you can choose 'Existing Trigger' for the primary key source and it should work to use an existing column as your proimary key.

  • Associated table type of the Table parameters in function module

    Hi,
    If I want to select all the associated table types of the Table parameters used in a given function module in a report, how can that be done ?
    Thanks.
    Regards,
    Rajesh

    Try this.
    report zrich_0001 .
    data: import type table of rsimp with header line,
          change type table of rscha with header line,
          export type table of rsexp with header line,
          tables type table of rstbl with header line,
          except type table of rsexc with header line,
          docume type table of rsfdo with header line,
          source type table of rssource with header line.
    parameters: p_func type rs38l-name.
    call function 'RPY_FUNCTIONMODULE_READ'
      exporting
        functionname             = p_func
      tables
        import_parameter         = import
        changing_parameter       = change
        export_parameter         = export
        tables_parameter         = tables
        exception_list           = except
        documentation            = docume
        source                   = source
    exceptions
       error_message            = 1
       function_not_found       = 2
       invalid_name             = 3
       others                   = 4.
    loop at tables.
      write:/ tables-parameter,
              tables-dbstruct,
              tables-types,
              tables-optional,
              tables-typ,
              tables-class,
              tables-ref_class,
              tables-line_of,
              tables-table_of.
    endloop.
    Regards,
    Rich Heilman

  • Can't pull a clip onto the end of my timeline ... (1st time on iMovie) One of the clips has an orange highlight on it. Is this causing the problem?

    Can't pull a clip onto the end of my timeline ... (1st time on iMovie) One of the clips has an orange highlight on it. Is this causing the problem?

    Ahhh, now I see the problem, Grasshopper.  Problem is, we are all Grasshoppers, here.
    Yes, that little piece of info is critical. I'd say the biggest difficulty with FCPX is the whole new language.
    If I read you correctly, your Audio is in the Main Storyline (Track 1 in plain old Editorese). This makes anything else you add (above or below) a "connected clip", which we can no longer think of as "Track 2" because Jobs sez so. So, yes, you cannot just add a transition to either end of a connected clip.
    No argument with Tracy's solution, because I haven't seen any other general solution presented for any attempt to treat connected clips as the main storyline.  And, of course, when they were "track 1" and "track 2", you could.
    An alternative solution, however, is to highlight the connected clip and press Ctrl-V to bring up the Video Animation Editor.  Click the "reveal button" for Compositing: Opacity (bottom, right).  Once open, there is a "fade handle" to the right top.  Drag it left for however much fade you wish.  (there is one on the left as well, but you were only talking about a fade-out.)
    A second alternative, perhaps for future projects where everything keys on audio, may be to create a Gap clip (used to be called slug) in the primary storyline before ever dropping in the audio.  Then you can add video to the main story line and modify it without having to go thru hoops to do the simplest thing.

  • One of the IDOCs has an specific error message (status 51 Idoc not posted)

    Dear Experts,
    ple. provide the solution for my issue.
    In my list of compaines one of the company had an external partner(warehouse) who takes care of their products.
    Communication between that external partner software and my system(PVS) is happen through IDOCs.
    But one of the IDOCs has an specific error message ( status 51 and status text : Specification for units and quantites containe error),
    acctually we are receiving picking meterials from the external system to my system.
    I can able to see the Inbound Idoc and status, I am not able to see the Outbound Idoc, then how can I test why its happening this problem and I how can I give the analysis properly please suggest me.
    Thanks in advance
    Suresh

    Suresh,
    Welcome to SDN. Adding to Jürgen Comment, Just double click on status 51 (at node), then in next screen there will be one information (long text) button, just click on it. Some times it will give good details about the error. the information can also suggest direct trasaction to correct the customization, some times!
    try for ur case.
    Reddy

  • Which tables, apart from the tables of class UPC, are used by STS ?

    Hello, all,
    does anybody know which tables, apart from the tables of class UPC, are used by STS in BW-BPS?
    Merry X-Mas and best regards
    Nina

    Hi Nina,
    there are 20 tables starting with UPS_* that are used by STS.
    Regards,
    Marc
    SAP NetWeaver RIG

  • Will table delete remove the table maintenance screens also ??

    hi,
    i created a table. also generated the table maintanence for that. Now if i delete that table will the table maintenance objects also deleted with that ?
    if not then how do i delete them ?
    thks

    Yes, system will ask you if you want to delete it as well.
    Thomas

  • Downloaded 'breaking bad' tv series and one of the episodes has no sound...

    purchased and downloaded 'breaking bad' tv series from itunes store, and one of the episodes has no sound

    Hello Noir Law,
    Thank you for the details of the issue you are experiencing with the television series you purchased.   I recommend following the steps in the following article to report this to the iTunes Store:
    To report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase, follow these steps:
    Find the email receipt for your purchase.
    Click Report a Problem under the app that is having the issue.
    When prompted, enter the Apple ID and password you used to purchase the item, then click Report a Problem.
    Click Report a Problem next to the item you are having an issue with.
    From the Choose Problem dropdown menu, choose the appropriate issue.
    Follow the onscreen instructions and—if prompted—type a description of the problem into the text field.
    Click Submit to have your issue reviewed.
    You can find the full article here:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/ht1933
    Thank you for posting in the Apple Support Communities.
    Best,
    Sheila M.

Maybe you are looking for

  • How to add hyperlink to file path of pdf when creating email using the email submit button?

    I have a form with an e-mail submit button that opens an outlook email with the .pdf file as an attachmnet, and addressed to the e-mail addresses i put in tthe address field. What we are trying to abvoid is sending a bunch of attchement to numerous p

  • Exchange Server 2010 - DAG - Physical and Virtual

    Hi All, we are trying to configure Exchange Server 2010 SP1 DAG with TWO Servers, we are getting the error sector size on log file header was mismatch 1) Physical Server -  when we check the sector size on log file - 512 bytes   (RAID5) 2) Virtual Se

  • Testing email notification in workspace 11.1.1.3

    Hi All, I have been trying to test e mail notification on workspace. However there is no tab similar to Hyperion 9.3.1 which allowed testing e mail notifications. Please guide us. Thanks in advance.

  • Sync cable

    Hello all, I have a 60GB ipod and the just got the AV Connection Kit. I love the Docking station. The only problem with the docking station is the sync cable. I do not leave my PC on 24-7 so to charge the Ipod I have to unplug the USB cable from the

  • Can I convert PDFs to Word documents using Creative Suite?

    Our office has CS6 -- Is there a way to convert easily convert a .pdf to a word document using Creative Suite?