Processes necessary to remove line

Hello

I need to create a process that will allow users to remove a line when they press 'Remove accused', this isn't a button but a link to the column in the table that also redirects the current page. I don't really know what to do.

If you want more information, just ask :)

Thank you
Sandy

Hi Sandy,

OK - keep in mind that my page is number 212 and I'm working on a table called EMP3, which is a copy of the sample table EMP (I just added a button to fill again the EMP3 table if all the records are deleted!)

That's what I did:

1. I created a report using the following SQL statement:

SELECT EMPNO, ENAME, JOB, HIREDATE
FROM EMP3

2 - I then created a "Hidden and protected" page element called P212_EMPNO (you create a hidden item and then select the option 'Hidden and protected' to do so). This will be either NULL or hold the EMPNO of the element to remove value

3 - I then went back to the report page attributes for my report and click on the task of 'Add column link' (on the right of the page). When it is created, I returned to the report attributes and clicked on the option "Custom" sections and changed the title to the new column to & nbsp; (this is just a space and means that no topic is displayed)

4. I then clicked on the icon to change to this new column and scroll down to the "links" section. There, I made the following adjustments:

Link text: Delete (you can put whatever you want)
Target: Page in the present application
Page: 212 (which is the current page)
Point 1 (name): P212_EMPNO
Article 1 (value): #EMPNO # (which is replaced by the value of the EMPNO column for each row in the report)

Then you click on apply changes to save it

5 then, I created a new branch in the page. When creating this, the only parameters that I made were:

Page: 212
Reset pagination: checked

It's just an unconditional branch - you should have one of them on every page, unless you have dealt specifically with connection via buttons

6. now the important bit. I created a new process on the page — by clicking on the icon create in the section of the Page Rendering process. The settings I made were:

Process category: PL/SQL
Click next

Name: P212_DELETE_EMPNO (or what you want)
Sequence: 10
Point: When loading - before header
Click next

Enter the PL/SQL Page process:

BEGIN
 DELETE FROM EMP3 WHERE EMPNO = :P212_EMPNO;
 :P212_EMPNO := NULL;
END;

Click next

Success message: (what you want)
Failure message: (what you want)
Click next

Condition type: the value of element in the Expression 1 is NOT NULL
Expression 1: P212_EMPNO
Click on create a process

And it should be. You now have an element of hidden page that either NULL or will receive an EMPNO value via your new column binding. When the link is used, the page is reloaded and the new process checks if the value is P212_EMPNO. If it has, it uses this value to delete the record and then resets P212_EMPNO to NULL.

Andy

Tags: Database

