Table SelectionEvent not fired after filtering

Hi,
consider the following scenario (ADF 11g Dec. 2008 build): a filterable af:table with 3 rows and RowSelection="single".
Row 1, the first one, starts as current and is highlighted in the table.
Now, apply a query-by-example so that only rows 2 and 3 are visible. The af:table thus highlights row 2 because it's the first of the two remaining rows... however, no SelectionEvent is fired in that case so no MakeCurrent takes place, and the user thinks the current row is row 2 but instead the underlying iterator isn't updated. User is forced to click on row 3 and then on row 2 again to make row 2 current (= fire a SelectionEvent). This also completely defies all the logic we put in our custom SelectionListener (it does MakeCurrent then updates a region in the page according to the selected row in the table).
An even bigger problem in the scenario above is that if you filter so that only row 3 is shown, it gets automatically highlighted and then there's no way to make it current at all, since the af:table in your browser won't let you "select" a row which is already highlighted. That is, the SelectionEvent only fires if a user manually clicks on a row which is not currently highlighted in the table.
This happens for all af:tables no matter the properties set, even after straight drag-and-drop of a VO to the .jspx page.
This behaviour seems just broken, if the af:table does highlight/select a row automatically client-side, it should send a SelectionEvent to the server so that a MakeCurrent can be performed, keeping the iterator's current position in sync with what the user sees.
Is there a way to workaround this issue? I'd say "fix af:table" would be the solution, but if these problems are still here I guess it's been designed this way? (...why?)
Any help would be appreciated.
thanks,
Riccardo

this is my php connection file
<?php
  $username = "kependudukan";
  $password = "kependudukan";
  $dbname = "localhost/XE";
  $c = oci_connect ($username, $password, $dbname);
  if (!$c) {
  echo "Koneksi ke server database gagal dilakukan";}
  //else {
  //echo "Konekasi ke server database sukses";}
?>
Everything works fine except the trigger..
I use Windows 7 Professional 32-bit
intel core i-3
RAM 2GB

