eliminate the line duplicated with condition

SQL query

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

Select * from)

SELECT

OPTION_ID,

INSTALLATION_DATE,

ROW_NUMBER() on rownumber (option_type CSA control)

Of

v_device_options_details vdod

WHERE vdod. EQUIPMENT_ID = 1604 AND vdod. Type_equipement = 'module' AND vdod. TYPE = "static".

) where rownumber between 0 AND 24.

Result:

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

OPTION_ID INSTALLATION_DATE ROWNUMBER

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

1009 1.4E + 18 1

1009                                                   2

1015 1.4E + 3 18

1015                                                   4

3921 1.4E + 18 5

The SQL above give me the result for both line or installation_date is null or not null. I am looking if installation date back two rows, and a line is set to zero and the other is not null, then it should display a rank only which is not null installation date. But if there is that one line whatever it is null or is not null then it should return this line only

for example:

Result:

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

OPTION_ID INSTALLATION_DATE ROWNUMBER

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

1009 1.4E + 18 1

1015 1.4E + 2 18

3921 1.4E + 3 18

Thank you

user12983407 wrote:

Hello

It is a single row only.

expected result:

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

OPTION_ID INSTALLATION_DATE ROWNUMBER

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

1009 1.4E + 18 1

1015 1.4E + 2 18

3921 1.4E + 3 18

Thank you

OK, try this please:

Select *.

(OPTION_ID select,

INSTALLATION_DATE,

ROW_NUMBER() on rownumber (option_type CSA control),

ROW_NUMBER() on rn ( OPTION_ID INSTALLATION_DATE order partition)

OF v_device_options_details vdod

WHERE vdod. EQUIPMENT_ID = 1604

AND vdod. Type_equipement = "module".

AND vdod. TYPE = 'Static')

where rownumber between 0 AND 24

and rn = 1



Tags: Database

