How to hide the table row after deleting logical

Hello.
I use Jdeveloper 11.1.1.3.0, ADF BC and ADF Faces.
I would like to implement the logic delete in my application.
In my entity object I have deleted attribute and I replace the remove() method in my EntityImpl class.
    @Override
    public void remove()
    {
       setDeleted("Y");
    }
and I added this condition in my view object
WHERE NVL(Deleted,'N') <> 'Y'
on my page, I have a table. This table has a column to remove each line. I dragged and drop action the data control RemoveRowWithKey
and the value of the parameter * #{row.rowKeyStr} *.
I have what I need is the following:
When the user click on the delete button I want to hide the ROE of the table. I tried to rerun the query after deleting, but the line is still on the page. Why run query does not hide the line of the screen.
Here's the code I used to remove and run queries
    public String deleteLogically()
    {
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = bindings.getOperationBinding("removeRowWithKey");
        Object result = operationBinding.execute();
        DCBindingContainer dc=(DCBindingContainer) bindings;
        DCIteratorBinding iter=dc.findIteratorBinding("TakenMaterialsView4Iterator");
        iter.getCurrentRow().setAttribute("Deleted", "Y");
        //iter.getViewObject().executeQuery();
        iter.executeQuery();
        return null;
    }
as you can see I used two methods () iter.getViewObject () .executeQuery; and iter.executeQuery (); but the result is the same.

I built a sample for you - http://jobinesh.blogspot.com/2011/05/soft-deletion-of-rows.html. Please see if it meets your requirement.

Tags: Java

