Relationship need master / detail to post a link Master column to the different retail pass 2

I have a form with a relationship master detail. The main block is a rec_shipments of table of database with a primary key of the shipment_id and a bunch of other columns. The retail block is a rec_containers table with a container_id as the primary key most column shipment_id, split_shipment_id, weight, volume, etc. The shipment_id and the split_shipment_id are nullable.

When a shipment is received a shipping record is created and container records are created with the populous shipment_id and the split_shipment_id null. Under the shape of what a relationship is created between the block of the expedition and the block container as shipment_id = shipment_id. It works very well. However, they have the ability to spit the original containers in small containers easier to manage for the distribution. For example, if they receive a railroad car full of pallets of printer paper they can take and divide the, 1 tray of rolloff half-and-half into another tray of mitigation. The bins of rolloff will get a unique container_id for follow-up. Registration in the system created in the rec_containers table will be the populous split_shipment_id and the shipment_id null. On the screen, they want to see the (railroad car) original containers and containers of split (ferries rolloff) when the query expedition.

What they want:
Shipment_id - and additional information
ID drive to railway and additional information
Rolloff Bin 1 ID and additional information
Rolloff Bin 2 ID and additional information

My problem is the attenuation of bins do not arise with the current relationship because the shipment_id is set to null in the 2 files of bin rolloff.

I tried to create a view on the rec_containers table that is all columns in the table plus 1 additional column which is
NVL (shipment_id, split_shipment_id) comp_ship_id

then assign the relationship shipment_id = comp_shipment_id. I have the comp_shipment_id column value query Yes and insert & update or not because I don't want to not update this column in the view.

The problem is I can't update all the columns, I get a cannot book record to update or delete the error.

Does anyone have any ideas how I can get the block of containers to query all records where the shipment_id or the split_shipment_id is shipping block shipment_id and still be able to update the records?

Thanks for any help.

Your idea of using a view is the best approach. To perform the update block, you have OHS 'Query' property only for your item derived to 'yes '. Witn, the column will not appear in any other dml. On lock... maybe the forms is no longer able to make a regular blocking when a block is based on a view. In this case, put a LOCK ON trigger on the block and lock the record for yourself to SELECT for NOWAIT UPDATE on registration. Just try if it would work, you use a NULL value in the POCKET ON right to xheck if dml himself operations will work. If your view is based on a single table, you have a good chance that there is nothing to change, if you get an error like 'Unmodifiable view', you need to make some additional adjustments
-Choose the Mode key for the block to 'uneditable '.
-Set the 'primary key' property to 'Yes' for the pk-point in your block.

hope this helps

Tags: Oracle Development

