Detecting added rows (Event, Polling, ...)

Hi!
I'm working with the newest hibernate release and oracle 9/10g...
... and I'm having the following problem:
My application will get an interface to a legacy system through a database-table. If the legacy system writes a record into the table then my application has to do something (transform it and write it into one of my own tables for instance). The question is, what is the best way for my application to detect that a new record has been added to the database table?
I think there are two possibilites (changing the legacy application / the interface is no option :-( ):
1.) Polling the database table all n seconds
2.) The database sends me an event, if a new row has been added
Does hibernate/jdbc/oracle supports option 2? Exists there another good sollution for my problem?
Regards
Hoeft

Thanks for the link. The informations about queing on the linked page were very useful!
Regards
Hoeft

Similar Messages

  • Using javascript to detect the onclick event over a datatable row

    Hi all,
    I'm working with JSF 1.2 R.I. and I would like to add some javascript to my datatable to be able to control the onclick event on a row.
    At the moment I have just added a checkbox to be able to know which row the user wants to select but I'm not satisfied with this solution.
    <h:dataTable
    value="#{person_iupopulations_Observation.customer}" var="customer"
    rowClasses="evenRow,oddRow"
    cellspacing="0">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Select" />
    </f:facet>
    <h:selectBooleanCheckbox value="" onclick="getRow(this)">
    </h:selectBooleanCheckbox>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name" />
    </f:facet>
    <h:outputText value="#{customer.Name}"></h:outputText>
    </h:column>
    </h:dataTable>
    What I would like to achieve is:
    When the user clicks the row (wherever, not only the checkbox) the checkbox changes to the new value depending, off course, on the user's selection.
    For this purpose I would need to add the onclick event to every row and associate it to a javascript function to update the checkbox.
    Can anybody help me please.
    I appreciate any suggestion.
    Thanks in advance!

    I am looking for answers on how to use javascript to detect the onclick event over a datatable row . I have a selectBooleanCheckBox in one of the columns in the every row in the table. On click of the checkbox in any row of the table, I want to get some values from the selected row and also verify that the rest of the checkboxes in all the other columns are unchecked. I want to do this using javascript. If any of you have answers, please repsond. Thanks.

  • Event Polling Table

    1. I created an event polling table S_NQ_EPT in MS SQL SERVER.
    3. Imported the table S_NQ_EPT into RPD and designated as EPT.
    4. Inserted the record as
    INSERT INTO dbo.S_NQ_EPT
    VALUES (1,
    getdate (),
    NULL,
    NULL,
    NULL,
    'TBL_OBIEE_DRIVE_LOB',
    NULL);
    INSERT INTO dbo.S_NQ_EPT
    5. After 5 minutes it deleted the cache associated with the table.
    6. However it did not truncate the S_NQ_EPT table and instead copied the same row in the S_NQ_EPT table.
    Conclusion it deletes the cache but it does not truncate the table. Which results into multiple rows getting replicated after every 15 minutes. Even though the data hasn't changed for the physical tables. ALso, it would unnecessarily delete the cache due to this.
    I have checked the user that OBIEE uses has truncate rights and Read write privileges on the database.
    Please help
    Edited by: 974664 on May 23, 2013 10:22 AM

    Hi Raj,
    What you said is correct , Event Polling is one of the method to improve the performance in obiee.
    http://gerardnico.com/wiki/dat/obiee/event_table
    Oracle BI Server event polling table (event table) is a way to notify the Oracle BI Server that one or more physical tables have been updated and then that the query cache entries are stale. Each row that is added to an event table describes a single update event, such as an update occurring to a Product table. The Oracle BI Server cache system reads rows from, or polls, the event table, extracts the physical table information from the rows, and purges stale cache entries that reference those physical tables.
    why we have to go exactly for event polling table for cache purging?
    A. If you want to table wise polling data the we can implement this method, whenever table update or insert into database immediately event pool table purge the exit cache and stale the update one means included modified data also.
    Hope this help's
    Thanks,
    Satya

  • Change field value in a table, based on another field value in the same row (for each added row)

    Please Help, I want to change field value in a table, based on another field value in the same row (for each added row)
    I am using this code :
    <HTML>
    <HEAD>
    <SCRIPT>
    function addRow(tableID) {
    var table = document.getElementById(tableID);
    var rowCount = table.rows.length;
    var row = table.insertRow(rowCount);
    var colCount = table.rows[0].cells.length;
    for(var i=0; i<colCount; i++ ) {
    var newcell = row.insertCell(i);
    newcell.innerHTML = table.rows[1].cells[i].innerHTML;
    switch(newcell.childNodes[0].type) {
    case "text":
    newcell.childNodes[0].value = "";
    break;
    case "checkbox":
    newcell.childNodes[0].checked = false;
    break;
    case "select-one":
    newcell.childNodes[0].selectedIndex = 0;
    break;}}}
    function deleteRow(tableID) {
    try {var table = document.getElementById(tableID);
    var rowCount = table.rows.length;
    for(var i=0; i<rowCount; i++) {
    var row = table.rows[i];
    var chkbox = row.cells[0].childNodes[0];
    if(null != chkbox && true == chkbox.checked) {
    if(rowCount <= 2) {
    alert("Cannot delete all the rows.");
    break;}
    table.deleteRow(i);
    rowCount--;
    i--;}}}catch(e) {alert(e);}}
    </SCRIPT>
    </HEAD>
    <BODY>
    <INPUT type="button" value="Add Row" onClick="addRow('dataTable')" />
    <INPUT type="button" value="Delete Row" onClick="deleteRow('dataTable')" />
    <TABLE id="dataTable" width="350px" border="1">
    <TR>
    <TD width="32"></TD>
    <TD width="119" align="center"><strong>Activity</strong></TD>
    <TD width="177" align="center"><strong>Cost</strong></TD>
    </TR>
    <TR>
    <TD><INPUT type="checkbox" name="chk"/></TD>
    <TD>
    <select name="s1" id="s1">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    </select>
    </TD>
    <TD><input type="text" name="txt1" id="txt1"></TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>

    Hi,
    Let me make sure u r working with table control.
    First u have to create a event(VALIDATE) to do the validation.
    Inside the event,
    1. First get the current index where user has pointed the curson
    2. Once u get the index read the internal table with index value.
    3. Now u can compare the col1 and col2 values and populate the error message.
    1. DATA : lo_elt TYPE REF TO if_wd_context_element,
                   l_index type i.
    lo_elt = wdevent->get_context_element( name = 'CONTEXT_ELEMENT' ).
         CALL METHOD LO_ELT->GET_INDEX( RECEIVING  MY_INDEX = l_index.
    above code should be written inside the event.
    Thanks,

  • Detecting the send event in Outlook addin

    I'm trying to write an Outlook AddIn app in C# using Visual Studio 2012.  I need to detect when the send button is clicked in a current email.  I'll want to perform some actions after the send button has been clicked.   
    I assume an event handler needs to be created, but I'm not sure where- at the item level, or application level.  I created a mail item object with Outlook.MailItem publicItem = (Outlook.MailItem).this.OutlookItem.  It seems like I should be detecting
    publicItem.send but I'm not clear on how and where to use event handlers in this case.  
    I added a checkbox, and Visual Studio created publicCheckBox_Changed(object sender, EventArgs e) for me.  To check if the box was checked, I used  'if(publicCheckBox.checked) { do stuff }.   Is detecting the send event similar? 
    I'm new to c# and Outlook Addins, and fairly new to coding.  
    Thanks for your help. 
    Wayne

    Hello Wayne,
    In the check box Clicked event you can add a user property to the MailItem (see UserProperties.Add). Then in the ItemSend event ( see the Application class) handler you can check out the property value - whether it is set or not. Be aware, the Cancel parameter
    passed to ItemSend event handler allows to prevent the item from sending.

  • Cache purgin is not working with event polling table

    hi all,
    i am facing problem with event polling tables
    i will tell you the steps which i have followed for event polling tables
    1.i have created a table in back end for event polling table
    2.i have created ODBC connection to import the tables
    3. i have imported the tables along with event polling table
    4. i made the table as event polling table using utilities
    5.and then i ran the report in presentation catalog and i checked out the cache entries in Administration tool(in cache)
    6.and in back end i have manually inserted a db_name,catalog_name,schema_name and table name in to the event polling tales
    but cache purging is not happening ,
    any other steps that i have to follow ,or did i do any mistake while implementing event polling table
    please can any tell me how to make use of event polling table, i have followed following link
    http://gerardnico.com/wiki/dat/obiee/event_table_
    Thanks

    Hi,
    The steps are correct frm the link i have given,is the table name correctly specified i mean is it matching with the physical layer table.
    Test it for 1 table and check out by running the request containing that table and then insert 1 row manually to purge the activity or not by going to and verify that the cache entry is deleted and that you can find the below trace in the NQQuery.log file.
    Still the problem exists check out the log details whats the error.If your getting error in the same blog gerard has given some common errors and their support.
    hope you follow etiquitte.
    By,
    KK

  • Adding Rows and Columns to a table depending requirements

    Hi all,
    I have created a table with one row and 2 columns of a table. My client requested adding form one to 3 columns of the right table and rows as well, depending business requirements.
    I can add coding add columns on the right, but I cannot add rows because the columns dynamic.
    I tried to write the coding for adding rows but it is not successful.  Please help.
    event : click - add colum button
    for (var i = 0; i < form1.page1.Table1._Row1.count; i++){
    var newrow = form1.page1.Table1.resolveNode("Row1[" + i + "]");
    var newrow2 = form1.page1.Table1.resolveNode("HeaderRow[" + i + "]");
    newrow._Col3D.addInstance(0);
    newrow2._Col3D.addInstance(0);
    i also published my file for your reviewing.
    https://workspaces.acrobat.com/?d=xcgcfby89J-IHenn-8xeaQ
    Thank you very much,
    Cindy

    When you are adding instances it uses the default properties of the object...
    If its hidden as a default value in the form and you add an instance, the new instance will be hidden..
    So if you have 3 columns in your default row and trying to add an instance withthe 5 columns it will only add a row with 3 columns..
    If you want to add the columns to the table, you must add the column to each new row instance.
    E.g.:
    var intCount = xfa.resolveNode("page1.table1.Row1").instanceManager.count;
    form1.page1.table1._Row1.addInstance(1);
    xfa.resolveNode("page1.table1.Row1[" + intCount.toString() + "].Col3D").addInstance(1);

  • Detect selected row/column in ALV when clicking my button

    Hello,
    I use the cl_salv_table to display my ALV. I have implemented some double click events an so one. But now I like to be able detect u201Cselected  row and coll when I press a button I my Application toolbar.
    How do I get the selected row/column when pressing my button?
    Regards,
    Kenneth

    Give this a try:
    class lcl_disp_code definition.
      public section.
        methods: disp_code
                   for event double_click
                   of cl_gui_alv_grid
                   importing es_row_no
                             e_column.
    endclass.                    "lcl_disp_code DEFINITION
    *       CLASS lcl_disp_code IMPLEMENTATION
    class lcl_disp_code implementation.
      method disp_code.
        perform restrict_data
          using es_row_no-row_id.
      endmethod.                    "on_double_click
    endclass.                    "lcl_disp_code IMPLEMENTATION
    Rob

  • Write access on event polling table

    Is it mandatory for the bi server to have write access on the event polling table....We dont want bi server to delete the records from the table.
    Thanks.

    BI server works in this way, When there are rows in the event table, it knows there is changed data in the underlying databases. The server then invalidates any cache entries corresponding to the changed physical tables and periodically deletes obsolete rows from the event table. If you dont delete these records, it keeps on purging the cache. So it is must to obsolete the rows finished.
    If you want to maintain history,create same kind of table and insert rows what ever you are filling in the cache filling table. But why you don't want to delete the records?
    - Madan

  • Populating OBIEE event polling table S_NQ_EPT using Informatica/Stored Proc

    Hi,
    We have successfully setup OBIEE event polling Table S_NQ_EPT; and OBIEE cache purging mechanism is working fine.
    If anybody has done any setup for event polling table which gets updated after/in DAC execution Plan run using informatica/Oracle SP.
    Can anybody suggest pointers on how to insert rows in S_NQ_EPT after DAC run using informatica/DAC/Oracle Stored Procedure?
    Thanks in Advance,

    HI Srini,
    Thanks for reply.. yeah we have setup event polling table and all steps mentioned on site are done.. We want to populate event polling table after ETL run, any pointers?
    Thanks,

  • Event Polling Table makins nqs server down

    Hi,
    I have created a event polling table UET as per the guidelines in the admin tool pdf.
    Database version : oracle 11g
    obiee version :10.1.3.4
    I have create a small test table with two columns and UET table in same schema and same database.
    Imported both tables into rpd into new catalog with ddl permision user.
    Using tools - > utitlities -> Oracle BI Event tables I added UET as event table. Polling frequency 12min and executed it.
    deployed the rpd. restarted the server.
    nqs server is getting down.
    Could anyone please help me on this .
    Thanks in advance,
    Sivarama

    Hi
    PFB the create statement we used.
    CREATE TABLE EVENT_POLLING
    UPDATE_TYPE INTEGER DEFAULT 1 NOT NULL,
    UPDATE_TIME DATE DEFAULT SYSDATE NOT NULL,
    DB_NAME VARCHAR2(40 BYTE),
    CATALOG_NAME VARCHAR2(40 BYTE),
    SCHEMA_NAME VARCHAR2(40 BYTE),
    TABLE_NAME VARCHAR2(40 BYTE) NOT NULL,
    OTHER VARCHAR2(80 BYTE) DEFAULT NULL
    TABLESPACE TS_TEMP_TABLES
    Thanks

  • Regarding adding Rows to a Jtable programmatically

    I tried adding rows to a Jtable programmatically.
    My Jtable has the Table Model as a class that has been extended from DefaultTAbleModel.
    I tried inserting rows using addRow, and setRowCount and set RowNum methods but nothing worked..
    and I get the OutOfMemory xecption alawys and my applet hangs...

    What's in your addRow method? Are you firing the
    inserted event with fireRowsInserted?
    My snippet assumes you're storing table data in a
    vector of vectors and only want to add the row to the
    bottom of the table.
    public void addRow(Vector vector)
    data.add(vector);
    fireTableRowsInserted(data.size(),
    size(), data.size());
    addRow is a method of the DefaultTableModel class..and so I am not over riding it...
    i just use it as defaulttablemodel-object.addRow(Object[] obj);

  • How to Create Event polling table

    hi,
    1)How to Create Event polling table
    2) wahts RPD stands for.
    3) when we are prefer Dynamic variables.
    thanks.
    raj

    1) http://obiee101.blogspot.com/2008/07/obiee-managing-cache-emptyingpurging.html
    2) Repository Project Design ?
    - More than likely the extension RPD was not used by anything else when Siebel Analytics first started using it, no doubt the 'RP' is repository, so use 'Definition' or 'Design' as you like. Im pretty sure there is nothing in the documentation but i've not checked, maybe you could check and let us know?
    3) Dynamic variables would be something like 'CURRENT_MONTH' where the same query does not need to fire per user (ie SESSION variable) but needs to be periodically refreshed. Another use of you dynamic variable might be 'LAST_ETL_DATE' or somethng similar which might implement with your event polling table. By including the Variable within a Business Model, all cache for the Business Model is purged whenever the Variable's value changes.

  • How to see Added Row in a table

    Hi
    i have taken atable with visible row count 5 and ihave taken a button to add new row for that i have written code in action of that button,when ever a new row is added  that added row below the 5th row, to see that added row ishould click on UP button of table,*what i want i as soon as new row added 1st row of table should go up and remaing 5 rows should appear(2,3,4,5,6 rows)  ,suppose if i click on add row 2nd row should go up and remaingrows should appear(3,4,5,6 rows).please help me out of this problem
    Thanks
    Kishore

    Hi Kishore,
    Try this.
    public void onActionAddRow(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionAddRow(ServerEvent)
        int row = wdContext.nodeCustomer().size();
        IPrivateTestCompView.ICustomerElement custElm = wdContext.createCustomerElement();
         custElm.setCname("");
         custElm.setCno("");
         custElm.setCsal("");
         wdContext.nodeCustomer().addElement(custElm);
         //for swap the rows
         for(int i=1;i<=row;i++)
              wdContext.nodeCustomer().swapElements( 0, i );     
        //@@end
    Regards,
    Mithu

  • Reading the Data from dynamically added rows of a table...

    Hi,
                  I am using adobe interactive form (WD ABAP) in which i am adding the table rows dynamically (using Jscript code).  I have to fech these data into an internal table. But I can read only the first row data..
                  Also While adding rows dynamically the same data is repeating for the consecutive rows..
                  I have found many similar posts in sdn, but i cannot get the solution. They have mentioned about adding in WDDOINIT method. Can anyone explain me what should be done,..?
    1) How to solve repeatative data while adding rows..?
    2) How to read dynamically added row data during runtime into internal table..?
    Thanks,
    Surya.

    Discussed @ SDN lot of time before. Have a look at any of below threads:-
    Dynamic table in interactive form...
    Make dynamic tables in Adobe Interactive forms
    Adding Rows dynamically upon clicking the button
    How to get values to WebDynpro ABAP from dynamic table?
    Chintan

