Number of incorrect lines after clearing the filter in the Table.

Hi all

View unlimited workflow activity
JDev 11.1.1.3, ADF Faces RC

I have parent/child af:table in jspx page. Child table a facet of default filter operation. His work.
Before applying the filter I checks the number of rows in the table using the iterator vo. The problem is after having emptied the filter, same table restores with original lines, in the link layer
correct the number of lines is not. The number of lines is even what I got after filter, same table shows all lines before filtering. I have some function based on this number of lines.

Please note that filter to is depolluted programmatically.

I tried below everything else but not able to get the number of rows real again.
dcBindingContainer.refreshControl;
dcIteratorBinding.refresh(DCIteratorBinding.RANGESIZE_UNLIMITED);
dcIteratorBinding.getViewObject.executeQuery();

Hello

Try the processing of the request instead of queuing it incase if you want to see the result immediately.

For example.

// Replace your reExecuteTableQuery method with following:
private void reExecuteTableQuery() {
     resloveMethodExpression("",Object.class, QueryEvent.class, new QueryEvent(getT4(),getTableQueryDescriptor()));
}

private Object resloveMethodExpression(String expr, Class returnType, Class argType, Object argument) {
     return resloveMethodExpression(expr, returnType, new Class[] { argType }, new Object[] { argument });
}

public Object resloveMethodExpression(String expression, Class returnType, Class[] argTypes, Object[] argValues) {
     FacesContext facesContext = FacesContext.getCurrentInstance();
     Application app = facesContext.getApplication();
     ExpressionFactory elFactory = app.getExpressionFactory();
     ELContext elContext = facesContext.getELContext();
     MethodExpression methodExpression = elFactory.createMethodExpression(elContext, expression, returnType, argTypes);
     return methodExpression.invoke(elContext, argValues);
}

Jean Lou

Tags: Java