Similar Questions

  • * URGENT * how to turn the table rows programmatically?

    Hi Experts ADF,

    I am a developer of the ADF, but not an expert. Here is my requirement, please help me to achieve the same. It is very urgent and would be a great help.

    In our ADF Faces application, we have a SEARCH page where we assume to design a table with 3 rows and 2 columns. While the search page is loading only the first line must be activated and the other below 2 rows should be disabled (can be visible, but gradout). In the first column of each row is a box of choice (which will be rated Firstname, lastname, Department,... UserID) and the next column is a free text box (input field).

    Ex: In the first row when we select Firstname and enter the value in the free text box, then the second row should be activated when we tab out of the text box line. If the top textbox is empty then the second row should not be enabled. When I get the value in the text field of the line of the 2nd and the 3rd row must be enabled. Max 3 lines. All 3 rows may be visible on the page, but the last 2 rows should be gradout.

    How to do the same, please help me with a little explanation. Do I have to use the ADF PPR to do the same, if so, how do the same? Thanks in advance.

    Thank you
    klogube

    Sorry, it took a little time :-(

    I implemented a small example, if you get the picture...

    Page code:

    
               
                  
                    
                  
                  
                    
                  
                  
                    
                  
                
    

    Bean code:

    public class IPTBean
    {
        String mS1;
        String mS2;
    
        public IPTBean()
        {
            super();
        }
    
        public void setS1(String aS1)
        {
            this.mS1 = aS1;
        }
    
        public String getS1()
        {
            return mS1;
        }
    
        public void setS2(String aS2)
        {
            this.mS2 = aS2;
        }
    
        public String getS2()
        {
            return mS2;
        }
    }
    

    I put the bean in the flowrate range of page (but you can use any variable you like i.e. links)

    When you run the page, you see a tabled text input and a button. Type something in the files and hit return or the tab out of the field and you see the next filed.

    Now you can use this technique to hide and show your user interface.

    Timo

  • How to set the table rows spacing and line changing automatically if is limit

    Greetings,

    I use JDeveloper 11.1.2.4. By default, if you set (or not) the table width and the line is its width, it will create a scroll down bar.

    Is what I want to do, if the text inside each row its greatest width, to change the line inside his line. TO

    more to explain it, I'll demonstrate a small table below:

    MESSAGE ID

    1 Hello Philip

    2 Hello Philip

    3 How are yo

    u today?

    4 tries...

    This way, if the text in the column 'message' is the largest say width 40, to increase his height of line automatically if the text

    fits inside 1 row without creating a scroll bar.

    Thanks in advance for any help.

    Have you attempted to assign noWrap = "false" on af:column?

    Dario

  • How to hide the table header if no data is present

    Hello

    I need to hide the heading for the table if no data is present. Table a, column 5. If no matter what clolumn gave this section table should not be display.

    I use <? If: count (Installation_Event_S19) = 0? > but this is not a job for me.

    Could you please help me.

    Thank you

    Sylvie Kumar


    I think you want to show/hide a table that if its conditions of licence exists and have some value. You can have an if condition including the table.

  • Check box to hide the table row

    I have the table and the box.
    I need when is checked then unhidde of certain lines and when is not checked to be hidden?

    Thank you

    I did it in my form. What I did do the subform, and then place all the objects that I wanted to be hidden and then visible inside. I then used this code on the button:

    If (this.rawValue == '1') {}

    oTargetField = this.resolveNode ("subform name here");

    oTargetField.presence = "hidden".

    }

    If (this.rawValue == '0') {}

    oTargetField = this.resolveNode ("subform name here");

    oTargetField.presence = "visible".

  • How to change the table definition after upgrade from 9 to 10?

    after update from 9 to 10, DOF tables still as 9i:

    ................. PCTFREE, PCTUSED, INITRANS 40 10 1 MAXTRANS 255...
    ... inndex PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS...


    Is there a method to convert all tables to new style 10g without re-creating thousands of tables and emp/imp one then?


    Thank you

    You can use the package dbms_redefiinition to Redefine tables.
    You can find more information in this regard on the following links

    Syntax
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_redefi.htm#CBBFDJBC

    All tasks
    http://www.Oracle.com/pls/db102/search?word=DBMS_REDEFINITION&PartNo=

  • How to lock the table rows selected adf for another user

    Hi all

    In my case, I created a vo based on eo. where I create an attribute (marked) transitional type boolean.

    I have created two jsf pages

    1 - summary.jsf
    2 - claimed.jsf

    in the two page, I slipped even vo as the adf table.

    in the page summary, all vo lines is display. and I created a button on the summary.jsf page.

    When I have selected a few record table adf (using the check box marked attribute) and click the cliam then

    apply filter adf table see criteria and open claimed.jsf page. claimed. JSF page only display selected fine line.

    but I want that these selected lines (which is displayed on the claimed.jsf page) don't display another user in the summary.jsf page.

    I want to say that these specific lines will be locked so the other user does not work on these lines.

    Concerning

    Manish

    You would have to:

    (1) add a column in the underlying table of the DB to track lines are claimed
    (2) change your VO to include a where clause clause that excludes claimed elements
    (3) add something in your UI to release the goods in question (if necessary) so that you can release an item if someone closes their browser.

    John

  • How to hide the false underscores (_) of af: table when you use the check boxes

    Greetings,

    I was wondering, how to hide the String _ of af: table when a checkbox control are false (0) in JDeveloper 11.1.2.4.0?

    If the box is true, then he have a symbol 'tick' and that was correct, but if its false (0) instead of projection

    nothing, it shows a string of underscore (_) and it looks bad.

    OK I found the solution after all.

    Was indeed a skin problem because I was using the default merge skin and he added this code:

    AF | selectBooleanCheckbox: {no selected icon

    Content: url(/afr/fusionFx-v2/checkMark_NS_readonly.png)

    }

    So, on my current skin, I replace it with this:

    AF | selectBooleanCheckbox: {no selected icon

    content: inhibit;

    }

    Thank you to notice me in the right direction.

  • How to shade a table row? I already have the updated PDF at the point, just try to change.

    How to shade a table row? I already have the updated PDF at the point, just try to change.

    No, Acrobat isn't these editing features.

    My suggestion is to re - create the file, making sure that you keep a copy of the original, this time, in case you should make other changes in the future.

  • Hide the first row of a table

    Hi all

    Can only hide the first row of a table (no matter what that data as there are)

    Thanks in advance,
    Imtiaz.

    Use

  • How to hide the ADF table during execution

    Hi all

    I use Jdeveloper - 11.1.2.4.39.64.36.1 version

    Is it possible to show only the tables with associated in the same lines and hide tables with no record.

    For ex: Let's say that at the time of the design, there are three related data tables with the diagram below.

    Table 1
    Table 2
    Table 3

    However, during execution, there is no record for 'Table 2', but the table 1 and table 3 have records associated with them.

    Is it possible to hide the table 2 and get the following provision -

    Table 1
    Table 3

    According to the schema, table 2 should hide, and table 3 should get reordered under table 1 directly.

    Best regards

    Ankit Gupta

    Hello

    You can set the property visible from the table to something like #{bindings.. estimatedRowCount gt 0}

    Arun-

  • How can I get the action to hide the table of contents to work as part of a conditional Action?

    GOAL: when a user takes the Quiz and fails, I wish they were able to get back underway and reviewing the materials before taking the quiz. As noted in other discussions, I have created actions advanced conditional and standard to achieve this:

    • Quiz results Slide Property executes the standard action "ResultsSlideVisitedAction", affecting a variable (AssessmentVisited) to 1, an indicator that the result slide has been visited.

    ResultsSlideVisited.PNG

    • If a user clicks the Retake Quiz button, instead of going to a "knowledge management", a quiz question classified early in the race with zero points, it goes to the first real quiz question. The slide to check knowledge runs the 'ExcludeKCAction', a conditional, looking to see if the result slide has been visited, which means that the quiz taken. If so, he jumps at the 1st question of the quiz slide.

    KCExclude.PNG

    • I changed my Quiz message fail to tell the user to click the button Retake (which works fine) or navigate using the table of contents to review topics and then resume the quiz. The problem with this is that if a user uses the table of contents and gets to go to the slide to verify the knowledge to conditional action, they are sent directly to the Quiz.
    • So, I took a different tact and decided to ask the user to use a "Back in the race" button to review the course and then resume the quiz. Because you cannot add buttons to the slide of results, I created an invisible button to reset the AssessmentVisited variable to 0, so when the GET to the verification of knowledge, they are not sent for the quiz. I did this by adding the image on a button, and then by superimposing an invisible rectangular shape on top of the button image. This allowed me to add advanced invisible form actions. It worked!
    • The last thing I want to do is to hide the table of contents, so there is no chance of the user to return without resetting the variable. I tried to add the action to hide the table of contents, but it doesn't seem to work. Is this possible?  I tried to move the TOC to hide as actions of 1st, 2nd and 3rd and sill does not. Here is a screenshot of the conditional action that runs when a user clicks on my return to the button a course:
    • ReturnToCourseCondition.PNG

    I appreciate any thoughts on a solution to hide the table of contents as well. Thank you.

    Hide the TOC works only for OCD in overlay, you use a table of contents separate?

    With respect to the Score slide buttons, you make it very complex, it is possible since version 6: buttons on Question/Score 6 Captivate Slides?-Captivate blog

  • How to clear the table dhcp clients

    Does anyone know how to clear the Table of Clients DHCP?

    I have a WRV54G.

    Concerning

    I understand this is a very old post, but since I found it when I was looking for the same answer in 2009, I thought go ahead and give my $.02 worth.

    I have a different router, so it may not be present in your.

    I use a version of the firmware WRT54GLwith 4.30.7 and finally found on the status under "Local network" page a link to the DHCP table. You can click on that and delete existing IP addresses.

  • Oracle DB 11.2.0.4: Impossible to activate the table lock after having stopped it

    Hello

    I use Oracle Database 11.2.0.4.

    After reading the documentation on how to prevent unwanted table DDL statement.

    I found a way to do this in by issuing 'edit the table < table_name > disable table lock'.

    Turn it off doesn't work, however I can not re - activate.

    The error message is:

    ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired

    I want to activate the lock, because I need to add new columns to this table.

    I was digging on several threads that have the same problem as mine. But none of them gives any acceptable solution.

    Impossible to activate the table lock after disablng it

    ALTER table enable table lock blocking

    However, a poster responds by quoting the documentation that says: (Note: I can't find what doc says)

    'Specify the TABLE LOCK ACTIVATE to activate the table locking, allowing operations on the table DDL. All currently process transactions must commit or roll before Oracle database allows table locking. »


    By the way:

    1. the table is mine and nobody knows there are (therefore, it would be just me which undoubtedly make any DML at it, and I did not).

    2. I've disabled the lock table months ago and tried to turn it back on because I want to add the new column to the table.


    It means that I have to wait for that "ALL transactions running" happening on the current scheme being validated or cancelled?

    The table itself is located on the stops and never schema of production on which transactions take place continuously.


    Is it true that Oracle expects all execute transactions? Is it known bug?

    Why would Oracle wait as all transactions which has nothing to do with the underlying table?

    Is there no workaround solution to solve this?


    Note:

    I tried to deactivate - activate the table locking on the development database (which has less transaction) and it works fine.


    Kind regards


    Buntoro

    Your best option might be suspended from the database. If it is an application of type OTP, it must suspend in some secinds, do your DOF, then get out. Your users should not notice. I have described the mechanism here,

    Quiesce

    --

    John Watson

    Oracle Certified Master s/n

  • Hide the table of contents without overlap

    Hi! How can I hide the Table of contents on the right, but not overlapping le slides, maybe endangered? Is there any in the program or script? Thank you very much.

    You can create a table of contents in Captivate, using variables and actions progress/shared.

Maybe you are looking for