How to delete several lines in the details Table with PRIMARY KEY = ("VID", "LINEITEM")?

Mr President

My worm Jdev is 12.2.1.

I have master tables / details.

I have 2 lines for each PRIMARY KEY = ("VID", "LINEITEM") as below in the Details table.

delete.png

Please help how to get a button on a jsf page to remove these two lines at a time.

Concerning

So, in your app (data model) module, you have a master relationship / typical retail:

And the relationship between them is based on some ViewLink

Now go to the ViewLink, relationship, accessor.

Take a look at the Destination accessor.

Generate accessor object to check and give a name Acessor

Then go to the master VO, Java and Include accessor, the class generate a display line:

Go to the class view Java generated line, you'll find a method with the name of the accessor of the previous step, in the form of:

public RowIterator getYourDetails...or_whaterever_IsAccessorName..() {
}

Now, in the same Java class, write the following Java method:

public void removeDetails(){
  RowIterator details = getYourDetails...or_whaterever_IsAccessorName..(); // it is RowIterator over all details
  Row r = details.first();
  while (r != null) {
      r.remove();
      r = details.next();
  }
}

This method on the Cilent export line Interface:

Finally, pass the data controls and drop this operation on the form as a button...

Tags: Java

Similar Questions

  • How do delet several columns in the 2D table 0

    Dear Sir.

    Please tell me how delet 0 multiple column besuace zero of one by a column of delet take too much time. Here, I have attached the program with this message and the main file.

    Julian_prince wrote:

    Please tell me how delet 0 multiple column besuace zero of one by a column of delet take too much time. Here, I have attached the program with this message and the main file.

    How big are your real matrices? How do you measure the speed? How fast is now and how fast should it be?

    In all cases, you can do it with a single loop, for example as an attachment.

  • Add lines to the slot table with apex_item.checkbox form?

    Hello

    I created a data manipulation process to add a line in a tabular presentation. The problem is that I have a few boxes and when I click on the button to call the procedure for adding line is not
    create one of the only text fields. Is anyway for me to create the checkboxes in this way?

    Thanks in advance!

    Hello

    Take a look on Re: Add a line in the detail table when the checkbox is enabled on a table of master report clone an entire line so it should include check boxes. Just make sure that ypu run updateInputs() or something similar to make sure that all the boxes have unique attributes "name".

    Andy

  • How to delete several items at the same time. need to highlight or check multiple items? I am referring to the Tablet Surface.

    I would like to empty deleted and unwanted records. Is there a way to select all!

    I do not know how to select everything, but you can scan slightly with your finger from left to right in each email that you want to remove, each in turn will be darker and get a check mark. Select the delete icon in the upper right and remove all these selected emails.

  • How to add several lines to the CreateWithParameters method

    Hello
    can someone tell me how to insert several rows in a table by using the CreateWithParameters method, which I use in a taskflow.

    That's why you get a null pointer...
    Add the iterator in this page or call the method in the second page... both should work... :)

  • How to delete several files at the same time in Windows 7

    Original title: I'm operating a windows 7 and I am the only operator. I'm used to Vista. All I want to do is to highlight several files and delete them from Documents in the trash.

    I'm operaating Windows 7 and I was used too using Windows Vista but I do not have the Remove feature that I outsourced either by organizing right clickng on selected files/files. I also have Norton Antivirus installed.

    Hi Allan Cole.

    It seems that these downloaded emails would not have permission to delete.

    You suggest to download and save all emails in a specific folder, and then you can delete or read emails downloaded from this particular file.

  • How to insert multiple lines to the DB table

    I create processes in BPM Studio 10 g.

    I write below the code snippet to insert data in the database.
    However, it does not work.

    In the flow of the screen, the user can key in several rows of data. I try to add the to_char (element.purpose), but the Studio does not allow me to do.

    I think the code is wrong, but I don't know how to change it.

    ----------------code in PBL------------------------------------------------------------------------------
    for each item in BPMObject.group1
    do

    Insert in DBM. SOADEMO. SZ_TABLE (id, amount, purpose, result)
    values (element.id, element.amount, element.purpose, element.result)

    end

    -----------------------------------------------------------------------------------------------------------------

    ID, amount: decimal
    Purpose, result: String

    DBM: Module
    A group is under a BPMObject but not inherit a table.

    Hello

    It seems that you do not use a variable in the statement "for each.

    Right now you have:

    for each item in BPMObject.group1...

    You can add a new instance variable called 'bpmObject' which is of the type "BPMObject". You must use this variable in the job call the interactive component fills the table of the group. Then, you would change your logic to reflect this change by making it to read:

    for each item in bpmObject.group1...

    Hope this helps,
    Dan

  • Copy a line in the same table with most original values

    Hello experts SQL, I hope you can help me. Forgive me if this topic has already been answered and posted but I couldn't find.

    I need to copy thousands of rows in a table to itself (table). The goal is to insert/add a new line of effdt for non-respondents according to a recent study. I get the old ' ORA-00001: unique constraint "error when I try to run sql. If I specify a value for one of the key fields, emplid, it's not a problem, but I can't specify the values 4 000 + in my sql.
    Could you please give me advice on how to achieve this? Your help is greatly appreciated. Here is my SQL test that does not work:

    INSERT INTO pers_data_usa has
    (effdt, emplid, MILITARY_STATUS, US_WORK_ELIGIBILTY,
    CITIZEN_PROOF1, CITIZEN_PROOF2, MEDICARE_ENTLD_DT)
    SELECT EFFDT, B.emplid, TO_DATE(SYSDATE,'DD/MON/YYYY')
    '1', 'Y', B.CITIZEN_PROOF1, B.CITIZEN_PROOF2, B.MEDICARE_ENTLD_DT
    OF pers_data_usa B, pers_data_usa A
    WHERE A.EMPLID = B.emplid
    AND A.EFFDT <>SYSDATE

    ORA-00001: unique constraint (SCHEMA. PERS_DATA_USA)

    When I put the values in emplid, the line is created. There is a unique constraint on the emplid for non-null and it is a key field.

    Thanks in advance for your answers and review... Jason

    What is the unique constraint that is violated, said the? (Is the name of the constraint really the same as the name of the table?) One or more of the lines that you want to copy probably already has a corresponding row in the table that violates the uniqueness constraint.

    If it is an array of PeopleSoft delivered, shouldn't use you PeopleSoft APIs to change the data? Unless you are absolutely certain you know all tables in PeopleSoft that potentially makes reference to this table, directly modify the data tends to cause a lot of headaches down the line.

    Justin

  • Several flat_files through the external table with only the common columns of loading

    Hi, I have 50 flat files and each of them have some columns (fields) common and I need to load only the fields that are common to an external Table. Is any chance to do it with education unique external table. Or I need to load all flat_files at separate tables and then with the ETG and UNION load them only one table.

    If the page size for all the files are different, I think that your only option would be to define different external tables and create a view that joins all the.

    HTH
    Srini

  • deleting several lines in a report?

    db11gxe, apex 4.0, firefox 24,

    How to delete several lines in a report at the same time?

    Thank you

    Hi newbi_egy,

    Here's a demo with a few steps that can be used in your scenario-

    (1) this is the query for a report on the emp table that has column empno with values single-

    SELECT APEX_ITEM.CHECKBOX(1,empno) " ", ename, job FROM   emp ORDER  by 1
    

    (2) a button Delete is created that submits the page.

    (3) a sur-soumettre the process is created with point process on submit - after calculations and Validations to determine that the sub process is running when you click the button remove.

    BEGIN
    FOR i in 1..APEX_APPLICATION.G_F01.count
    LOOP
    delete from emp where empno=APEX_APPLICATION.G_F01(i);
    END LOOP;
    END;
    

    I hope this could help you.

    Kind regards

    Das123

  • How can I delete several images in the Finder at the same time

    How can I delete several images in the Finder all at once rather than one by one

    Click on an image and the successive images to press the SHIFT, or command key by clicking on the image to add it to the selection. Then Ctrl-click (tap two fingers) on any icon and choose to put in the trash. If the icons are in an easily selectable column or online, you can click on the window that contain, and then drag around them for a multiple selection.

  • Question: how to format multiple lines in the Guild: email field

    Hello

    I would like to have a message of several lines in the body of the email. I can get the text to include, but all in a single line. How can I get the lines to be separated into several separate lines? Everything except the formatting of the message works very well. Here's my script, which does not work:

    app.mailMsg ({}

    bUI: false,

    cTo:

              cCc: " includedaccounting@fheg. Follett.com ; ", "

    bassujetti: 'True full up' + "" + page1.storeInfo.arMajor.rawValue + "" + pages1_3.page1.storeInfo.storeNum.rawValue,.

    CMSG: 'Hello,';

    + 'The true for this store was completed. Please find the links to the list control and reconciliation below. \n » ;

    + "Checklist: \n";

    + ' Reconciliation: \n ";

    + "Thank you, \n";

    }}}}});

    Thank you

    MDawn

    Hello

    It seems that you may have a few errors of syntax... or is the forum scrap things up.  You do not want any semicolons in the argument mailMsg() and you used all the accolades.  Something like;

    app.mailMsg ({}

    bUI: false,

    cTo:

    cCc: "[email protected];"

    bassujetti: 'True full up' + "" + page1.storeInfo.arMajor.rawValue + "" + pages1_3.page1.storeInfo.storeNum.rawValue,.

    CMSG: 'Hello '

    + 'The true for this store was completed. Please find the links to the list control and reconciliation below. \n ".

    + "Checklist: \n".

    + ' Reconciliation: \n ".

    + "Thank you, \n".

    });

    Concerning

    Bruce

  • How do a straight line of the curve?

    Hello

    I wonder how to move a line to the right a little bit without erasing anything.  How can I move on a bit?  The area that surrounds it may curve a little with it.

    Thank you

    Looks like you could had to use liquefy to move the line, or deformation of the puppet or perspective distortion. Several ways to edit an image and it is difficult to say without seeing a screen shot.

  • How to delete a playlist from the iphone 6

    How to delete a playlist from the iphone 6

    Open iTunes, plug in the iPhone, what you select ant to be on the iPhone, sync

  • delete several photos at the same time in the photo gallery

    I want to delete several photos at the same time without having to do them one at a time. They are all in the same folder, but I don't want to delete the entire folder.

    Hi glsshp,
    Open the folder, and then select the pictures (hold your left mouse button down and drag all the photos you want to delete until the blue box that appears surronds), then delete as you normally.

Maybe you are looking for