Maybe you are looking for

  • I bought an audiobook on my iPhone and I can't find it.

    I purchased an audiobook from my iPhone 5c. I couldn't find it in iBooks, or Music or anyplace else. The only place that I can play it, is when I attach my iPhone to my iMac and view what is on my phone in iTunes. I can then play the audiobook. I bou

  • Missing Scenario in Operator

    Hi I have a number of scenarios which are scheduled to run (on a schedule agent) in an execution only production repository. The scenarios are running away fine with no problems if I look in the Session List of the Operator. And if I look at the sche

  • Posting Rule for EBS

    Hi, I have configured Posting Rule for Incoming paymnets and works fine including posting area 2 by clearing Open Item of Customer. I tried the exact opposite way for Vendor. It creates GL posting ( Posting area 1 ) but error in Posting area 2 . It d

  • Re: Track Oracle users in Oracle connecting through Tuxedo

    Check the dba system tables and views (specially the dynamic v$ ones). You will find usefull session information (user, from where, program name, blocking conditions...). As a help, you can use the oracle dba scripts or use a graphical tool to show y

  • Tape size parameter in initsid.ora file for 200/400 GB

    Hi Experts, I have a ECC 5 system running on Windows 2003 Enterprise Server with Oracle as Database. I have installed an HP Ultrium Storageworks 460 tape drive on the server. It accepts a 200/400 GB tape cartridge. What value should I set for the par