Similar Questions

  • How can I measure the length of the lines written with the Paint program?

    I know that an earlier version of the painting software was able to measure the length of the lines written with the Paint program.   I don't know what version it was.   I have the Windows 7 Home Premium Version 6/1 (Build 7601 Service Pack 1, Copywright@2009.  How can I measure the length of the lines that I have the project using paint software?   Do I need to get the previous version?   How can I get?   PLEASE ANSWER!

    Hi Ralph,

    The description of the problem seems a little unclear and I wish I had a better understanding before you start working on it. I would really appreciate if you could answer the following questions:

    1. What is the name of the paint program?

    2 have you tried to install the software of paint in Windows 7?

    3. are you able to install it? If this is not the case, do you have an error code or message?

    4. in what version of Windows was fine paint software work?

    Please provide us with more information on the specific question to help you to fix as soon as possible.

    Your response is very important for us to ensure a proper resolution. Please get back to us with the information above to help you accordingly.

  • How can I eliminate the auto advance with advanced actions?

    In the menu slide of course, I have several interactive objects click boxes, etc..  They are all to do not pause the project as well so that the slide will automatically in advance.  My problem is that I want to auto-advance. I want the learner to select one of the four options menu (click on the box), but I also advanced actions on this page to indicate when something is finished.  (See screen capture below properties)  I can't modify or eliminate the advanced action, so this isn't an option.

    How can I set this slide so that I can keep the existing, fast action and demand that they select a menu option before moving on to the next slide (click box)?

    menuhelp.PNG

    I understand something else, that your question is not on 'no progress' for all slides (for which you may use the TLCMediaDesign approach) but you talk about a slide in Menu. You already have several interactive objects on this slide, right? What is their purpose? Is there a reason why you do not use their ability to pause the slide? Maybe post a screenshot of the slide with the timeline when you explain the purpose of these interactive objects.

    Lilybiri

  • Possible to get the handle to the line added with::AddRow()

    I need set default values for newly added lines in tabular form, based on some other page elements, hidden. Unfortunately, like many other elements APEX incredibly useful, addRows seems to be completely undocumented. So, I hope someone here can tell me how to get a reference to each newly added line.

    I am able to replace the functionality of 'javascript:addRow()' by default with my own dynamic Action triggered by clicking on the button Add a line.
    alert('Chicken or Egg?');
    var newRow = addRow();
    newRow doesn't seem to provide a reference to a valid object. I say this because "alert (typeof newRow)' returns"undefined ".

    How can I get a reference to each newly added line? Yes, I know that I can walk the apex_application.g_f0* collections, but it just seems like this could be done directly in the same javascript block where the line has been added.

    Someone has ideas how I could expand the foregoing to define two columns to default values?

    Thank you

    -Joe

    Published by: Joe Upshaw on March 15, 2012 15:19

    Hello

    name = "f03" assumes that the column is the same as that which is located in apex_application.g_f03, correct?

    It's true.

    Fact the ': last "automatically find the last row.

    It's true. The last input field with the same name.

    The default value that I need to get is a hidden page element.

    If the default value is the session to the State of an item, you can use the attributes in a table, by default type (name of the application or page element) element to set the default value for the form. Then you don't need dynamic action. To get the value of the element the page use $v ('PAGE_ITEM_NAME').

    Rod West

  • Change the thickness of the lines created with the Rectangle tool in CS2?

    I'm trying to change the thickness of the lines for a rectangle drawn with the Rectangle tool in Photoshop CS2.

    I can't understand how change the thickness of the lines of the four sides of the rectangle before I draw the rectangle by using the Rectangle tool or after the Rectangle was drawn. The same problem seems to occur when you use the tool polygon, Ellispse tool, etc.

    I can turn the rectangle to make it bigger or smaller, etc., but it seems that I should be able to vary the thickness of the lines for a rectangle.

    This task is possible in Photoshop?  It's simple in Illustrator - it seems it should be a fairly simple task in P-shop.  I looked on Google and in help for P-shop CS2 for a response but cannot locate a solution.  I don't see something really obvious?

    Any help is greatly appeciated.

    Thank you!

    Read post 1 once again. You want to use the layer style (double click to the right of the name of the layer in the layers panel) and use the option of the race. You can even set layer styles to apply to objects with a single click. If you frequently need the thick rectangle, it will be a click.

    Layer style presets that are predefined values and cannot be changed on the fly just like real styles, but they are still very useful.

  • Can not adjust the line stamps with ink / no Blue No Line

    .. even if I press and hold on the stamp, as shown in this video (02:55): line draw of precise lines, forms and free form drawings on an iPad with Adobe Illustrator | Adobe Creative cloud Mobile AP...

    I'm on iPad 2 Air.

    Super frustrating!

    Wonder what I do wrong?

    Hey there Everett,.

    It has been awhile, but unfortunately the iPad 2 air is not fully compatible with ink.

    Please see Adobe Illustrator draw for more features and updates: Adobe Illustrator draw on the App Store

    Thank you!

    -Kathleen

  • Generate the lines duplicated when running report script

    Hello

    The following script report works very well. But it generates the double set of lines.

    * {TabDelim} {ROWREPEAT} {SUPMISSINGROWS} {SUPHEADING} *.

    * < Page (HSP_Rates, YEAR, SCRIPT, VERSION, CURRENCY) *.
    HSP_InputValue Fy11 Budget WORK Local

    * < COLUMN (PERIOD) *.
    * < DIMBOTTOM PERIOD *.

    * < ROW (ENTITY, ACCOUNT) *.
    * < DIMBOTTOM ENTITY *.
    * < DESCENDANTS "NET INCOME."
    !
    OUTPUT:
    HSP_InputValue FY11 EXERCISE WORK Local
    ENTITY1 100 GROSS INCOME
    TAX ENTITY1 10
    ENTITY1 100 GROSS INCOME
    TAX ENTITY1 10

    Help, please.

    Probably, you have several hierarchies / shared members in the dimension of your entity or account. Try to use

    Moreover, I think that you edited your post but initially mentioned trying to remove 'ROWREPEAT '. Just ROWREPEAT determines if consecutive lines with the same Member of a dimension displayed the name of the Member several times, or on the first line of the group only.

  • Open popup on loading of the page, but with conditions

    Hello.

    I use JDeveloper 11.1.1.7.0

    I need to open a popup on the page load. This problem is recurring, and there are a few messages and discussions in the forum about this. But I need to go further on this subject.

    My case is:

    • Loading of the page, I have to check some conditions.
    • If it's true, popup is open.
      • Popup is YesNo type, and I have a dialogListener to treat the user's response. Finally, the page is loaded.
    • If false, the popup is not open.

    To do this, I use beforePhase like that

    <f:view beforePhase="#{myBeforePhaseMethod}" />
    

    Inside the method, I use PopupUtil.invokePopup (...)


    Well, my problem is that when the user answers Yes or No, Treaty dialoglistener the answer, page reload, beforePhase is re-run and popup is displayed again.

    How can I solve this? How to display the pop-up window only once?

    Thank you. Best regards

    This ingenious solution has worked.

    First of all, check phaseId in the beforePhase method. Check the phase is MADE

    if (!phaseEvent.getPhaseId().equals(PhaseId.RENDER_RESPONSE))
    return;
    

    Then, use a flag to avoid the popup shows more than once, like that

    String popUpShown = (String)ADFUtils.getPageFlowScopeValue("POPUP_SHOWN");
              if (popUpShown == null)
                popUpShown = "NO";
              if (popUpShown.equals("NO")) {
                ADFUtils.setPageFlowScopeValue("POPUP_SHOWN", "YES");
                PopupUtil.invokePopup( ... );
              }
    

    Any other suggestions or problems it may have are appreciated.

  • Make a region in the Panel tab with condition

    Hello

    Am using jdeveloper, 11.1.1.6.0

    I have 2 jsff parts emp.jsf and dept.jsf., I main.jspx page that has two buttons emp and dept. When my user click on the rendering of the welcome.jspx emp button that has 2 tabs tabs of emp and dept.

    While my user to click on the button of the emp emp tab should be displayed to the user if it is button dept dept tab should be displayed.

    Main.JSPX Emp-> welcome.jspx (Emp tab).

    Main.JSPX Dept-> welcome.jspx (Dept tab).

    No workflows have been used.

    Kind regards

    Prasad K T,.

    9840021070.

    First of all, you should not use jsp: (which is the cause of your error).

    You must put the jsff in the workflow bounded and drag this workflow on the showdetailitem and drop it into the region.

    Timo

  • working with the lines of the dup

    I have this (duplicates) on customer_id Table.

    customer_id, store, Bank 2
    1234,  45, 45
    1234,  46, 45
    1234,  45, 45
    4322, 3,   12
    4322, 12, 12
    I need to select the duplicate customer_ids where their store is different for all duplicate rows and then match the line duplicated to store2.

    Example:

    4322, I don't want to choose the line with store = 12, because it corresponds also to the Bank 2 = 12.

    should which application I use? I'm on 11G

    Probably, maybe something simple like store = store2?

    Just do not know how to choose the store two different on customer_id duplicate?

    Hello

    Kodiak_Seattle wrote:
    OK, how about this problem:

    I have two columns:

    customer_id, store

    1234, 5
    1234, 6
    3334, 5
    3334, 5
    

    I want to select customer_id with only a number of different stores, in this case customer_id 1234?

    sounds easy, but its does not work for me :-()

    What does not work? Your zip code and examples of usable data (CREATE TABLE and INSERT statements).
    Maybe you want to

    HAVING  COUNT (DISTINCT store)  > 1
    
  • How to eliminate the blue HP page with the F keys, hand, photos, music started

    With Windows Vista 64-bit, how I eliminate the HPO start with items described above page?

    I'm sorry, but disabling the HP logo screen is accessible neither BIOS nor Windows configuration. He is tattooed in DMI.

  • eliminate duplicate lines

    Hello

    I have a report that shows some of the duplicate records and need to eliminate duplicate rows on the report. How to hide the lines duplicated on the presentation of the report so that only 1 row appears on the report instead of having the same line appearing more than once? I use BI Publisher 11.1.1.7. Thank you.

    It is advisable to eliminate duplicate rows to the data model, however, if you do not want to do it on the model please see below

    Whereas you use RTF model

    Change your for each tag to something like this

    If you don't succeed; Thanks for posting your model and an example of xml data

  • What program should I use to return to the line told me that dc acrobat could and support telling me it cant

    I have a copy scanned my service ticket in the computer and created a digital Ant but I can't return to work and keep the same policy.  Talk to tech support, they told me you can't do and then I talk to the sales and they said it was possible I need to know if it can be done what software do I need to use

    I'm not sure what you mean by the return to the line, but with a text field, you have the possibility to make multiple lines:

  • The owners of the line Guides drawings! ?? How?

    Hello Fnatics Adobe!

    I have worked with adobe for a few years now and I'm quite familiar with the General operations of the programs available majorly focusing on those creative such as Photoshop, illustrator, After effects, ETC. of Prime Minister.

    I am currently working on a project for my employer and he asked if I have the capacity to create a stylized drawing of a product line working currently on. I told him I could look at this and see what I can find.

    Wanted to create these images of style:

    Screen shot 2014-05-20 at 3.16.48 PM.png

    And we want to create from images like this: ((name blacked out))

    Screen shot 2014-05-20 at 3.28.04 PM.png

    Someone would have seen me on if there is a program to do a simple process for me? I know well what makes the image resembles a sketch of drawing, and that's not what I'm looking for.

    The only option I can think of is that the product is measured and drawn to manually resize and then skillfully stretched gradually. I am wanting to avoid that path and in the hope that he can be a feature that could help me get the result I need.

    Thanks for any thoughts and help in this matter!

    Because your company is working on the design of this product, it is a fair bet that they it would have designed in a CAD application. The 'simpler' approach would be to import the CAD file as a 3d model in a 3d application and use a rendering engine of the line style. This way you can produce this type of designs from any angle, remove parts, etc.

    Here's a quick made Freestyle I did just now in a blender (any iron I found on Archive 3D:)

    (the view from forum is really bad, then open the net image here:https://forums.adobe.com/servlet/JiveServlet/showImage/2-6396169-641480/tt.png)

    It takes about 5 ~ 10 seconds to render. Cleaning may be necessary in Photoshop afterwards, in function. Freestyle allows pretty much controls all aspects to make line. A lot of fun. But you'd have to teach you the basics of Blender and how import and prepare items.

    However, it might be worth your time because this method is quick and allows any angle to be represented to your objects. Flat colors can also be added with ease. Specific edges can be labeled for more control over the final result. And there is an add-on that adds vector svg export, while the lines can be opened in Illustrator! SVG-animation-Output-for-Blender-Freestyle/

    Alternatives are rendered line Photoshops for 3d (ugly and slow) objects, or perhaps Sketchup.

    If you do not have real access to the 3d model, the best approach is to use Illustrator and draw the lines. With practice it will not take too long.

    But ask your boss if you can have access to the CAD model first - it could save you a lot of time.

    A crash course in the rendering of Freestyle can be found here:

    http://cgcookie.com/Blender/CGC-courses/crash-course-freestyle-rendering/

  • executeQuery() method affects the lines in the cache?

    Hello.
    I use Jdeveloper 11.1.1.3.0 ADF BC and ADF Faces.
    I want to implement the simple hide/show button in my page. The use case is as follows,
    I will give the step and scripts required to reproduce the case if anyone is interested.
    1 - the database contains a table TEST and here is the script to create. where the flag column is used as an indicator to show or hide line in my page.
    CREATE TABLE TEST
    (
      ID    NUMBER,
      NAME  VARCHAR2(50 BYTE),
      FLAG  VARCHAR2(1 BYTE)
    )
    
    INSERT INTO TEST ( ID, NAME, FLAG ) VALUES ( 
    1, 'one', 'Y'); 
    INSERT INTO TEST ( ID, NAME, FLAG ) VALUES ( 
    2, 'two', 'Y'); 
    INSERT INTO TEST ( ID, NAME, FLAG ) VALUES ( 
    3, 'three', 'Y'); 
    INSERT INTO TEST ( ID, NAME, FLAG ) VALUES ( 
    4, 'four', 'Y'); 
    commit;
    2 - I created my business EO, VO, Module of Application components. and I have added where clause to my display. and here is the full query.
    SELECT Test.ID, 
           Test.NAME, 
           Test.FLAG
    FROM TEST Test
    WHERE FLAG = 'Y'
    3 - I created a page and drag and drop my TestView1 of the data control in the table of the ADF in my page.
    4. Add an additional column and slide SetCurrentRowWithKey action as a button and set the parameter #{row.rowKeyStr}, and create an action Binder method (hideRow) to this button in a bean.
    5. change the (hideRow) method to set the Flag attribute for the current selected row "N", and then rerun the query. the goal is to hide the line of the screen.
    6 - drag a new button (cancel the changes) and bind its action to a method that iterates over all the lines in the view object and all of the flag attribute to 'Y' and rerun the query. The goal is to show hidden lines.
    Here is my page source
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1">
          <af:messages id="m1"/>
          <af:form id="f1">
            <af:table value="#{bindings.TestView1.collectionModel}" var="row"
                      rows="#{bindings.TestView1.rangeSize}"
                      emptyText="#{bindings.TestView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                      fetchSize="#{bindings.TestView1.rangeSize}"
                      rowBandingInterval="0"
                      filterModel="#{bindings.TestView1Query.queryDescriptor}"
                      queryListener="#{bindings.TestView1Query.processQuery}"
                      filterVisible="true" varStatus="vs"
                      selectedRowKeys="#{bindings.TestView1.collectionModel.selectedRow}"
                      selectionListener="#{bindings.TestView1.collectionModel.makeCurrent}"
                      rowSelection="single" id="t1" styleClass="AFStretchWidth"
                      binding="#{Test.myTable}">
              <af:column sortProperty="Id" filterable="true" sortable="true"
                         headerText="#{bindings.TestView1.hints.Id.label}" id="c1">
                <af:inputText value="#{row.bindings.Id.inputValue}"
                              label="#{bindings.TestView1.hints.Id.label}"
                              required="#{bindings.TestView1.hints.Id.mandatory}"
                              columns="#{bindings.TestView1.hints.Id.displayWidth}"
                              maximumLength="#{bindings.TestView1.hints.Id.precision}"
                              shortDesc="#{bindings.TestView1.hints.Id.tooltip}"
                              id="it3">
                  <f:validator binding="#{row.bindings.Id.validator}"/>
                  <af:convertNumber groupingUsed="false"
                                    pattern="#{bindings.TestView1.hints.Id.format}"/>
                </af:inputText>
              </af:column>
              <af:column sortProperty="Name" filterable="true" sortable="true"
                         headerText="#{bindings.TestView1.hints.Name.label}"
                         id="c3">
                <af:inputText value="#{row.bindings.Name.inputValue}"
                              label="#{bindings.TestView1.hints.Name.label}"
                              required="#{bindings.TestView1.hints.Name.mandatory}"
                              columns="#{bindings.TestView1.hints.Name.displayWidth}"
                              maximumLength="#{bindings.TestView1.hints.Name.precision}"
                              shortDesc="#{bindings.TestView1.hints.Name.tooltip}"
                              id="it2">
                  <f:validator binding="#{row.bindings.Name.validator}"/>
                </af:inputText>
              </af:column>
              <af:column sortProperty="Flag" filterable="true" sortable="true"
                         headerText="#{bindings.TestView1.hints.Flag.label}"
                         id="c2">
                <af:inputText value="#{row.bindings.Flag.inputValue}"
                              label="#{bindings.TestView1.hints.Flag.label}"
                              required="#{bindings.TestView1.hints.Flag.mandatory}"
                              columns="#{bindings.TestView1.hints.Flag.displayWidth}"
                              maximumLength="#{bindings.TestView1.hints.Flag.precision}"
                              shortDesc="#{bindings.TestView1.hints.Flag.tooltip}"
                              id="it1">
                  <f:validator binding="#{row.bindings.Flag.validator}"/>
                </af:inputText>
              </af:column>
              <af:column id="c4">
                <af:commandButton
                                  text="hide"
                                  disabled="#{!bindings.setCurrentRowWithKey.enabled}"
                                  id="cb1" partialTriggers="::t1"
                                  action="#{Test.hideRow}" partialSubmit="false"/>
              </af:column>
            </af:table>
            <af:commandButton actionListener="#{bindings.Rollback.execute}"
                              text="Rollback"
                              immediate="true" id="cb2">
              <af:resetActionListener/>
            </af:commandButton>
            <af:commandButton actionListener="#{bindings.Commit.execute}"
                              text="Commit"
                              id="cb3"/>
            <af:commandButton text="cancel Changes" id="cancel"
                              action="#{Test.showAllHiddenRows}"
                              partialSubmit="false"/>
          </af:form>
        </af:document>
      </f:view>
      <!--oracle-jdev-comment:preferred-managed-bean-name:Test-->
    </jsp:root>
    And here's my two cents
    package view.bean;
    
    import model.views.TestViewImpl;
    
    import oracle.adf.model.BindingContext;
    
    import oracle.adf.model.binding.DCBindingContainer;
    
    import oracle.adf.model.binding.DCIteratorBinding;
    
    import oracle.adf.view.rich.component.rich.data.RichTable;
    import oracle.adf.view.rich.context.AdfFacesContext;
    
    import oracle.binding.BindingContainer;
    import oracle.binding.OperationBinding;
    
    import oracle.jbo.Row;
    import oracle.jbo.RowSetIterator;
    import oracle.jbo.ViewObject;
    
    public class Test
    {
        private RichTable myTable;
    
        public Test()
        {
        }
    
        public BindingContainer getBindings()
        {
            return BindingContext.getCurrent().getCurrentBindingsEntry();
        }
    
      
    
           public String hideRow()
        {
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding =
                bindings.getOperationBinding("setCurrentRowWithKey");
            Object result = operationBinding.execute();
            DCBindingContainer dc = (DCBindingContainer)bindings;
            DCIteratorBinding iterator =
                (DCIteratorBinding)dc.findIteratorBinding("TestView1Iterator");
            iterator.getCurrentRow().setAttribute("Flag", "N");
            ViewObject vo = iterator.getViewObject();
            TestViewImpl testVO = (TestViewImpl)vo;
            testVO.executeQuery();
            AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
            adfFacesContext.addPartialTarget(this.getMyTable());
            return null;
        }
    
       
        public String showAllHiddenRows()
        {
            // Add event code here...
            BindingContainer bindings = getBindings();
            DCBindingContainer dc = (DCBindingContainer)bindings;
            DCIteratorBinding iterator =
                (DCIteratorBinding)dc.findIteratorBinding("TestView1Iterator");
            ViewObject vo = iterator.getViewObject();
            TestViewImpl testVO = (TestViewImpl)vo;
            RowSetIterator rsi = testVO.createRowSetIterator(null);
            rsi.reset();
            Row current;
            while (rsi.hasNext())
                {
                    current = rsi.next();
                    System.out.println("current flag " + current.getAttribute("Flag").toString());
                    current.setAttribute("Flag", "Y");
    
                }
            rsi.closeRowSetIterator();
            testVO.executeQuery();
            AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
            adfFacesContext.addPartialTarget(this.getMyTable());
            return null;
        }
    
        public void setMyTable(RichTable myTable)
        {
            this.myTable = myTable;
        }
    
        public RichTable getMyTable()
        {
            return myTable;
        }
    }
    the problem is, when I click on the button that hide the indicator of the value N, but the line is always indicated in the table, even if I re - run the query. I want to hide the line, and when click Cancel button I want to re - show the line.
    Is this bug or am I missing something?

    This problem is driving me crazy, it takes a full day of work.
    Cannot Jdeveloper solve this simple use case.

    Any help is highly appreciated

    Edited by: 857800 may 18, 2011 23:46

    Published by: 857800 on May 19, 2011 05:08

    OK, I tried your use case and well, I managed to do the work.
    I don't know whether or not this behavior you're seeing is a mistake. We will, one of the Oracle who comment.
    The problem you have is that you set the value "n" indicator in the set of lines, but do not save your work in the db (no commit). Then when you update the table and display the line (now with indicator = 'n') which does not clearly where clause in the VO. So the framework is not a football game the where clause with the cache lines.

    Now to the solution:
    Remove the line that you just change the flag of "n" of the collection (which does not remove it from the DB) line went after the update of the table. It's still in the comic book, so get it if you run the query again.
    You add in your method of hideRow() iterator.getCurrentRow (.removeFromCollection ()); } After the definition of the indicator to "n".
    Resulting code:

           public String hideRow()
        {
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding =
                bindings.getOperationBinding("setCurrentRowWithKey");
            Object result = operationBinding.execute();
            DCBindingContainer dc = (DCBindingContainer)bindings;
            DCIteratorBinding iterator =
                (DCIteratorBinding)dc.findIteratorBinding("TestView1Iterator");
            iterator.getCurrentRow().setAttribute("Flag", "N");
            iterator.getCurrentRow().removeFromCollection();
    //        ViewObject vo = iterator.getViewObject();
    //        TestViewImpl testVO = (TestViewImpl)vo;
    //        testVO.executeQuery();
            AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
            adfFacesContext.addPartialTarget(this.getMyTable());
            return null;
        }
    

    As you can see the executeQuery() is not necessary of not more that it will come to the line.
    to get the rear lines

     public String showAllHiddenRows()
        {
            // Add event code here...
            BindingContainer bindings = getBindings();
            DCBindingContainer dc = (DCBindingContainer)bindings;
            DCIteratorBinding iterator =
                (DCIteratorBinding)dc.findIteratorBinding("TestView1Iterator");
            ViewObject vo = iterator.getViewObject();
            TestViewImpl testVO = (TestViewImpl)vo;
            // get all rows back
            testVO.executeQuery();
            RowSetIterator rsi = testVO.createRowSetIterator(null);
            rsi.reset();
            Row current;
            while (rsi.hasNext())
                {
                   current = rsi.next();
                   String id = current.getAttribute("Id").toString();
                   System.out.println("current flag " + current.getAttribute("Flag").toString() + " ID:"+id);
                   current.setAttribute("Flag", "Y");
    
                }
            rsi.closeRowSetIterator();
            AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
            adfFacesContext.addPartialTarget(this.getMyTable());
            return null;
        }
    

    Yet, I don't know if it will work in all circumstances (for example, you have 1000 + lines). It is up to you to test...

    Timo

Maybe you are looking for

  • I can't download addons

    Firefox won't let me download addons. He says that I don't have Firefox running, but clearly I. I already downloaded some addons, but now it won't let me add. I use Android on Nexus 7 tablet.

  • Windows Vista does not load on Equium P300-16t?

    Help! P300 for my daughter does not windows once a CF (containing only JPEG Images) flash memory card has been inserted into a USB port and removed when starting up.I get a windows error recovery page that says a recent hardware or software change is

  • Uninstall/install Skype

    My laptop came with Sype available on this subject and I don't know if that is preinstalled. Because of him show my computer is slow I think to do a uninstall/reinstall. Uninstalling removes the program completely? Also, what is happening for updates

  • m177fw HP: HP M177FW

    Our M177FW is stuck to receive a fax. It will print not other than fax, it keeps printing. We shot it works and continues to print the fax even whenever it turns on.

  • Field of table to the waveform graph

    Hi, I have a table I want it draw in a waveform graph. I tried to experiment with the wave function of building and others, but could not get anything out of it. And how to choose which points I would like to draw on the graph? Thanks in advance.