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

Tags: Java

Similar Questions

  • 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 "My Web Search" toolbar just published and where it comes from?

    How to remove "My Web Search" toolbar just published and where it comes from?

    You have installed something that is considered to be spyware/malware/adware. To see the Plugins reported with your question, click on "+ system details...". "to the right of your original question or, in the menu of Firefox, click Tools > Modules > Plugins.

    • My Web for Windows 32-bit Search Plugin heel

    This type of pest is usually installed as well as software that you download on the internet. programs, generally free, but not always. Watch carefully for 'extra' items that will be installed and uncheck or opt-out of them.

    1. "You can check if you have one of these of Web products ' installed:

    2. See also: http://kb.mozillazine.org/Uninstalling_toolbars
    3. You May need to change a preference if type one or two words in the URL/address bar when you send to a page other than the research that you expect. To reset your default URL/location bar search engine:
      • Enter Subject: config in the URL/address bar and press the Enter key
      • If you see a cautionary, accept it (promise you'll be careful)
      • Filter = keyword. URL
      • Under the filter, if keyword. URL is "BOLD", right click on the key word. URL and choose "Reset".
      • Restart Firefox (file > restart Firefox)
      • See: http://kb.mozillazine.org/Keyword.url
    4. You May need to reset your home page if some search page that you do not want or do not open when you launch Firefox. Firefox can open multiple home pages. Home pages are separated by the ' | ' symbol.

    Other issues that need your attention

    The information provided with your question indicates you have outdated plugins with known security and stability issues that need to be updated. To see the plugins submitted with your question, click on "+ system details...". "to the right of your original message of the question. You can also see your plugins in the Firefox menu Tools > Modules > Plugins.

    • Adobe Shockwave for Director Netscape plug-in, version 10.1
    • Adobe PDF plugin for Firefox and Netscape 8.2.6
    • Shockwave Flash 10.1 r102
    • Next-generation Java plug-in 1.6.0_22 for Mozilla browsers
    1. Check your plugin versions: http://www.mozilla.com/en-US/plugincheck/

    • Note: plugin check page lacks information about all versions of the plugin
  • Update to Shockwave for Director
    • NOTE: this is not the same thing as Shockwave Flash; This installs the Shockwave Player.
    • Use Firefox to download and SAVE the installer to your hard drive from the link in the article below (Desktop is a good place, so you can find it).
    • When the download is complete, exit Firefox (file > exit)
    • Locate and double-click it in the installer that you just downloaded, let the complete installation.
    • Restart Firefox, and look at your plugins.
    • Download link and more information: http://support.mozilla.com/en-US/kb/Using+the+Shockwave+plugin+with+Firefox
  • Update of Adobe Reader (PDF plugin):
    • Within your existing Adobe (If you have already installed) drive:
    • Open the Adobe Reader program in your list of programs
    • Click Help > check for updates
    • Follow the instructions to update
    • If this method works for you, go to the section "download full installer ' below and go to"after the installation"below
  • Download the full installer (If you have NOT installed Adobe Reader):
    • "Use the links below in order to avoid the painful' getplus" Adobe Download Manager and other 'extras' you do not want
    • Use Firefox to download and SAVE the installer to your hard drive for the appropriate link below
    • Click "save to file"; Save to your desktop (so you can find it)
    • Once the download is complete, close Firefox
    • Click on the installation program, you just downloaded and allow installation to continue
      • Note: Vista and Win7 users need to right click on the installer and choose "Run as Administrator"
    • Download link: ftp://ftp.adobe.com/pub/adobe/reader/
      • Choose your operating system
      • Choose the latest version of # .x (example 9.x for version 9)
      • Choose the version the most recent number
        • NOTE: 10.x is the new Adobe Reader X (Windows and Mac only from this announcement)
      • Choose your language
      • Download the file, save it to your hard drive, when finished, close Firefox, click on the installation program you just downloaded and let it install.
      • Windows: click on the .exe file. Mac: click on the .dmg file
  • Using one of the links below will force you to install the "getPlus" Adobe Download Manager
  • . Also don't forget to uncheck the McAfee scanner if you do not want the link force installed on your desktop computer
  • After installation, launch Firefox and recheck your version.
  • Update the Flash plugin to the latest version.
    • Download and SAVE to your desktop, so you can find the Setup program later
    • If you do not have the current version, click on the "Player Download Center" link on the 'download and information' or 'Download manual installers' below
    • Once the download is complete, exit Firefox
    • Click on the installer, you just download and install
      • Windows 7 and Vista: will need to right click on the installer and choose 'run as administrator '.
    • Launch Firefox and recheck your version or up to the download link below to test the installation
    • Download and information: http://www.adobe.com/software/flash/about/
      • Use Firefox to go to the site above to update the Firefox plugin (will also install the plugin for most other browsers, except IE)
      • Use IE to go to the site above to update the ActiveX to IE
    • Download manual installers.
  • Update the Java plugin to the latest version.

  • See also "Manual Update" in this article for update from the Java Control Panel in Control Panel: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
  • Removal of older versions (if required): http://www.java.com/en/download/faq/remove_olderversions.xml
  • Remove several extensions of Console Java (if required): http://kb.mozillazine.org
  • Java test: http://www.java.com/en/download/help/testvm.xml
  • How to remove lines under separate Notes?

    My document has strange lines between each note - does not know how to remove them. It is not the 'rule above,' as far as I can tell. I adjusted the rule above a lot, and that affects only the line between the body of the text and the Notes section. The problem is the lines between each note. They resemble the underscores, but I don't think that's what they are, either. Kind of a rule that I don't know how to change. See:

    Screen Shot 2016-01-21 at 11.01.45 AM.png

    Looks like the paragraph style that you are using has a rule in paragraph below market.

  • How to remove lines null in a matrix?

    Hello

    I have a 2D datamatrix and there are a few lines nil. My original program should recognize all zero lines and remove them. How to do this?

    I tried with the function delete of table but without success. I also tried with the functions of table OpenG but... No.

    I have attached a vi that simulates my problem. There is a zero line and I want to remove it and have a table with no rows.

    Cheers for good help!

    If you have more large data structures, you should never use of "delete table" inside a, because it requires constant memory reallocations. A better solution would be to make operations on-site and resize once at the end. Here's a simple example (8.5).

    (This solution can be optimized, but should show you the basic idea).

  • How to remove the unwanted parts of drawing black and white line

    I scanned in a flower art simple black and white lines.  I would like to remove some of the petals in Photoshop.  How can I do?

    Thank youFlower003.jpg

    I would like to remove the petals from the background.

    1 method: with the select magic wand the white bg, select-> invert the selection and create a layer mask.

    The layer mask is a monochrome picture, transparent black, white is opaque and anything in between is more or less transparent.

    You can now select the layer mask, use the brush and black paint, where you want to have something white, removed where you want to have something added. It is non-destructive and works very well on your photo.

    You can use shift click to 'draw' the small lines to attach to the top. According to the clarification, it will take more or less time. As I said are non-destructive.

    Second method: you use the pen to draw the lines around your flower vectors. With little exercise, you'll very quickly and you can always adjust the curvature of your curve, by pulling on the handles of the curve. Here you can see how it works: drawing with the pen in Photoshop tools .

    When done with the pen tool, you can add the vector line as a vector mask. You can even refine your mask after finishing. I suggest, since a mask of course work at a refined mask.

    The flower should not be on a layer, a background layer. Basemap layers have no transparency. The two methods are non-destructive, so you can return to the original image or parts of it, whenever you want.

  • How to remove lines

    How can I remove the blue lines in Adobe InDesign CS5. I want to see how the document looks without it.

    Screenshot_15.png

    Switch to preview mode. There is a button at the bottom of the Toolbox, a command on the view menu, or you can use the keyboard toggle W, when there is no active text cursor.

  • How to remove lines from the side of a rectangle

    Hello, I am a brochure design and have added a rectangle with an outline of a different color, but I want only the shot to be on the top and bottom of the rectangle.  How can I remove the sides?  I tried just by selecting the race with the direct Selection tool and then click on delete, but it removes the entire rectangle, fill and stroke.

    Thank you... my apologies for such a newbie question

    broomeGirl,

    You can:

    (1) create a copy of the rectangle and remove the fill on the copy and delete the line on the original;

    (2) after the deselection, with the direct Selection tool, click on each of the two unwanted segments and delete it.

    You can group the two strokes and the rectangle at the bottom.

  • How to remove lines in obiee report

    How can I remove the duplicated in obiee lines?

    for example I report 1
    in which
    It shows

    Name identity
    1 kate
    1 kate
    1 kate
    2 sunny
    2 sunny
    3 larry
    3 larry
    3 larry

    Hi user,

    You can use the distinct function. Look at the example below:

    separate ("Tablename". ("' Column name ')

    Put the code above in your formula in the column.

    Answer to points if the question is answered.

    Thank you
    -Laurence.

  • How to remove line before Panel table with databases?

    Hi friends,

    I created the table creation of database for the list of users. Which works very well. And I also recover data that is I've stored previously and I have displayed in table format on the front. Now, I want to delete a whole line, is not a wise order, for example, now, I have a table, there total 7 rows and 5 columns. Now, I want to delete the 3 rows using by selecting the line (i.e., click anywhere in this line and press the button) that day that the rank will be remove from the database. Then remaining will again store in the database.

    I want this way is it possible or not?

    Thanks

    Concerning

    Joel M

    India

    Note: I use the LabVIEW database connectivity toolkit

    Database: Ms access

    Sorry for my grammatical error

    arun575 wrote:

    Hi friends,

    [...] Now, I want to delete the 3 rows using by selecting the line (i.e., click anywhere in this line and press the button) that day that the rank will be remove from the database. Then remaining will again store in the database.

    Instead of storing data in the database, simply remove the record that you have removed from your FP indicator and recharge the light on the database.  (The first column in my database is named ID - autoindexed, the primary key)

    EDIT - only sub blue-vi is https://lavag.org/files/file/60-array-point-to-rowcol/

  • How to remove lines of the grid in PivotTable view.

    Hello colleagues,

    Is there a way to remove/hide the rows of the grid in PivotTable view. I came across this post, but somehow, I am unable to implement because it is not clear. I ask all those who have implemented using this post gives me no details. Appreciate any support!

    How do I delete rows of the grid in Pivot mode

    Thank you.

    Hello

    Hope that her below will help

    Hide gridlines in OBIEE

  • How to remove line empty when the data are not for a text field

    I created a PDF with Acrobat Pro 11 model. This model has an address of the employer with the address line 1, address line 2, city, State, zip code, country. The requirement is to show address line 1 and line 2 address in separate lines and address line 2 cannot be present always. If address line 2 is not present then the PDF should not show a blank line. How do I get there?

    These data are populated through xml by a publisher of BI. New line characters do not work.

    Appreciate your help on this.

    Hi sprphoto123,

    If you do not enter data in the text field 2 then you can set the form field property to is not mandatory, but if you want to disable the 2nd text field, you can add a check box in front of it to turn off the field. This can be achieved using JavaScript.

    Kind regards

    Nicos

  • How to remove LINE from iCloud backup

    My iCloud storage is almost full, because the LINE is hogging 1.3 MB of memory. I appreciate the stories of my LINE, but I didn't need to save in iCloud.

    When I tried to delete in iCloud, she threatens me that everything will be deleted from all devices.

    I go to iPhone setting to iCloud to disable the list of backup LINE, but the LINE is not yet.

    Help, please.

    Thank you

    You have installed for the line to the appropriate application? You can read the files using an application? If the answer to both is no, then line probably is not installed and the phone will not be affected by the deletion of iCloud.

  • How to remove lines of 2D array in this case...

    Hello. I'm just begging adventure with labview so please patient. I created a whitch program assumes that the work following the path:

    2D entry table is table created by FOLDER NAVIGATION Subvi. It works this way, browse by folder and looking for txt files which contanins measurment data. In my case Subvi based 4 files and their headers read information on what types of data are in file also their the path. 2D Array Input is created in this way. Subvi named TRACES OF PATHS TABLE make photo with polar/XY trace. Is to only create these plots and legends about a picture as many files (their paths) is installed to the program by the output array. I did this Subvi this way and I wouldn't change it.

    My problem is that in the same loop program (witch check any changes by the user) supposed to relay anly these rows (files) for that checkbox is marked, for example marking anly 1 and 4 box, the program should choose between the row of table 1 and 4 only input and passes the results matrix, then the Subvi pathnames TABLE PLOTS makes an image only with 1 to 4 of plot and legend only for the parcel 1 and 4. The best solution would be that a witch relay is avtivated by logic signal. He lost to me ideas how to fix it, I'm just around the corner from blaind...

    I tried using delete in the table, but I don't know how to use it properly in this program, becease it can be only before or after for loop. This is the scan of the front panel and main problem. Please settle down somehow to solve this problem.

    Concerning

    I have attached a vi. Is this the one you need?

  • How to remove Photos from the iPhone/iPad/iCloud and no pictures

    How to take a photo with my iPhone/iPad, allow it to synchronize with Photos on my Mac via iCoud, then delete from my iPhone/iPad/iCloud and removes any Photos on Mac? I want to save the photo on your computer and save space on small devices?

    I keep seeing articles on the iCloud market turn but it seems the photos all return on the devices once restarted. I want to iCloud on use as a conduit to get the photos to my computer, not as a large storage space. I want the Photos app on my Mac where all the photos are filled and stored and choose those which is left each device.

    Right now they are all in the pictures on the Mac, but I'm worried if I remove it from my iPhone/iPad that they will disappear from Photos on the Mac. I don't understand the new Photos app with all the missing features of iPhoto.

    Thank you!

    You can not that's not how works iCloud photo library - it is not a conduit but a total synchronization service whose entire raison d'etre is to keep libraries connected identical - all changes made on any device (addition, deletion or modification) are made on all devices. For devices with limited memory, using optimized photos

    If this isn't what you want then use another service - USB import, iTunes sync, MyPhotoStream for example each do different things and everyone can move photos from one device to another

    And Photos lack a lot of features iPhoto form - in fact much more features than iPhoto including iCloud library there like a bigger and better editing capability and better external editing capability and so on

    LN

Maybe you are looking for

  • Pro 2100 sat - Question about the installation of the OS

    I had to reinstall Windows XP and Office XP and basically lost everything: including pre-installed software drag ' drop. I don't have the recovery with me cd. Download the software somewhere? Also, I bought a Wireless-G Notebook Adapter from Linksys,

  • HP Pavilion 1201tx g6: bios password

    Hello I tried to install a new OS on my HP Pavilion g6-1201tx notebook, but the bios is locked and I don't know the password. Help, please. Thank you

  • T510 replacement screen HD - one which?

    Hi all I have a Lenovo Thinkpad T510 (4314-7NU) with an Intel HD graphics card and I want to replace the LCD because the original has been hacked. I see three options for LCDs are: HD, HD + or Full-HD. Can I replace my current LCD screen with any of

  • Windows and the Base filtering lack Windows, the Firewall Security Center services

    Original title: I have a problem with my computer. In my computer, the windows Security Center service, windows firewall and filtering basic service is missing. I know they are very important from another post on this forum. So, I'm worrying about my

  • MovieMaker of Windows in Windows 7

    Windows Live Movie Maker is garbage. I downloaded MovieMaker old version 6 on my Windows 7 PC. It works well and fills all the usual functions in order to produce a finished project. MSWMM file format. Then, the only problem is that you can't publish