Similar Questions

  • Why the serial number does not appear after typing the code out of the card I bought?

    Why the serial number does not appear after typing the code out of the card I bought?

    See the following topics:

    Using redemption code

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

    http://helpx.Adobe.com/x-productkb/global/redemption-code-help.html

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

  • line selected in the table in jdev11

    I have listener custom selection for table to do things according to the selected line, but when the table has a single row of this line is automatically selected my interlocutor of choice is not triggered, so my question is how to accomplish that, initially, no row is selected in the table?

    Depends on the use case, but you can do this by deleting the attribute selectedRowKeys of the table.

    Pedja

  • Analogue out after clearing the task

    Hello

    a quick question on AUG. I have create a task, write the analog voltage appropriate to the line, can stop the task and finally clear, task.

    After all, the level of tension on the material NOR rest on the exit. Is this normal? The question is: is this a normal behavior and I use the OD of this way, or the task takes to run/oper?

    concerning

    Mitulatbati

    Yes, it's normal. "" You can change the output to 0 or use the Reset DAQmx VI (which will change the output to 0) located in the measure i/o "NOR-DAQmx" Dev Config pallet on the block diagram before you quit the application.

  • Lines left in the table LT after removal of the direct workspace and the removal of all workspaces

    I had a lot of data in a table enabled version that has been modified in some workspaces.  The LIVE workspace, I deleted all the rows in the table and I then drove back the workspaces (yes I probably should have done differently).  Once workspaces have been cancelled table LT empty, I would have expected, but it wasn't.

    I can reproduce this in the example below.  I insert two lines in the test table and allow it to version.  In a workspace I update a row in the table, which leads to 3 ranks in LT as expected.  Live, I delete the two lines of the table that translates into 5 lines of LT which is fine.  So I restore and delete the workspace I created for the update.  At this point, nothing should versioned LT lines, so I expect to go, but two lines remain.  In my real-world scenario, it is initially questions as the table LT is now much more it must be and requests on the versioned table are slow.

    Is this expected behavior?  Can I do anything to clean?

    Thank you

    John

    scott@JOHNOT> select * from v$version;
    
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    PL/SQL Release 11.2.0.4.0 - Production
    CORE    11.2.0.4.0      Production
    TNS for 64-bit Windows: Version 11.2.0.4.0 - Production
    NLSRTL Version 11.2.0.4.0 - Production
    
    
    scott@JOHNOT> create table test_wm_table (
      2    id number primary key,
      3    name varchar2(20));
    
    
    Table created.
    
    
    scott@JOHNOT> execute dbms_wm.enableVersioning('test_wm_table');
    
    
    PL/SQL procedure successfully completed.
    
    
    scott@JOHNOT> insert into test_wm_table (id, name) values (1, 'first value');
    
    
    1 row created.
    
    
    scott@JOHNOT> insert into test_wm_table (id, name) values (2, 'second value');
    
    
    1 row created.
    
    
    scott@JOHNOT> commit;
    
    
    Commit complete.
    
    
    scott@JOHNOT> select * from test_wm_table_lt;
    
    
            ID NAME                    VERSION NEXTVER     DELSTATUS LTLOCK
    ---------- -------------------- ---------- ---------- ---------- ------------------------
             1 first value                   0 -1                 10 *-1,-9,-1*$#SCOTT$#
             2 second value                  0 -1                 10 *-1,-9,-1*$#SCOTT$#
    
    
    scott@JOHNOT> execute dbms_wm.createWorkspace('test_workspace');
    
    
    PL/SQL procedure successfully completed.
    
    
    scott@JOHNOT> execute dbms_wm.goToWorkspace('test_workspace');
    
    
    PL/SQL procedure successfully completed.
    
    
    scott@JOHNOT> update test_wm_table set name = 'something else' where id = 1;
    
    
    1 row updated.
    
    
    scott@JOHNOT> commit;
    
    
    Commit complete.
    
    
    scott@JOHNOT> select * from test_wm_table_lt;
    
    
            ID NAME                    VERSION NEXTVER     DELSTATUS LTLOCK
    ---------- -------------------- ---------- ---------- ---------- ------------------------
             1 first value                   0 ,45,               10 *-1,-9,-1*$#SCOTT$#
             2 second value                  0 -1                 10 *-1,-9,-1*$#SCOTT$#
             1 something else               45 -1                 11 *0,10,0*$#SCOTT$#
    
    
    scott@JOHNOT> execute dbms_wm.gotoworkspace('LIVE');
    
    
    PL/SQL procedure successfully completed.
    
    
    scott@JOHNOT> delete test_wm_table;
    
    
    2 rows deleted.
    
    
    scott@JOHNOT> commit;
    
    
    Commit complete.
    
    
    scott@JOHNOT> select * from test_wm_table order by id;
    
    
    no rows selected
    
    
    scott@JOHNOT> select * from test_wm_table_lt order by id;
    
    
            ID NAME                    VERSION NEXTVER     DELSTATUS LTLOCK
    ---------- -------------------- ---------- ---------- ---------- ------------------------
             1 first value                   0 ,44,45,            10 *-1,-9,-1*$#SCOTT$#
             1 something else               45 -1                 11 *0,10,0*$#SCOTT$#
             1 first value                  44 -1                -11 *-1,-9,0*$#SCOTT$#
             2 second value                 44 -1                -11 *-1,-9,0*$#SCOTT$#
             2 second value                  0 ,44,               10 *-1,-9,-1*$#SCOTT$#
    
    
    scott@JOHNOT> execute dbms_wm.rollbackWorkspace('test_workspace');
    
    
    PL/SQL procedure successfully completed.
    
    
    scott@JOHNOT> execute dbms_wm.removeWorkspace('test_workspace');
    
    
    PL/SQL procedure successfully completed.
    
    
    scott@JOHNOT> select * from test_wm_table order by id;
    
    
    no rows selected
    
    
    scott@JOHNOT> select * from test_wm_table_lt order by id;
    
    
            ID NAME                    VERSION NEXTVER     DELSTATUS LTLOCK
    ---------- -------------------- ---------- ---------- ---------- ------------------------
             1 first value                   0 -1                -11 *-1,-9,0*$#SCOTT$#
             2 second value                  0 -1                -11 *-1,-9,0*$#SCOTT$#
    
    
    

    Post edited by: John OToole

    OK, I see.

    Options (depending on the structure of your current workspace if it is not as simple as in the example) are rollback, purgetable or compressworkspace.

    More information on when and how to use them can be found in this thread: https://community.oracle.com/message/4027735#4027735

    Rollback works in your example, certainly, but might not be applicable in a real scenario.

    Hope that helps.

    Kind regards

    Andreas

  • assign the number to a line based on the analytical condition function

    Oracle 11g Server

    ID val1 val2
    100a
    110 b
    120c
    200a
    220 b

    WITH input AS
     (SELECT 1  id
            ,0  val1
            ,'0a' val2
        FROM dual
      UNION ALL
      SELECT 1  id
            ,1  val1
            ,'0b' val2
        FROM dual
      UNION ALL
      SELECT 1  id
            ,2  val1
            ,'0c' val2
        FROM dual
      UNION ALL
      SELECT 2  id
            ,0  val1
            ,'0a' val2
        FROM dual
      UNION ALL
      SELECT 2     Id
            ,2val1
            ,'0b'    val2
        FROM dual)
    SELECT * FROM input;
    
    !-[CodeBlockEnd:ae52826b-04c5-4aa4-a6c0-1d0405656e55]-->

    Output:

    ID val1 val2 assigned_number
    100a0
    110 b0
    120c2
    200a0
    220 b1

    The dense numbering sequence must be assigned to each line based on the column id and val1.

    For an identifier given, the numbering begins only after val1 > 1 until then the assigned_number will be zero.

    WITH the entry INTO

    (SELECT 1 id)

    0 val1

    '0' has val2

    OF the double

    UNION ALL

    SELECT 1 id

    1 val1

    b '0' val2

    OF the double

    UNION ALL

    SELECT 1 id

    2 val1

    , 0'c ' val2

    OF the double

    UNION ALL

    SELECT 2 id

    0 val1

    '0' has val2

    OF the double

    UNION ALL

    SELECT the Id 2

    2val1

    b '0' val2

    THE DOUBLE)

    SELECT id, val1, val2,

    Rank() over (partition by order of case when val1 > 1 then 0 otherwise end val1) dr-1

    SINCE the entry;

    ID VAL1 IS DR

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

    1          0 0a          0

    1          1 0b          0

    1          2 0c          2

    2          0 0a          0

    2          2 0b          1

  • ADF clear the table of filter criteria in the sub-tab

    Scenario: Parent Page has an input field main and two strips of void. Each sub tab is a taskflow region.

    second sub-tab contains a table with filter enabled.

    whenever the data is changed in a main entry field, the data contained in the sub tabs need to be updated and the filter criteria table previous if everything must be deleted.

    Approach: To do this, I raise a contextual event of the main entry field to call the second sub-tab clearFilter method that looks at below.

    public void clearFilter() {}

    If (GetTable ()! = null) {}

    FilterableQueryDescriptor = queryDescriptor

    (FilterableQueryDescriptor) getTable () .getFilterModel ();

    If (queryDescriptor! = null & & queryDescriptor.getFilterCriteria ()! = null) {}

    queryDescriptor.getFilterCriteria () .clear ();

    .queueEvent (getTable (new QueryEvent (getTable, queryDescriptor)));

    }

    }

    }

    Question: When I'm in the second tab and then change something in the main, contextual event entry field and filter of the table in the second tab is cleared.

    But if I enter a filter in the second tab, move to the first tab and then change something in the main entry field. contextual event does not run.

    When I get back to the second tab, I can still see previous criteria. The contextual event handler method is not called.

    Please suggest how to solve this problem. Contextual events will be called only if the Subscriber is visible on the page?

    Can I erase the layer model filter without having to use the table binding?

    Or is there a better approach to do?

    Hello

    That's because contextual events propagate active links, including the second tab does not contain when it is hidden. So try to trigger the popup event in response to an event of disclosure tab (on the showDetail) so that when users switch tab, then filter is removed. To avoid unnecessary event context-sensitive invications you can set a flag each time the data in the parent page changes. If this flag is not set, no contextual event is raised

    Frank

  • Screen flashing horizontal lines after replacing the RAM

    Hello world

    Today, I replaced the original 2 2 GB RAM each with 2 other 4 GB each (Kingston) for better performance.

    I have a Macbook Pro end 2011 15 ", IOS 9.3.1.

    I opened the computer it vacuum cleaner very carefully, with the lowest power and then I removed the two RAM.

    I'm not new, the machine worked perfectly for 20 minutes, then the screen went black (electricity was running in it, I could see some lights on the bottom), I did close it with the button, turn it on and horizontal lines appeared.

    I turn again and nothing has changed. I replaced the new memory with the 'old' and I still have horizontal lines that cross the monitor (white, grey, black).

    Any idea of what is happening and how to fix it?

    Thank you in advance!

    That could be the problem:

    http://www.Apple.com/support/MacBookPro-videoissues/

  • BlackBerry smartphone keyboard does not appear after clearing the error code

    I deleted just 'error 102 JVM"my storm and now the keyboard is not displayed. I tried popping the battery while it is on, I also tried to attribute the convenince key to display the virtual keyboard and it does not work.

    I forgot to write the file I had to remove from the event log (to clear the error).

    Any suggestions?

    lol, he likes to go to the doctor and saying "doctor!" I'm hurt! "But I don't remember where!

    You have two choices:

    Do not forget the name of the file and place the file using this process.

    Reinstall your operating system to your BlackBerry.

    See the link below to download it, and here is the simple installation instructions.

    First find your operator and the system operating file that you want to use.
    http://NA.BlackBerry.com/eng/support/downloads/download_sites.jsp

    Make a backup of your device first, using Desktop Manager > backup. Close the office at the end Manager.

    1. download the OS files to the PC then install on the PC by running (double click) the downloaded file.
    2. go in c:\program files Research in motion\apploader and delete the file named "vendor.xml."
    3. plug in the BB and double-click on "Loader.exe." It is located in the same place as the above vendor.xml file.

  • Need help for VCP training after clearing the exam VCP510

    Hello

    I'm Kelly, I managed VCP510 review but not followed the VCP 5 ICM training. Now, I am registered for the training but need your help in this.

    How VMware will know that I passed the exam and how it will get the details of my training? (Is there a procedure while registering for training to provide details as Exam Centre marksheet, VCP ID etc.)

    Hope you understand my query

    Best regards

    Yoann

    After completing the training you will need to send an email [email protected] - this is one of my 'frequently asked questions' on my blog: http://vmwaretraining.blogspot.co.uk/2012/06/vcp-common-questions.html

  • clear the table of loop for

    Hello world

    I have a question about the erasure of history to the table. It sounds simple, but I'm really confused...

    As the example attached below, I've built a table within a while loop and a loop. After totally run the program once, when I run it a second time, it seems that the table has a memory of the last time, that is the size of table does not start from 0, and appears the old number from last time, even through its initialization of the for loop.

    How can I make it go empty each time when I restart the table?

    Need your help. Thank you very much. : )

    You must also have a shift in the loop FOR. This will keep the data for the duration of the program, but it clear at the beginning of the next run.

  • New line disappears in the table

    I add the new line at my table:

    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
             DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("PrfItemImageTempVO1Iterator");
             RowSetIterator rsi = dciter.getRowSetIterator()
             Row newRow = rsi.createRow();
             newRow.setNewRowState(Row.STATUS_INITIALIZED);
             rsi.insertRowAtRangeIndex(0, newRow);
             rsi.setCurrentRow(newRow);
    
    

    then add information on the same line, but the line "disappears." However if I commit it is recorded in the database.

    In other words, for each line of the table I can download files. When I download fill the line with the name, the address, the ID of the article to which has been added and its action (insert, update, delete).

    The point is that the line is added but quanho that you enter this information disappears. Although in my impressions, print the correct information.

    If you commit information is also stored in the database.

    I try to update the table, run the query, partial trigger and nothing works.

    2780557 wrote:

    After I clicked on the button DOWNLOAD and add a file on my server and add line information.

    I guess some of these activities is the "walk away" (refresh the table in the database where your changes are not validated)

    As attilas79 suggested, why not try the standard buttons/operations instead of creating the new line by programming?

  • How to validate at least one line selected on the table?

    Hello world

    I have a requirement here to display a list of customers at a table "select unique" and a button to send the page. When the user clicks this button, I need to validate if there is a selected line in the table. What is the best approach tho do?
    I tried to validate it on actionListener in the click of a button, but even if I put adfFaces messages running, it does not appear on the screen and the page is still subject.

    Is the BPM 11 g context of the project, so I have to do this validation and 'Cancel' the submit, otherwise the data passes through the flow until the next activity.

    Maybe the real question is: how to undo a page submit during an actionListener?

    Thank you

    Hello

    Small correction to Vinod, tableBinidng.getSeelctedRowKeys () always returns non-null (returns empty set when nothing is selected), then use the tableBinidng.getSeelctedRowKeys () .getSize () to check if a line is selected or not (0-nothing selected).

    If you do not want to treat the action up to save if an option is selected, why don't you try disable the button until something is selected in the table?

    To disable a button when no rows selected, simply add after the disabled property of a button value update it based on the table (add partialTriggers to the table)

    
    
    

    Jean Lou

  • Form doesn't work after updating the table

    I did a form and that you added prior insertion for the block trigger. And the form works perfectly well without any problems.
    Two new columns have been added to the table and must be added to the form now.
    I opened the block of data in the form wizard and made an update of the table to get the two columns. After I pressed on the "refresh" and then tried to launch the form (but has not added new columns), the trigger for prior insertion fails and begins to throw me an error that the value must be entered. (FRM:40202)

    After further analysis I also discovered that there is a null value is passed into another element. In fact when I update the Datablock Assistant I see this column on the left side to be present on the right side.

    Kindly if you could help on the same.

    Guy wrote:
    Details: I just start the form. The error appears in a pop-up window as soon as the form application opens (without any input from me)

    Hello Guy

    Pls check if you have a TIME-NEW-FORM-BIFURCATION, PREFORM, etc an EXECUTE_QUERY;

    If so, then this is the reason for the error arise...

    Please note: all lines with null, associated with the two old columns will cause the error

    Action: insert a value for columns NOT NULL...

    I hope this helps...

    Kind regards

    Abdetu...

Maybe you are looking for

  • HP envy 4500: printing from my camera

    When I go to the hp eprint app and select the photos tab (I want to print a photo BC.) -I can see the most recent photo (which is the one I want to print) showing in camera roll, but when I click on the camera roll it isn't here. any ideas? Thank you

  • Pavilion G7-1101sa: Ram upgrade

    My laptop starts to run a bit slow so I thought I should update my Ram, already, I have 4 GB of DDR3 ram installed but when I checked my laptop specs it says "Expandable to 4 GB of DDR3 memory" which confused me a bit so I decided to do some research

  • My Windows 7 works only in a safe mode. What can I do?

    When I start my computer, the office looks like as usual. However, I can't start any program. When I double click on ANY icon (including the START BUTTON), the circle of rotation it shows... and it runs forever. However, in safe mode, everything work

  • frozen computer and now it is black screen after Windows Update

    My computer automatically starts an update of Windows today and it has been locked or frozen for 2 hours. All I have now is a white screen. What should I do? (written on my iPad that works)

  • Question of alternative power

    I have a laptop HP G70 - 467 CL and was looking for either a piece of plug compatible for an adjustable DC adapter or the adapter authorized 12 volts for this model of HP laptop, A that I can recharge the laptop in the car during a trip without havin