How to remove children lines with removal of multi line?

Hello!

I have a DSM process that removes the selected lines of the report, but it gives an error if the line have a child row in another table, so I have to go to this report and remove these first.

Just add somewhere in the DSM process something then it removes children lines too, or I have to create new process for this?

Hi EgaSega,

DELETE will work if there is no foreign key constraints that refer to the line to remove.

If you don't have foreign key constraints, you can change them to 'ON DELETE CASCADE '. This way, if you DELETE a row in a parent table, all child rows will be auotmatically DELETED, too.

There are also "ON DELETE SET NULL', which allows you to DELETE the parent rows with children. When you DELETE a parent, child rows are not automatically DELETED, but the columns that pointed to the DELETED parent are automatically changed to null.

Check out this old thread of discussion forum SQL and PL/SQL for more details:Delete record based on the ID of the main table

Hope this helps you,

Kind regards

Jitendra

Tags: Database

Similar Questions

  • How to remove a shortcut with the command line?

    How to remove a shortcut with the command line?

    How to make a backup of the local users and groups with command line?

    You delete a shortcut, just as you would remove any other file.  A shortcut will end with the extension ".lnk".  So assuming you are trying to remove the shortcut named "Shortcut.lnk" which appears to the user 'Bob's Office, you use the button Delete (del) or 'clear' command by specifying the full path to the file.  (Remember to put filename in quotes if there is a space anywhere in the path or name) as in:

    del "C:\documents and settings\Bob\Desktop\Shortcut.lnk".

    What kind of a backup 'users and groups' you want to do?  If there is a backup of the users and groups as written in the registry, a good registry as C:\WINDOWS\ERUNT backup program that will make the command line.  If you are trying to backup all users and their data as well, then you are better off with a backup program.

    HTH,
    JW

  • How to remove the black line with a canvas stacked at run time?

    Hi all
    I developed a canvas stacked in a table of content, when I run the form takes the apeared canvas stacked with a black line.
    How to remove this line, or how to remove this line at run time?
    I tried to do by putting (no line) in the Toolbox of the line color tool after selecting black line one and after selecting the stacked another painting once, but this has not solved the problem!

    I need something else:
    I put the canvas stacked to the block of data in detail and did not appear since I run the query in the database block
    How to make appear stacked directly canvas before you run the query in the master data block?

    What is your version of forms? I don't know what black line you're talking about.

    Regarding the display of the canvas, first make sure it isn't about who has the focus and she rides (located under the canvas completely or partially) your canvas stacked, this will cause to the canvas to hide in order to display the item that has the focus. And you can also try using SHOW_VIEW ('your_stacked_canvas'); in your form, this will show the stacked canvas.

    Tony

  • A black bar with command line down load automatically - how to remove

    Some time ago I noticed that a black bar began to appear at the bottom of the firefox window. There > > brand on the left, a suite command line to report without delay, which allows me to write, and an icon key and 'x' on the right. When I hover the mouse over the key, he says "switch developer tools" (or something similar in the sense - I translate from Polish). I spent the better part of an hour to seek solutions on the web, but I'm at my wit's end now - I don't know yet what we call this bar! Whatever it is, I would be eternally grateful for any advice on how to remove this terrible thing my browser (the more permanent solution, the better it is). Thanks in advance

    Try to go into Tools> >Web Developer> > now uncheck all options

    More:

  • How to remove empty lines of string?

    I have a string like:

    "

    Error

    "

    And I Don t get to compare it with the string "Error".

    How to remove these blank lines?

    Thank you!

    There is a function called Trim programming spaces > String > Trim spaces.

    Check if it works for you.

  • How to remove the default for a limited only account gateway (with static ip address)

    I have 1 pc with 4 accounts 1 account administrator and user the rest is limited accounts. I use a static ip address and the question is how to remove the default gateway on these limited account so that they cannot access the internet

    The entry door is fixed to the adapter and selectively cannot set properties of the different adapter for different users, all users use the same adapter.

    With Internet Explorer (does not work with other browsers), you can configure a proxy server with a fake address, you can do this through Group Policy, or you can do it manually for each individual user through the Internet Options settings.  You can set the proxy server address map of loopback (127.0.0.1) or you can set it to a bogus address of your private address range (usually the range 192.168.xxx.xxx)

    If you are using other browsers, you can use NTFS permissions to deny access to the Explorer or the program directory or you can use software restriction policies to deny access to specific programs.

    Alternatively, you can use a logon script to activate the network connection service when you open a session and the other to turn it off when you log, but if you do this you will disable the entire network for limited users if it cannot be a solution for them.  The script can be a simple two-line script:

    Logon script:

    SC config Netman start = demand
    net start netman

    Logoff script:

    net stop netman
    SC config Netman start = disabled

    These can be useful:

    http://www.howtonetworking.com/Internet/restrictie11.htm
    http://www.christianblog.com/blog/abelajohnb/disable-Internet-access-in-Windows-for-specific-user-accounts/

    John

  • How to remove the old drivers (hidden) command line?

    Hello

    I want to try to remove all the hidden command prompt devices. There is a way to this topic?

    For example;

    type driverquery on cmd and sort all the lists of hidden devices

    After that type Remove any device (for example) and remove this hidden device

    Thank you.

    Enbiya salvation,

    Thanks for posting in the Microsoft Community.

    You can manually remove hidden devices by following the steps below.

    1. press the key Windows + X key, then select "Device Manager".

    2. from there, select the view > show hidden devices.

    3. now, select the hidden device > right click and select "Uninstall" to permanently delete or 'Disable' to disable the device.

    To find the command prompt commands and settings command line of how to do the same with the command prompt, you can follow the link below and check if it helps.

    Windows Device Console (Devcon.exe)

    https://msdn.Microsoft.com/en-us/library/Windows/hardware/ff544707 (v = vs. 85) .aspx

    Please let us know if the problem is resolved or you need additional assistance.

  • How to remove lines in my vo fit two and sometimes in sound?

    Mr President

    My worm jdev is 12.2.1.

    My use case, it is that I have a VO in which I enter two lines and sometimes its due to the involvement of certain products sales tax.

    On two rows as a single line is visible to the user for which the product id.

    The second row two is hidden who have no product id.

    Now how to remove these two lines and the other in the same way that they have been inserted in two and his.

    The peak of lines is something like that

    multiple rows delete.png

    Now my question is what a single line is visible to users who have IDs and product line without product id is hidden to the user in my vo.

    Then if the user click on the Remove button and then the two rows are deleted together with the click of one button Delete in the case of two lines combined.

    Concerning

    Mr President

    In fact, my goal was to remove only lines which were inserted in some and not all rank both in the join of two by vid.

    I find the solution by adding a new column in my table of details named joinrows.

    Change my code like below and at the same time only one or two lines are deleted at once in the same way that they have been inserted in the one and two.

        public oracle.jbo.domain.Number getFirstSeqNumber(String seq_name){
    
                 SequenceImpl seq=new SequenceImpl(seq_name, getDBTransaction());
                    return seq.getSequenceNumber();          
    
                       }
    
        /**
         * Custom DML update/insert/delete logic here.
         * @param operation the operation type
         * @param e the transaction event
         */
        protected void doDML(int operation, TransactionEvent e) {    
    
            if(operation != DML_DELETE)
                 {
                     setAmount(getPurqty().multiply(getUnitpurprice()));
                 }
            if(operation == DML_DELETE)
                {
                  deleteSecondRowInDatabase(getJoinrows());
                }  
    
                           if (getStaxrate() != null )
                                      {
            if (operation == DML_INSERT )
                       {                     
    
                               oracle.jbo.domain.Number joinrow = getFirstSeqNumber("JOINROWS_SEQ");
    
                               setJoinrows(joinrow); 
    
                               System.out.println("I am in Insert with vid= " + getVid());
                           insertSecondRowInDatabase(getVid(),getLineitem(),getJoinrows(),"6010010","SALES TAX PAYABLE",getCredit(),getCrname(),
                            (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100));     
    
                           }
    
            if(operation == DML_UPDATE)
                              {                                                    
    
                                 System.out.println("I am in Update with vid= " + getVid());
                             updateSecondRowInDatabase(getVid(),
                                 (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100));      
    
                              }
                       }
            super.doDML(operation, e);
        }
        private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object value4, Object value5, Object value6, Object value7, Object value8)
                  {
                    PreparedStatement stat = null;
                    try
                    {
                      String sql = "Insert into vdet (VID,LINEITEM,JOINROWS,DEBIT,DRNAME,CREDIT,CRNAME,AMOUNT) values " +
                 "('" + value1 + "','" + value2 + "','" + value3 + "','" + value4 + "','" + value5 + "','" + value6 + "','" + value7 + "','" + value8 + "')";  
    
                      stat = getDBTransaction().createPreparedStatement(sql, 1);
                      stat.executeUpdate();
                    }
                    catch (Exception e)
                    {
                      e.printStackTrace();
                    }
                    finally
                    {
                      try
                      {
                        stat.close();
                      }
                      catch (Exception e)
                      {
                        e.printStackTrace();
                      }
                    }
                  }  
    
                  private void updateSecondRowInDatabase(Object value1, Object value8)
                  {
                    PreparedStatement stat = null;
                    try
                    {
                      String sql = "update vdet set  AMOUNT='"+ value8+"' where VID='" + value1 + "'";                     
    
                      stat = getDBTransaction().createPreparedStatement(sql, 1);  
    
                      stat.executeUpdate();
                    }
                    catch (Exception e)
                    {
                      e.printStackTrace();
                    }
                    finally
                    {
                      try
                      {
                        stat.close();
                      }
                      catch (Exception e)
                      {
                        e.printStackTrace();
                      }
                    }                  
    
                  }
    
        private void deleteSecondRowInDatabase(Object joinrows)
          {
            PreparedStatement stat = null;
            try
            {
              String sql = "delete from vdet where JOINROWS='" + joinrows + "'";
              stat = getDBTransaction().createPreparedStatement(sql, 1);
              stat.executeUpdate();
            }
            catch (Exception e)
            {
              e.printStackTrace();
            }
            finally
            {
              try
              {  
    
                stat.close();
              }
              catch (Exception e)
              {
                e.printStackTrace();
              }
            }
          }      
    

    Concerning

  • How to remove line/address in PDF file?

    How to remove line/address in PDF file?

    Joan Willets

    Remove you it with text editing / retouching tools in Acrobat object or mark for redaction, so he gets blacked out.

    Mylenium

  • How to remove unused lines

    Hello

    I developed a master details Page, at the level of the line I always used to display 10 lines. I used to assign the foreign key values when you save it and it works fine.

    My problem is how to remove the unused lines, save empty in the database lines, please help it's UAT edition.

    Hello

    Public Sub removeUnusedLines()
    {
    Pervert XXEGASRLinesVOImpl = getXXEGASRLinesVO1();
    XXEGASRHeadersVOImpl pervo1 = getXXEGASRHeadersVO1();
    Rank rank [] = pervo.getAllRowsInRange ();
    Rank row1 [] = pervo1.getAllRowsInRange ();
    XXEGASRHeadersVORowImpl = (XXEGASRHeadersVORowImpl) row1 rowh [0];
    for (int i = 0; i)<>
    {
    Rowi rank (XXEGASRLinesVORowImpl)= XXEGASRLinesVORowImpl;
    If ((Rowi.getItemDescription ()! = null) &!("".)) Equals (Rowi.getItemDescription (). Trim()))
    & (rowi.getDimLength ()! = null)
    & (rowi.getDimHeight ()! = null)
    & (rowi.getDimWidth ()! = null)
    & Rowi.getWeight ()! = null
    & (rowi.getItemNumber ()! = null & (!("".)) Equals (Rowi.getItemNumber (). Trim()))
    & (rowi.getProjectName ()! = null & (!("".)) Equals (Rowi.getProjectName (). Trim()))
    & (rowi.getTaskName ()! = null & (!("".)) Equals (Rowi.getTaskName (). Trim()))
    Rowi.Remove ();
    }

    }

    This code number is checked for single value null to a string are checked for both null and string with spaces like "", if it please take care of this in your code, otherwise the code does not work as expected. "

    Hope this will help.

    Kind regards
    Out Sharma

  • How to remove places the iphone with IOS 10 album

    HOW TO REMOVE PLACES AND PEOPLETOP ALBUMS SINCE IPHONE RUNNING IOS 10?

    lwwfromohio wrote:

    HOW TO REMOVE PLACES AND PEOPLETOP ALBUMS SINCE IPHONE RUNNING IOS 10?

    First, turn off your hats of all the...

    You can not as these files came with ios 10.

    don't like it use the contact us link below to notify Apple.

  • How to remove a user name of unwanted e-mails that appears only with firefox and not with chrome or internet explorer.

    This problem is to go to a Comcast email address wandering through the homepage of Comcast - Comcast records do not appear this username exists anywhere within their system and says it's a firefox issue. The unwanted name appears that when you use firefox to access the homepage of Comcast and drop sign-in window. When you click on the wrong user name, the message indicates the address is not recognized. Bad user name does not appear when the homepage of Comcast is implemented using chrome or internet explore. Would appreciate advice on how to remove this unwanted user name which seems to lie somewhere in the system of firefox. Grateful to all those who would try to help.

    You can use the following steps to delete the recorded data (form) in a drop-down list:

    1. Click on the (empty) input field on the web page to open the drop-down list
    2. Select an entry in the drop-down list with the mouse or the cursor key
      do not click with the mouse or press the Enter key
    3. Press the DELETE key (on a Mac: shift + del) to delete the highlighted entry
  • I need to know how to remove the most recent version of Firefox. I JUST downloaded tonight and my computer does not have this edit bar little to work with, so I can download the reader good Adobe and my internet was screwed up ever since I downlo

    I need to know how to remove the most recent version of Firefox. I JUST downloaded tonight and my computer does not have this edit bar little to work with, so I can download the reader good Adobe and my internet was screwed up, since I downloaded the new version of Firefox. I want just the old version of this back because I can't download the Adobe stuff which is necessary to protect my computer against hackers apparently not. It would have been nice to know he had a problem with the new update of Firefox BEFORE I downloaded it. I have Vista, which is usually a problem with Adobe and Firefox. I don't seem to be able to run a lot of Adobe at all on my computer because of the Vista.

    This has happened

    Each time Firefox opened

    http://support.Mozilla.com/en-us/KB/installing+a+previous+version+of+Firefox

  • I get a Debug error message: [Exception... "No node is not found" code: "8" nsresult: "0 x 80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)" location: "chrome://ffebayhot/content/lib/Extension.debug.js line: 366"] using Vista. "." I do not understand how to remove t

    Whenever I try to use google for a search, I get the error msg following Debug error: [Exception... ["No node is not found" code: "8" nsresult: "0 x 80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)" location: "chrome://ffebayhot/content/lib/Extension.debug.js line: 366"]. I saw the solution proposed to MS XP, but not for Vista. In addition, while I saw the solution, I need more explicit instructions on how to "remove the ebay extension.

    This has happened

    Each time Firefox opened

    == When I try to load google Firefox, I get the error error Debug message: [Exception... ["No node is not found" code: "8" nsresult: "0 x 80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)" location: "chrome://ffebayhot/content/lib/Extension.debug.js line: 366"]

    Tools-> Add-ons-> Extensions

    At the top of the Firefox window, click the Tools menu and select Add-ons. Modules window appears.
    In the window modules, select the Extensions Panel.
    Select the module you want to uninstall.
    Click on the button uninstall. When you are prompted, click on uninstall to confirm.
    Then restart Firefox.

    Read here:
    #How uninstall the extensions and themes | Uninstall the extensions

  • HO OfficeJet Pro 8600: how to remove a static ip address on my HP 8600, using mac 10.7.5 work with wifi

    I have trouble printing through my wifi network. How to remove a static ip address on my HP 8600, using mac 10.7.5 to work with wifi?

    With the help of my NetGear N900 / CG4500BD modem/router with DHCP, there are different IP addresses of the printer, if the printer is connected is 192.168.0.13, when the printer use wifi IP is 192.168.0.20, and on the printer, it shows 192.168.1.142 I think is a static IP address, because it can cause the confussion.

    I appreciate your help, thank you, the Job Dr.

    Hello

    Please go to system-> Network Preferences. Select the airport on the left, and then click Advanced in the bottom right. Switch to TCP/IP and select "using dhcp". Click ok, and then click on apply. After a few seconds, you should get an IP address from the router.

Maybe you are looking for

  • Portege Z10t-a - SIM card is not detected after Win 8.1 upgrade

    Hello world I have a Z10t-A. Portege Toshiba Pro win 8.1 recently, just upgraded to 8.1 Win.Before the upgrade, I could use the sim card to connect to the VPN, but since the upgrade the sim card not detected. I use an application called "AirCard Watc

  • application error look at files on the xbox extender

    Xbox360 application error/vidio I have the new xbox 360 and I try to play movies that are on my computer (XP media center). The xbox will open media center, see the video option, view the video file and the individual films & home made videos. When I

  • BBM SDK app - phone support?

    I'm a little confused about the new BBM SDK supported. Bold 9900 with OS 7.0 will support these apps for sure, as BBM 6.0 will be preloaded. But what about phones with OS6.0 and OS5.0? According to my understanding, BBM 6.0 could run on OS5.0 and OS6

  • Question of the phase 2 of VPN

    Hello I'm AEK I am facing problem in the 2nd phase of the vpn between two ASA. The questions that the tunnel is upward, but in the second phase, the traffic is encrypt but not decrypt waiting for NAT - t, what could be the issue please let me know

  • How to re-intall lightroom 6 after a crash without purshasing drive it?

    HelloMy computer crashed and I had to format the drive and reinstalled windows 8.I reinstalled with my id number lightroom but 6, 30 days after that, "the trial period" is over and I can't use lightroom.Thanks for your help