Similar Messages

  • Table space not reduce after delete in oracle 11G

    Hi Team,
    I have a DB 11.1.0.7 on unix.
    I have execute delete tables on tablespace, but this not reduce.
    Thanks

    935299 wrote:
    What segment space management type is defined for the tablespace in question?
    MANUAL
    Then you should check out the documentation some more.
    But even if you shrink the table segement what is that going to do for the data file size?
    I don't undertand you.
    ThanksYour thread is titled "Table space not reduce after delete in oracle 11G" which implies to me that you are interested in reducing the size of a tablespace (which really means reducing the size of the underlying datafile(s)).
    So, if you shrink the size of the sys.aud$ table, will that cause the datafile(s) to become smaller? Will it accomplish your goal? What else, if anything, needs to happen?

  • Table space not reduce after delete in oracle 10g

    Hi..
    Based on my system, i have found that my oracle table space did not reduce after the deletion query. Why ?.. Could somebody help me. As your info, I am using oracle 10g.
    Thank you,
    Baharin

    After Delete the table space will not be set free. high water mark will not be reset. to regain the space you need to recognize the objects from which you deleted the data. This can be done in many ways.
    1) Move the objects.
    Alter table temp move --> optionally tablespace clause can be used. After this you need to rebuild table indexes.
    2) With 10g table can be shrinked or reorganize to free the space.
    alter table mytable enable row movement;
    alter table mytable shrink space;
    3) Export/Import
    export the objects and drop and recreate with import.

  • CDHDR table is not updated after execution of  transaction   CK 24

    Hi Experts ,
    I am  Triggering my workflow from  for CK 24 transaction based on the change document entry from CDHDR table , once the CK24 transaction executes .
    Now the problem is  after execution of the CK24 transaction now its not updating the table CDHDR, which was happening before .
    Note: No customization has been made which can affect this updation .
    Can any body please guide me on this , why the standard table is not being updated now with the change document entries  .
    Regards
    Sarmistha

    You can use following FMs
    CHANGEDOCUMENT_READ_HEADERS    Change document: Read change document header
    CHANGEDOCUMENT_READ_POSITIONS  Change document: Read change document items
    IN CDPOS you have to give the same thing as CDHDR. You have to search with the respective Object class and provide the Object Id(Key fields like Document number). Another thing you will also get the change document number from the transaction itself from which you are change the Document.
    Thanks
    Arghadip

  • Table size not reducing after delete

    The table size in dba_segments is not reducing after we delete the data from the table. How can i regain the space after deleting the data from a table.
    Regards,
    Natesh

    I think when you do DELETE it removes the data but
    it's not releasing any used space and it's still
    marked as used space. I think reorganizing would help
    to compress and pack all block and relase any unused
    space in blocks. Why do you think that? Deleting data will create space that can be reused by subsequent insert/ update operations. It is not going to release space back to the tablespace to make it available for inserts into other tables in the tablespace, but that's not generally an issue unless you are permanently decreasing the size of a table, which is pretty rare.
    Would you also please explain about different about
    LOB and LONG ? or point me to any link which explain
    baout it.From the Oracle Concepts manual's section on the LONG data type
    "Note:
    Do not create tables with LONG columns. Use LOB columns (CLOB, NCLOB) instead. LONG columns are supported only for backward compatibility.
    Oracle also recommends that you convert existing LONG columns to LOB columns. LOB columns are subject to far fewer restrictions than LONG columns. Further, LOB functionality is enhanced in every release, whereas LONG functionality has been static for several releases."
    LONG was a very badly implemented solution to storing large amounts of data. LOBs are a much, much better designed solution-- you should always be using LOBs.
    Justin

  • Percentage of used table space not reduce after deletion

    Hi..
    This is my query to delete data from database:-
    delete from $tb_data where to_char(partition_dt,'MON') = '$mm';
    The $tb_data and $mm is variable and the $tb_data will be read input table name (as example backup_nx160, backup_ngn and etc) and the $mm will be capture the input month.
    My question is why the percentage of used table space is not reduce after delete query was executed. Could somebody help me..
    Please help me..
    Thank you,
    Baharin

    baharin wrote:
    Hi..
    Is it the deleted space will be reused by the system ?Yes.
    .. How could i check the real free tablespace or real usage table space ?If you have gathered statistics on the schema recently, then sum (avg_row_len*num_rows) should give you the exact number of bytes that are being consumed - assuming all tables are in a single tablespace under consideration. You can subtract this value from sum (dba_data_files.bytes) figure for the tablespace, to know exact free space.

  • Table is not refreshing after comming

    Hi Experts,
    Working in JDEV 11.1.1.3.0 with ADF BC.
    I am updating the selected rows when the file download is done, in the same method i am coming the recording and reexecuting my VO and adding partial trigger as my table component, but still my table is not refreshing.
    Code:
    public void commitRows(RowData rowData){
    rowData.setAttribute("PrintState", "PRINTED");
    DCIteratorBinding printIter =
    ADFUtils.findIterator("XxwfsAvcardPrintInterfaceVO1Iterator");
    ADFUtils.invokeEL("#{bindings.Commit.execute}");
    printIter.getViewObject().executeQuery();
    AdfFacesContext.getCurrentInstance().addPartialTarget(printTB);
    // ADFUtils.invokePopup(this.getP2().getClientId(FacesContext.getCurrentInstance()));
    }

    Thanks for your reply Suganth.
    i don't have partial submitt on the button.
    My requirement is i am updating selected row on the table and at the same time i am downloading file, after download is finish selected row is updating properly but that row is still apearing on the table, if the user click on download button once again then i am getting null pointer exception, because the row is not there on the table it got updated.
    Because of file download table refresh is blocking, how should i need to refresh my table on file download method.
    Edited by: user5802014 on Aug 26, 2010 8:39 AM
    Edited by: user5802014 on Aug 26, 2010 9:05 AM

  • Advanced Table does not refresh after database level action

    Hi,
    I have a page which has an advanced table. I update the advanced table from the page do some validations, update some DB level columns(also part of advanced table) and see that the changes are saved to the DB but the advanced table does not show the updates done at the DB level.
    I tried clearing the VO Cache and re-executing the VO but still it does not refresh the Advanced table data.
    This is very critical requirement for the client, any inputs will be greatly appreciated.
    Thanks a lot in Advance.
    Here is the code snippet from my CO's processRequest:
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAAdvancedTableBean tblbean = (OAAdvancedTableBean)webBean.findChildRecursive("recasttable");
    if(tblbean!=null)
    tblbean.setRendered(true);
    OAApplicationModule tblam = (OAApplicationModule)am.findApplicationModule("RecastLineAM1");
    tblam.invokeMethod("initQuery");
    tblbean.getTableData();
    Here is my AM - initQuery() code:
    public void initQuery()
    //clearVOCaches("RecastLineEO",true);
    clearVOCaches(null,true);
    getRecastLineVO1().init();
    Here is the VO - init() code:
    public void init()
    System.out.println("****************************executing...");
    OADBTransaction tx = (OADBTransaction) getApplicationModule().getTransaction();
    if (tx.getTransientValue("RECAST_ID") !=null)
    Number recastId = (Number) tx.getTransientValue("RECAST_ID");
    System.out.println("recastId: "+ recastId);
    setWhereClause("RECAST_HDR_ID = :1");
    setWhereClauseParams(null); // Always reset
    setWhereClauseParam(0, recastId);
    executeQuery();
    }

    hi,
    This is how I am calling a DB package. the package does updates on the table. once done I am issueing a commit and requerying the data, however the vo is not getting refreshed.... Can someone point out what am I missing... why is the VO not getting refreshed....
    This is very critical...
    Thanks
    Srini
    public void validateRecast(String respKey)
    OADBTransaction tx = (OADBTransaction)getApplicationModule().getTransaction();
    Number recastId = (Number) tx.getTransientValue("RECAST_ID");
    System.out.println("*********************validateRecast().RecastId: " + recastId);
    OracleCallableStatement ocs = null;
    Connection conn = tx.getJdbcConnection();
    String strOut="", strErr="";
    Number respId = null;
    try
    respId = new Number(respKey);
    catch(Exception e)
    throw new OAException("Invalid Responsibility");
    String stmt = "BEGIN " +
    "GE_RECAST_UTILS_PKG.validate_recast(:1,:2,:3,:4); " +
    "END;";
    try
    ocs = (OracleCallableStatement)conn.prepareCall(stmt);
    ocs.setNUMBER(1,recastId);
    ocs.setNUMBER(2,respId);
    ocs.registerOutParameter(3,OracleTypes.VARCHAR);
    ocs.registerOutParameter(4,OracleTypes.VARCHAR);
    ocs.execute();
    strOut = ocs.getString(3);
    strErr = ocs.getString(4);
    ocs.close();
    System.out.println("Returned with: " + strOut);
    if(strOut.equalsIgnoreCase("ERROR"))
    //throw new OAException(strErr);
    tx.putTransientValue("ERROR",strErr);
    tx.commit();
    getApplicationModule().clearVOCaches("RecastLineEO",true);
    RecastLineVOImpl lineVo = (RecastLineVOImpl)getApplicationModule().findViewObject("RecastLineVO1");
    lineVo.init();
    System.out.println("===============RecastLnId: " +lineVo.first().getAttribute("RecastLnId"));
    System.out.println("===============Product Line: " +lineVo.first().getAttribute("ProductLine"));
    catch(SQLException e)
    tx.rollback();
    if(ocs!=null)
    try
    ocs.close();
    }catch(SQLException e1)
    throw OAException.wrapperException(e1);
    throw OAException.wrapperException(e);
    }

  • Table does not refresh after database level action

    We have defined an Advanced table on a VO to represent invoice lines. The VO is referenced by a VL from the invoice header.
    At one point during our process, a database level package is executed on the current lines. We have a "Requery" button to refresh the lines, however, the lines do not refresh unless we exit the invoice entirely and come back to it via the VL.
    How can we refresh the lines on a current table after a database level transaction occurs?
    Thanks, Jerry.
    Our AM code is as follows...
    // handleRefreshInvoiceLines( )
    public void handleRefreshInvoiceLines()
    OAViewObject vo = (OAViewObject)getInvoiceLinesVO1( );
    if( !vo.isPreparedForExecution( ) )
    getTransaction( ).validate();
    vo.executeQuery( );
    clearVOCaches( "InvoiceLinesEO", true ); // troubleshooting
    } // handleRefreshInvoiceLines()

    Thank you. I've moved clearCache around a bit. apparently vo.isPreparedForExecution() is false. I wonder why?
    --Jerry.                                                                                                                                                                                                                                                   

  • Pre-insert trigger is not firing after post built-in

    Hi,
    I have a 10g form in which Post built-in is used in When-button-pressed Trigger. After the post command I am checking some condition,by using the same record which I have posted.But it is not working.
    I have also put the message in the pre-insert trigger but the message is not displaying.
    But the same form iis working fine in form 6i, as I have migrated the forms from form 6i to 10g.

    Yes, In that block there are other items also. I have made the required property no for all the items.
    what exactly we have is
    (if x=y then)on some condition check
    POST;
    After that, form have a select statement in which it is selecting the same row which is being posted above.
    if the select statement gives count of row zero
    raise form_trigger_failure is fired.
    and in the pre-insert trigger form is assigning a value to a block item.

  • TABLE SIZE NOT DECREASING AFTER DELETION. BLOCKS NOT BEING RE-USED

    Hi ,
    Problem:
    Table size before deletion: 40GB
    Total rows before deletion: over 200000
    Rows deleted=190000 rows
    Table size after deletion is more (as new data was inserted meanwhile).
    Purpose of table:
    This table is a sort of transaction table.
    Whenever an SR is raised by CSR, data gets inserted into this table and is removed when the status is cleared.
    So there is constant insertion and purging will happen on this table.
    We are using ASSM and tablespace is LOCAL.
    This Table has a LONG column also.
    Is this problem because of LONG column ?
    So here there are 2 problems.
    1) INSERTs are not using the space created by DELETE.
    2) New INSERTs are taking much more space then expected ?
    Let me have your suggestion
    Thanks,

    I think when you do DELETE it removes the data but
    it's not releasing any used space and it's still
    marked as used space. I think reorganizing would help
    to compress and pack all block and relase any unused
    space in blocks. Why do you think that? Deleting data will create space that can be reused by subsequent insert/ update operations. It is not going to release space back to the tablespace to make it available for inserts into other tables in the tablespace, but that's not generally an issue unless you are permanently decreasing the size of a table, which is pretty rare.
    Would you also please explain about different about
    LOB and LONG ? or point me to any link which explain
    baout it.From the Oracle Concepts manual's section on the LONG data type
    "Note:
    Do not create tables with LONG columns. Use LOB columns (CLOB, NCLOB) instead. LONG columns are supported only for backward compatibility.
    Oracle also recommends that you convert existing LONG columns to LOB columns. LOB columns are subject to far fewer restrictions than LONG columns. Further, LOB functionality is enhanced in every release, whereas LONG functionality has been static for several releases."
    LONG was a very badly implemented solution to storing large amounts of data. LOBs are a much, much better designed solution-- you should always be using LOBs.
    Justin

  • J_2IACCBAL table was not updated after TR6 challan

    Hi,
    At the time of depositing the amount for PLA, you will be passing an entry Debiting PLA on Hold and crediting your bank account. Once the bank acknowledges the receipt, you need to update the PLA amount through J1IH transaction (TR6 Challan). At that time the entry will be Debiting PLA and Crediting PLA on Hold. It will create an entry in your PLA register with a serial number.
    But in here J_1IPART2 table was updated with  Debit/Credit fileds(S and H) and table J_2IACCBAL does not have any values for PLZBED,PLAECS and PLAAT1 so i,e the reason PLA register print does not have any value.
    1)First our J_2IACCBAL table for PLA is ZERO
    After the entering of the values in TR6 challan then the PLA values should appear in J_2IACCBAL , but in this case we were not get that values in J_2IACCBAL. why?
    mahesh

    Hi,
    Go to T Code - J2I5 (not 215 it is j 2 i 5) enter details and select register PLA Check box and execute. This can be extracted many times - no problem.
    After J2i5 balance will update in registers including tables.
    Ramesh

  • Why is this table trigger not firing when insert/update from servlet?

    Hi!
    I have this servlet that parses XML and stores values into Oracle tables. I have created a table trigger so that when one table is updated, a trigger is fired and the current system date is store in another table's field.
    I have tested the trigger in Toad and it works, that is, if I update the table that the trigger is set to, the SYSDATE is stored as intended.
    Here is the trigger's code:
    DECLARE
    tmpVar NUMBER;
    NAME: transaction_time
    PURPOSE:
    REVISIONS:
    Ver Date Author Description
    1.0 9/14/2007 1. Created this trigger.
    NOTES:
    Automatically available Auto Replace Keywords:
    Object Name: transaction_time
    Sysdate: 9/14/2007
    Date and Time: 9/14/2007, 8:00:42 AM, and 9/14/2007 8:00:42 AM
    Username: (set in TOAD Options, Proc Templates)
    Table Name: MS_RESLIMITS (set in the "New PL/SQL Object" dialog)
    Trigger Options: (set in the "New PL/SQL Object" dialog)
    BEGIN
    tmpVar := 0;
    UPDATE MS_Misc SET mi_lastrun = SYSDATE;
    EXCEPTION
    WHEN OTHERS THEN
    -- Consider logging the error and then re-raise
    RAISE;
    END transaction_time;
    Now, when the table is updated by the servlet, the trigger does not fire. And here is the code from the servlet:
    --- <start of code> ---
    boolean recordExists =
    this.isRecordPresent("MS_ResLimits", "rl_compcode",
    compCode, url);
    Connection rlConn = null;
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    rlConn = DriverManager.getConnection(url, dbUser,
    dbPwd);
    Statement stmt = rlConn.createStatement();
    PreparedStatement xmlUpdate = null;
    if (recordExists) {
    xmlUpdate =
    rlConn.prepareStatement("UPDATE MS_ResLimits SET rl_compcode = ?, rl_maxreslimit= ? WHERE rl_compcode =?");
    xmlUpdate.setString(1, compCode);
    xmlUpdate.setString(2, maximumReservationDate);
    xmlUpdate.setString(3, compCode);
    } else {
    xmlUpdate =
    rlConn.prepareStatement("INSERT INTO MS_ResLimits VALUES(?,?)");
    xmlUpdate.setString(1, compCode);
    xmlUpdate.setString(2, maximumReservationDate);
    } //end-if-else
    int n = xmlUpdate.executeUpdate();
    rlConn.commit();
    } catch (Exception ex) {
    out.println(ex.toString() +
    "-> error inserting Max Reservation Date<br>");
    } finally {
    if (rlConn != null) {
    rlConn.close();
    } //end-try-catch-finally
    --- <end of code> ---
    What causes the trigger to fire? the commit? My understanding is that executeUpdates are in autocommit mode by default, or am I mistaken? Do I have to programmatically send something to the DB so that the trigger fires?
    BTW, I'm using JDeveloper 10.1.3.3.0. The project is being compiled with Java 1.5.0_06. The servlet is running in OCJ4 standalone. DB is 10g (don't know the release version).
    ...and, for some reason this message is not keeping format from my edit window to the post...
    Thx!
    Message was edited by:
    delphosbean
    Message was edited by:
    delphosbean
    Message was edited by:
    delphosbean

    You are supposed to be able to preserve you formatting using the <pre></pre> tags but I can't get this to work either<br>
    <br>
    Patrick.

  • Table data not view after physical recovery

    hi,
    i have recoverd to another location physical backups of oracle files. i have all data but data in one table patient can not be viewed. however, if i execute count(*) query it retruns total number of rows. can any one help me.
    i am using 11g database and i am executing this query from sql*plus
    " select * from patients;"
    thanks
    susan
    Edited by: user3293897 on Jul 19, 2010 10:39 PM

    user3293897 wrote:
    hi,
    i have recoverd to another location physical backups of oracle files. i have all data but data in one table patient can not be viewed. however, if i execute count(*) query it retruns total number of rows. can any one help me.So you mean to say that the total count of the rows is correct but the display of data is not happening? Whats the error that you are facing? How you are trying to display the data, from teh sql*plus or from some application?
    HTH
    Aman....

  • Table space not reused after deletion ?

    Hi..
    I am running on oracle 10g. Based on my system, i have created one query to delete old data from the table on daily basis. Below the sample query :-
    delete from SNP_EXP_TXT
    where I_TXT in (select I_TXT_SESS_MESS from SNP_SESSION
    where SESS_END < trunc(SYSDATE - 1));
    I have check on the database and all the old data are deleted from the table. But, I am confused why the table space keep increasing even the old data has been deleted.
    I am assume that the problem because of the table space cannot be reused after the deletion. Could somebody help me how could i verified that and how could i ensure that all the table space can be reused ?
    Thank you,
    Baharin

    Is there only one table, or are there other objects in the tablespace ? Are you sure this is the table that is growing ?
    select segment_name, segment_type, bytes from dba_segments where tablespace = 'XXX';
    It will also depend on how the data is inserted ? If you insert append, then it will grow the table.