Similar Questions

  • Add or remove lines of a treeTable with a view read-only object

    Hello-

    I get an error of Houston-25016 when I go to remove a line in a treeTable. I want to create the hierarchy of a stored procedure, have the user add and remove nodes without remind to the database. I'll walk the tree and see what has changed and made the necessary updates to the database manually.

    What is the correct method to add or remove lines form the user interface component?

    Thank you!
    Tom

    Try the definition property for each attribute in VO on still changeable.

    Amit

  • Remove line home pg up, pg dn buttons does not

    Laptop HP G60 - 243CL

    PrtSc remove line home pg up, pg dn buttons does not. they simply stop for some odd reason. How to fix?

    Thank you

    laptop is under warranty

    Bill

    Hi Bill,

    In this case, it would look like it is a hardware problem.

    As your laptop is still under warranty, my best advice would be to contact HP and make arrangements for this fixed - you can check the status of your warranty here.

    If you live in the United States, contact HP here.

    If you are in another part of the world, begin here.

    Kind regards

    DP - K

  • AppleScript remove lines

    Hello

    I am trying to remove a range of line with Applescript in InDesign, but I do make...

    I now how to remove a single line:

    Tell application "Adobe InDesign CS5.5"

    activate

    the value allTables all tables in all the stories of the active document

    say point 1 of allTables

    Remove line I

    tell the end

    tell the end

    But not for a range...

    If you know how, can you help me?

    Thank you very much

    PS: Sorry for my English, I'm a french girl...

    Thai

    Hello Thaïs,

    For the CC 2015 version is:

    say application "Adobe InDesign CC 2015"

    activate

    say each table of each history of the active document

    delete (lines 2 to 5)

    end say

    end say

    It should work the same for your version.

  • 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

  • PDF Optimization removes lines for the arrows & circles

    I am using Acrobat 9 Pro for Mac.  I created documents that have need of arrows and circles around some of the images, & have created PDFs of these documents.  I need to optimize PDF files to reduce the size of the file, but in doing so, the PDF Optimization removes lines from the arrows & circles, leaving just the start & end points.  Here is an example of before and after optimization:

    Lines Removed.png

    I changed almost all the settings in the PDF Optimizer, but it always deletes the lines.  What I'm missing here?

    Thanks for your help!

    I just found it seems to do with the way that Word for Mac 2011 creates PDF via "Save as PDF".  I found that this works:

    1. In Word, print-> "Save as Adobe PDF" with the highest print quality.
    2. In Acrobat Pro, run optimization PDF with "Standard settings".

    I had the following results:

    • Original Word doc @ 17.2 MB
    • Adobe @ 14.2 MB PDF file
    • Optimized @ 3.8 MB PDF file

    It looks like a lot of steps for me, but it produces a PDF file of high quality to a decent size.

  • Remove lines from the file export with scripts

    Hi all

    I'm trying to remove some lines after their mapping in FDMEE given a condition. Here I have an example of the source file:

    Account Currency Currency source Company Amount
    100000EURUSDXX100

    100000

    USDUSDXX120
    200000EURAUDXXX10
    300000EUREURXXX20
    200000AUDAUDXXX10

    I want to remove from the export file, lines that are red. I mapped to the column currency to ignore all the currencies EUR (maybe it's not necessary) to have:

    Account Currency Company Header 4
    100000EURYY100
    100000IGNOREYY120
    200000EURYYY10
    300000EURYYY20
    200000IGNOREYYY10

    Currency source is not necessary, but I am without mapping it. I'm new in FDMEE and in the scripts, but I thought that maybe a script custom or an AftExportToDat but I'm naïve... Could someone help me please?

    Thank you!

    Hello

    using custom application as application target in FDMEE?

    If you define mappings to IGNORE as Simon suggests that they should not be exported to the file. They are always exported? I do not expect that

    If the lines are exported so that you can use AftExportToDat to remove currency field lines to IGNORE.

    Probably, you will need to create a new empty file, then go through the lines of your export file and write that in the new file if CURRENCY <> IGNORE

    Better would be to Enable export file value not so you can write your own script to export the data in the event your want to TDATASEG for the current LOADID

    (Ex: SELECT...) OF TDATASEG where LOADID =? AND the MOTTO <> 'IGNORE')

    where? fdmContext ["LOADID'] is passed within the parameter list

    Concerning

  • How to trigger a process of transformation of line automatic (DML) + custom PL/SQL block

    I want to start a process of transformation of automatic line (DML) as well as a custom PL/SQL (stored procedure) block. How can I do this? The ARP process is also triggered by another button in the page, but without the PL/SQL block.

    Both in concrete: I have a 'save changes' button and a button "save changes and perform necessary tasks. For the first button, the ARP has fired, to the other, the ARP has triggered + a PL/SQL block that calls a stored procedure that is extra. How can I do this?

    Tom,

    And the ARP has a sequence number that is less than the OTHER_PROC? You can change the status of the ARP, rather than be triggered by your request to SAVE button, it runs when:

    Request is contained in the Expression 1

    where 1 Expression has the value:

    ECONOMY, APPLY_OTHER_CHANGES

    Or ask your shipment of buttons.

    It should run any process with a matching condition, even after the ARP. OTHER_PROC should get run thereafter, based on the corresponding application.

    Thought, have another you noticed this info on the form of editing process?

    Update validates the values of request: SAVE, APPLY the CHANGES, UPDATE, UPDATE, MODIFY, APPLY, APPLY LINE of CHANGES %, GET_NEXT %, GET_PREV %

    So the query of your button name must match one of the people. I guess that the last 3 will match AS expressions, so your OTHER request button could be APPLY_OTHER_CHANGES.

    I hope that does it for you, otherwise I feel really stupid! :-/

    Stew

  • How can I remove lines "separator" bookmark?

    I want to eliminate all the separator lines in my favorites. I'd like them to go away.

    Hi, the separators that you created yourself can be removed by a right click on it > delete. Hope that helps.

  • 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 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).

  • Necessary to remove the my computer windows family safety staff windows 7...

    Not the most confident person when it comes to computer skills! Searched through my uninstall, but do not know if I will delete everything related to windows in the process. In addition, is a second hand computer, is an ID of foreigners who don't always appear at the same time very random and little practice! THANKS FOR THE HELP - IF ALL GOES WELL

    Hi Ilisalassen,

    Welcome to the Microsoft community. Let me make sure I understand. You want to remove parental controls on your computer. Is this correct? If so, you can uninstall the parental control by following the instructions in the solution below article:

    How can I remove parental control?

    Good luck and let me know how it turns out for you.

    Regarding the foreign ID that continues to appear at random, we ask that you provide us with a screenshot showing that foreigners ID so we can have a better overview of the issue. To do this, please follow the instructions in the section below on how to capture a screenshot.

    How to capture a screenshot using Windows Vista or Windows 7, Windows 8?

    Once the le pret loan of the screenshot, please download on the private message area that we have undertaken on your workstation.

    Note: you must be connected to the instance of the Microsoft Community to see the link. Just click on the link "You an answer in private to this message" just above your message to view the message.

    We must also respond to this message if you have already provided information on the private data area. This will help facilitate our actions on your question.

    Thank you.

  • 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

  • Best way to remove lines of 38million?

    Hello

    ENV: Oracle 11 g 2 (11.2.0.3.6) on the file system, Oracle Linux 6.2 64bits

    I was invited to remove redundant/old data from a table that has not been cleaned for long loooong.

    Select count (0) PI PROC_INST

    where there is not (select id

    of ids_to_keep rb

    where rb.id = pi. RAW_BUFFER_ID

    )

    and pi.instruction_type not in ('URL1', 'URL2')

    Returns the count = 38442973

    Delete it:

    remove IP PROC_INST

    where there is not (select id

    of ids_to_keep rb

    where rb.id = pi. RAW_BUFFER_ID

    )

    and pi.instruction_type not in ('URL1', 'URL2')


    I tried to delete like this, but it failed with "ORA-30036: unable to extend segment by 8 in the undo tablespace ' UNDOTBS.

    What is the best way to remove pieces and validation for each segment of deleted data?

    Best regards

    How many lines will remain in the table? Maybe create a new table using ETG and exchange the original after the operation table would be more efficient (if the table is not in permanent access).

  • How can I remove lines in my picture?

    I remember seeing an easy way to remove wrinkles as power lines of an image, but I don't remember how to do it. Can someone tell me please?

    Try the disappearance of lines with Photoshop CC - YouTube

Maybe you are looking for

  • How do you know the model number for my iPod Touch?

    I need to find the model number for my iPod Touch - this is not about documentation or on the device itself. I need to find it to buy a protector screen for her.

  • Need help with my PCI device

    I use a HP Pavilion Sleekbook 15-b011nr, 64 bit of Windows 8. One day my PCI device displays an error message which is: The drivers for this device are not installed. (Code 28) To find a driver for this device, click Update driver. Click on update dr

  • RVL200 displays "system busy! Please wait... ' when loging in to the configuration page.

    Had an IPSec tunnel with a RVL200 at each end for well over a year.  Lately the problems started with one of them.  Attempts to open a session configuration pages (locally or remotely) or a VPN translates the message "system busy! Please wait a minut

  • Severe warning message

    Try to install reinstall HP Quickplay in the pack of web service and I get a warning dialog box that says "severe: installation will be completed in that time." The software is for Windows Vista only. »... I use a computer Windows Vista Home Premium,

  • Problem with a file name change

    Is a system restore a way to recover the old name