Similar Questions

  • Click a report link, a column in the table should be incremented

    Hi all
    I have a report and a link on the first column if I click the link it will go to another page (i.e. the details of this record).
    Now, every time when I click on the link, a column (SNo_Of_Times) in a table (table 1) should get increased. IE I need to know how time I'm clicking on the link (IE look at this record)
    the TABLE1 table is to have the columns
    Number of SNo
    SName varchar2 (30)
    SADD varchar2 (35)
    Number of SNo_Of_Times

    Thanks in advance
    Good bye
    Sonny_starck

    Hi Sonny_starck,

    I suggest you to have a process on the second page that runs before the header. You can set this as a condition that the primary key field (for example, P1_SNo) is not not null and do something like:

    DECLARE
     vCOUNT NUMBER;
    BEGIN
     SELECT nvl(max(SNo_Of_Times),0) INTO vCOUNT FROM TABLE1 WHERE SNo = :P1_SNo;
     vCOUNT := vCOUNT + 1;
     UPDATE TABLE1 SET SNo_Of_Times = vCOUNT WHERE SNo = :P1_SNo;
    END;
    

    Andy

  • How to hide the link URL column in the status bar?

    Apex 4.1
    I have IR wit a URL link target column, and use
    javascript:my_function(#COLUMN_VALUE#)
    as URL, in other words, calls a function and passes the value of this column to the function;
    everything works fine;
    but when I place a cursor on the link, the bottom line of the IE9 browser (is what he called a 'status bar'?) clearly shows:
    'javascript:my_function(<actual_value>) '.
    Is it possible to keep it to show the value of name and function parameter?
    I tried
    onmouseover="window.status='';"
    but it does not work

    Simple - go to the report attributes > edit your column link:

    Change the URL to * #*.

    under attributes of link enter

     onclick="my_function(#COLUMN_VALUE#);"
    
  • on any browser, cannot connect to post a link after login to the Web site

    All connections to the internet work, when I type in a Web site or use my favorites, the link to the site error message can't load the page. I have Windows 7, wireless comcast. Error on one of my computers at home, the other two, I have access to.

    Hello

    1. what version of Internet Explorer is installed on the computer?

    2. what happens when you try to install Windows updates?

    3. do you get an error message?

    I suggest you link and check if that helps.

    Nothing happens when you click a link in Internet Explorer

    Warning: Reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.

    You can temporarily disable the security software and check.

    Warning: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you do not disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network during the time that your antivirus software is disabled, your computer is vulnerable to attacks.

    Let us know the results. We will be happy to help you further.

  • Child relationship form Master Builder - column data gets hidden.

    Hi all


    I have a screen that have 5 columns. On the 3 first column belong to table A and 4th column belong to say table B and 5th column belong to table C. There is a relationship of master child between the tables A and B Table between table A and table C.

    The question is, I have the data in these columns enter the wise. I get all the 5 columns whose value, and when I go to the next line, the value of the column 4 and 5 gets hidden.
    Please suggest.

    Thank you and best regards,
    KirthiRavi

    The question is, I have the data in these columns enter the wise. I get all the 5 columns whose value, and when I go to the next line, the value of the column 4 and 5 gets hidden.

    It is the expected behavior. You have a relationship of the master / detail TABLE A (master) and TABLE B and TABLE C (details). When you change the record in the Master table, if there is no matching record in the detail tables – tables of detail will be empty. More important, because you are adding records, it not there no record corresponding in the detail tables again because you have not yet added.

    Craig...

  • The resulttable column is the URL (length of more than 500), can it be established in the form of small static text (hyper link)?

    Hi Experts,

    I have the (link style) column in the results table that displays the URL of the workflow state diagram, URL is too large to be shown in the table of results for each line.

    Could you please help how to display as simple text hyperlink? 'The workflow state' as a hyperlink for each row

    Thank you

    Suman

    Sorry, I meant set a static value for the text property of the link. Or you can try with a MessageStyledText also.

    See you soon

    AJ

  • Problem with the join relationship condition master / detail

    Hello
    I need to join with master detail such as if there is no trace of the foreign key in detail to the primary master key, the foreign key must be attached to another column based on certain conditions in the master. For example:

    Control columns: pk1, rk1, rk2
    Detail of the columns: fk1, a, b, c

    I created a relationship with detail with the join condition, pk1 = fk1 in master.
    But according to value rk1, I actually join fk1 to rk2 in master and if the condition fails then join the pk1. I can't put this condition in the relationship that the form does not accept complex join conditions.

    I hope that my example has not confused everyone.

    Can someone help me to achieve this goal.

    TIA

    TIA,
    I agree with DM, rather than using the RELATIONSHIP between the blocks that I would create logic to manually set the DEFAULT_WHERE clause on the block of RETAIL with the criteria you need to MASTER block. This can be a little difficult if you want to form work the same way if you had defined a relationship because you will have to create all the triggers event coordination. The most difficult part is to choose the right triggers to coordinate the synchronization when a user accesses a folder of master to another. For just the basics (the block of retail is questioned when the user navigates to the retail block), you could do the following:
    1. create a When-new-folder-Instance trigger on the Master block to capture the relevant details to query the block detail and define the DEFAULT_WHERE.
    2 create a trigger in a times - news - block - Instance on the block of retail to run the query on the block of retail and display the details records.

    For example:

    /* Sample When-New-Record-Instance trigger */
    DECLARE
         v_temp_where          VARCHAR2(500); /* make larger if needed. */
    BEGIN
         IF ( :MASTER_BLOCK.First_Item IS NOT NULL ) THEN
              /* this is needed for when the user navigates to a NEW record in the MASTER Block. */
    
              /* Add your conditional logic here to determine how to build your WHERE clause */
              IF ( RK1 = 'Dependent Values' ) THEN
                   v_temp_where := 'PK1 = FK1';
              ELSE
                   v_temp_where := 'RK2 = FK1';
              END IF;
    
              Set_Block_Property('DETAIL_BLOCK',ONETIME_WHERE,v_temp_where);
              /* If you are using Forms 6i, the ONETIME_WHERE property is not available so you will have to */
              /* use the DEFAULT_WHERE property instead. */
         END IF;
    END;
    
    /* Sample When-New-Block-Instance trigger
    BEGIN
         /* This sample code assumes the user has not navigated to a New Record */
         /* so there will always be a NOT NULL default where assigned to the DETAIL BLOCK.*/
         Clear_Block(ASK_COMMIT); /* just in case the user made changes... */\
         Execute_Query;
    END;
    

    Please understand it is the EXAMPLE of Code and is intended to be a starting point for you - not the complete solution.

    I hope this helps.
    Craig...

    If a response is appropriate or useful, please mark accordingly

  • Software connection Z10 blackBerry to post a link shut down and lost videos

    I was trying to sync my Z10 videos to my computer when suddenly the connection 'impossible '.  My videos are gone, my phone is turned off and are not anywhere to be found on my computer.

    Now, I can not connect my Z10 to post a link.  I tried a reboot.  I know the USB cable works because it shows it unplug and plug when I do this.  I tried another USB port on my computer.

    I'm not really savvy, so I am now at a loss.

    Wynka wrote:

    I was trying to sync my Z10 videos to my computer when suddenly the connection 'impossible '.  My videos are gone, my phone is turned off and are not anywhere to be found on my computer.

    Now, I can not connect my Z10 to post a link.  I tried a reboot.  I know the USB cable works because it shows it unplug and plug when I do this.  I tried another USB port on my computer.

    I'm not really savvy, so I am now at a loss.

    During the synchronization (auto or manual) files are not removed from the phone or pc, the files must stay in the pc folder whenever you have installed the relationship and on the phone.

    Restart the phone, install the new version of Link (version 07/08/2015) on pc and try again.

    You suggest to get a card of SD memory for all media and also manually copy files between the device and the pc.

    http://docs.BlackBerry.com/en/smartphone_users/deliverables/65888/lym1339792140249.jsp

  • Creative Suite 6 Master Collection but the link is corrupt

    I used the suggested link to download Creative Suite 6 Master Collection, but the link is corrupt. Can someone advise?

    Download & install instructions https://forums.adobe.com/thread/2003339 can help

    -includes a way to go to a page to download the Adobe programs if you do not have a disk or drive

    -Cloud desktop http://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html

    -Cloud Getting Started https://helpx.adobe.com/creative-cloud.html

    -you will need to enter your original serial number during the installation for non-Cloud programs

    - or kglad links in response to #1 here can help https://forums.adobe.com/thread/2081216

    Also go to https://forums.adobe.com/community/creative_cloud/creative_cloud_faq

  • Try to Textfield value in Master form as the sum of the text fields of form in detail.

    APEX version: 4.2.3

    Oracle: 11 GR 2

    Browser: Chrome

    Hello Experts,

    I am very close to my first project end in APEX and I would really appreciate help in this last hitch.

    I have a master detail form and I'm trying to update a text box in the Master shape with the SUM of the values in the detailed form. I have created a process with the PLSQL Code that fires before saving the record.

    because me in 1... apex_application.g_f11. Count

    loop

    : P35_TotalAmount: =: P35_TotalAmount + apex_application.g_f14 (i);

    End loop;

    This means that if there are 3 rows in a table (the detail section) with f14 textfields with a value of 100, 200 and 300. I want to see the number 600 in P35_TotalAmount text box. However, this is not case. The problem is the use of: P35_TotalAmount. If I try to set the value of: P35_Totalamount by adding the two text boxes in tabular presentation so if works very well! For example, code below works fine.

    because me in 1... apex_application.g_f11. Count

    loop

    : P35_TotalAmount: = apex_application.g_f13 (i) + apex_application.g_f14 (i);

    End loop;

    Can someone please point out that I am I missing? Is there a better way to do this?

    Hello

    don't know if you posted the complete code of your process, but if P35_TotalAmount is null then it will never work for null + 100 = null

    So it should work:

    : P35_TotalAmount: = 0;

    because me in 1... apex_application.g_f11. Count

    loop

    : P35_TotalAmount: =: P35_TotalAmount + apex_application.g_f14 (i);

    End loop;

    concerning

    Bottom

  • MUSE menu to post a link to another site

    Hello

    One of my Articles of menu need post a link to another site... How can I do this?

    Thank you

    You must create a menu manuals in order to be able to bind the menu items to the external links.

    Alternatively, if you want to keep the menu Horizontal/Vertical because of their ability to fill in names page and links based on the structure of the site, you can try overlapping one of the elements of menu with an empty text block and the block of text superimposed a link to an external URL. You might consider grouping the text with the menu block as well to be able to move easily.

    Thank you

    Vinayak

  • Master-detail-shape; Hide/show columns in the form of details according to the column

    Hello

    I have a form master detail. In the long form, I have the columns:
    ID, MASTER_ID_FK, PC_SOURCE, A_C1, A_C2, A_C3, B_C1, B_C2, B_C3

    The PC_SOURCE of the column must be a LOV with values
    NULL VALUE
    A
    B

    So if I choose or enter a master record the detailed form appears and I can enter one or more detail records.

    PC_SOURCE is the first column.
    If I choose one, the columns B_C1, B_C2, B_C3 should disappear as there should be no possible entry.
    If I have B, A_C1, A_C3, A_C2 columsn should disappear as there should be no possible entry.

    Is this possible?

    I tried a bit of my own, but without success. I tried to put in the first column (lov SOURCE PC) in the attributes of the element a javascript call like onChange = "do_Refresh('#PC_SOURCE#'); »

    The javascript funktion do_Refresh tries to grab the value of the column and the value of a hidden item P1_SOURCE as document.getElementById('P1_SOURCE').value = v_source;

    But this does not work, because there is not the value of the recovered column.
    And probably can´t work because of more lines of a detail.

    Thank you and best regards,
    Matthias

    Hello

    The html code of your detailed form will be an array of the elements of entry with names f01, f02, etc.. The columns of the key of the fields are normally hidden, so your PC_SOURCE column will probably use the name f03. A_C1 column name will be f04 etc.

    Once you have the input names for your columns, you can create a dynamic action (DA) to hide the items you want.

    You want the DA to fire when any element PC_SOURCE is changed if you want when to be:
    Event: change
    Selection type: jQuery Selector
    jQuery Selector: input [name = "f03"]
    Condition: no strings attached

    The action is to hide an element in the same line, if the changed item is a value. The action must therefore:
    Action: Run the JavaScript Code
    Fires when the event is: true
    Code: if(this.triggeringElement.value=="A") {$x_Hide ('f04_' + this.triggeringElement.id.split ('_') [1])}

    You then need a lot of real actions for each item that you want to hide.

    Rod West

  • How to create a master/detail with a PK of 4 columns form

    I want to create a report/form (or a master-detail form) based on a table with a primary key of 4 columns. But only up to 2 columns can be présicer at APEX. How can I handle this?

    Sincerely,

    James

    Hi James,

    I think Mike suggests that you create a SQL view on the table and bring together the different values of the primary key in a primary key, unique, unique, nickname. You can always include the individual columns in the SQL, but you can then use this new column as the primary key on a form. However, you also need to create instead of triggers to manage the changes/insertions/deletions that SQL does not update the tables in a view. (See: [http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/create_trigger.htm#i2064426] for more details on this Oracle or Re: how to upgrade the table or view for an example within the Apex).

    Ideally, however, you should only really need a column of key - is it necessary for four?

    Andy

  • Try to link the large file to send. Keep is asked master pw to the safety device. I changed master pw on firefox and TB but still the same response.

    I've tried time and again to send this file. I've never synced before so I got that all set in place. Then ask master passwork safety device. So don't think that I had never set up an account and created the password. When you try to send email that I ask to link it goes to 'box' and I allow thunderbird to use use it. can he request master password and I type that in and it doesn't work. I have reset master pw for firefox and thunderbird and still can't make it work. I don't really know what I'm doing here so any help is greatly appreciated. Thank you!

    If the error message is:
    The message is "Please enter the master password for the software security device."

    then, it is possible that you have defined a master password in Thunderbird.

    The password protects the passwords of account that Thunderbird remembered. You can reset the password. More information in this article.

    Each account will have a password is the same one used to access the webmail account using a browser.
    However, it is quite easy to find this password, if other people have access to your computer user account.

    A master password is used to protect against people to see these passwords if they get access to your computer user and Thunderbird account.

  • iPhone 4S.  Stuck on request to post a link to iTunes.  Has started after installing the recent software update.  Tried to turn but the iTunes link keeps coming.

    iPhone 4S.

    Stuck on request to post a link to iTunes.

    Has started after installing the recent software update.

    Tried to turn but the iTunes link keeps coming.

    You can not connect the phone to iTunes as requested?

Maybe you are looking for

  • Why my PSAG0A - 02100Q Satellite A300 does not install audio drivers?

    I unsuccessfully downloaded (several times) the audio drivers from Toshiba downloads to fix a no audio device installed on a laptop Satellite A300 of operation Vista x 32. Previously it was solid. Also had computer built to solve the problem, but it

  • In Java Windows speech recognition

    I am an online gamer and have recently discovered this on my computer's speech recognition software. It works perfectly on processors and in most of the situations of Internet (in fact, I use it here right now), but there is one that I don't know if

  • It is safe to delete some files in windows?

    Is it safe to delete the following files from windows, which are blue: WM9 $NtUninstallkb952069 $.   $NtUninstallkb939663$? I have 68 of these files. Hope you can help me, Many thanks in advance, lliam45

  • How is it OS install (c.) has less GB of data (D ;) on my laptop

    ORIGINAL TITLE: More or less memory How is it OS install (c.) has less GB of data (D ;) on my laptop

  • Realtek driver problem for

    I have a problem when I run the troubleshooting that gives the following result. "Problems found." Realtek RTL8168B/8111 b Family PCI - E Gigabit Ethernet NIC (NDIS 6.0) has a driver problem.There is a problem with the driver for Realtek RTL8168B/811