Maybe you are looking for

  • Here we go again - all pear-shaped and customer on the warpath...

    This customer of mine seems destined to suffer one disaster after another. This time, they ran out of space on the boot drive sometime last Friday night - this time for fairly reasonable reasons (although named.log was about 15Gb in size for some rea

  • Imac 15" flat panel

    Question, is there any web sites that show "How to put a larger display on 15 older Imac G4 Flat Panel Imac?" The type that look like a half ball, with the display on a pole. I would like to put a larger 19" analog LCD display on this Imac, one you c

  • Configuring sender jdbc adapter

    Hi all, I have a requirement in which i have to select certain data from Oracle table and send it to an IDOC via SAP XI. Problem is the select can happen from several tables. For example: SELECT col1,col2,col3 FROM <tablename> The <tablename> has to

  • JBO-25058 exception when running adf:tree component

    Hi, I was trying to prototype an adf:tree which uses eo, vo, and view links as a data model. I am trying to use the vo recursively. Data model consists of : EO: PeggingDataEO VO: TopPeggingDataVO PeggingDataVO View Links: TopToFirstLevelVL (source: T

  • Smart form (URGENT)

    Hi I am working on RFQ smartform and using standard print program /smb40/fn06p. i need the explaination of form ENTRY_NEU and perform PROCESSING_PO inside the include /SMB40/FM06PE02 .I want to know what actually both of these are used for. plz anyon