Alerting about new records in to the database (in perticular table).

Dear membsers,
Alerting about new records in to the database (in perticular table).
i have a sample application like this.
A form based on purchase_requisitions, the data being entered from a network computer by a user with datanetry privileges. let's say the columns are
req_id,req_date,red-from_dept,req_from_emp,req_item_req_qty,req_status. (initially by default req_status is 'NEW').
next..
i have a form based on Pending_requisitions_view for the managers who approves the requisitions, the columns are just req_date,req_from_dept,req_from_emp. all the pending requisitions will come here every 5 minitues it gets refreshed by a timer. and it is a multi record block. from here the manager selects the record and he changes the status to APPROVED or DENIED. this is common scenario.
here is the main problem, the manager has to keep open his form all the time, or if he is working on any other things/forms, it is not possible for him to see requisiotns unless he has to open that form and timer re-freshes the records then only he can see. and again when the application in minimised state we cant see any updates/new entries into requissitions.
im trying to make a full pledges online system. im using Oracle 8i,forms 6i under win 2000.
is there any possibility if there is any new records gets into that table we can have alerts like Yahoo messenger it changes color to Blue when it gets new message if it is minimised state.
Please im keen to get this type of environment.
Thanks in advance

Hi,
i tested like this,
create a table-1 with tow coumns
table-2 clone to table-1, on table-1 i put on-insert trigger insert into table-2. so far it is good, table-2 is getting values.
on table-2 i wrote a database trigger like this
CREATE.. ON INSERT on each row..
begin
IF INSERTING THEN
raise_application_error;
END IF;
end;
now the data not at all getting inserted into any table raising_application_error, so i could not proceed into further..
please advise me..
Thanks a lot

Similar Messages

  • Web GUI new feature - creating a new record based on the current record

    Vincent,
    We need new feature in Web GUI:
    creating a new record based on the current record with data
    from Moscow with money

    It is already enabled, in the next release.
    If you joint TAB program, the march preview build contains it. User can select 1 or multiple users and make a copy.

  • Reorganization of the database (defragmentation of tables).

    Hi All ,
    Can anyone tell me how much approximate time do we require for reorganization of the database(defragmentation of tables) .
    DB size is 300Gb . I think there is a package called dbms_redefinition for this job? Correct me if i am wrong
    Os version : AIX 5L Databse : 11g
    Our client want to carry out this task on weekend and they need approx time window require to do this.
    Thanks in advance

    You're on 11g, so you're presumably using locally managed tablespaces (LMTs). If so, that makes it practically impossible to have "fragmentation" in tables, at least for any practical definition of "fragmentation". So my first response would be 0 time, the tables don't need to be defragmented.
    If you plan on using the DBMS_REDEFINITION package, be aware that you'll need enough space for another copy of each table (i.e. potentially another 300 GB of disk space if you plan on running in parallel).
    Justin

  • Problem with displaying records from the database in a table ui element

    Hi,
    Iam creating an application which retrieves data from an oracle database. Iam able to connect to the database and retrieve the data in a result set. Then I try to set these values in a context node as follows,
    while (resultSet.next()) {
    String name = result.getString(1);
    String EmpId = result.getString(2);
    IEmpNode node = wdContext.nodeEmp();
    IEmpElement el = node.createEmpElement();
    el.setName(name);
    el.setEmpId(EmpId);
    node.addElement(el);
    where the context structure is emp(node)
                                   ---name(attribute)
                                   ---empId(attribute)
    Then I have bound the node emp to a table ui element.If I try to deploy this it comes up with Internal Server error.
    But if try this way, without creating a node, only with attributes name and empId,
    wdContext.currentContextElement.setName(name);
    wdContext.currentContextElement.setEmpId(EmpId);
    and binding the attributes to inputfields in the view, Iam able to see the last record in the database table.
    So where am I going wrong while using the table ui element?
    Regards,
    Rachel

    Hi
    Try this
    //Create the node in outer of while loop and bind to Table UIElement
    IEmpNode node = wdContext.nodeEmp();
    while (resultSet.next()) {
    String name = result.getString(1);
    String EmpId = result.getString(2);
    IEmpElement el = wdContext.createEmpElement();
    el.setName(name);
    el.setEmpId(EmpId);
    node.addElement(el);
    Kind Regards
    Mukesh

  • Show results from the database to html tables?

    Hi,
    I am a PHP programmer and did a successful CMS program for a company. Now I have another project which is a web based system.
    I basically know how to do it and finish it in PHP.. but I am trying to do it using J2EE.. I am trying to learn J2EE now since I have been programming
    on J2SE for quite sometime..
    I am trying to show the results from a MySQL database on a table on J2EE but I am having hard time doing that. I am trying to research online and reading books but with no luck I can't find any resources on how to do that..If you guys can lead me into a resource where I can read how to do it? or just give any ideas on how to do it correctly I'll try to read and learn I will very much appreciate it.. here's my coding please look at it. Thank you very much
    I want to make it like this in a html table:
    userid username activated task
    1 alvin y delete(this will be a link to delete the user)
    Right now this is what I was able to do so far:
    Userid username activated task
    1
    alvin
    y
    Here are my codes... I am not even sure if I am doing it in the correct way...
    User.java
    mport java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.util.ArrayList;
    import java.util.List;
    public class Users {
    public List getUsers(){
    List names = new ArrayList();
    try{
    Connection con = DBConnect.getConnection();
    Statement stmt = con.createStatement();
    String sql = "select * from users";
    ResultSet rs = stmt.executeQuery(sql);
    while(rs.next())
    String userid = rs.getString("user_id");
    String usernames = rs.getString("user_name");
    String password= rs.getString("password");
    String activated= rs.getString("activated");
    names.add(userid);
    names.add(usernames);
    names.add(password);
    names.add(activated);
    catch(SQLException e)
    System.out.print(e);
    catch(Exception e)
    System.out.print(e);
    return names;
    UserServlet.java
    import java.io.IOException;
    import java.util.List;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class UsersServ extends HttpServlet {
    private static final long serialVersionUID = 1L;
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    Users be =new Users();
    List result = be.getUsers();
    request.setAttribute("user_results", result);
    RequestDispatcher view = request.getRequestDispatcher("manage_users1.jsp");
    view.forward(request, response);
    manage_users1.jsp
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@page import = "java.util.*" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <%
    List results = (List)request.getAttribute("user_results");
    Iterator it = results.iterator();
    out.print("<table border = 1>");
    out.print("<th>");
    out.print("userid");
    out.print("</th>");
    out.print("<th>");
    out.print("username");;
    out.print("</th>");
    while(it.hasNext()){
    out.print("<tr><td> " + it.next()+"</td></tr>");
    out.print("</table>");
    %>
    </body>
    </html>

    I suggest:
    1: you use this:
    e.printStackTrace()
    instead of this:
    System.out.print(e);
    so it will tell you what line it crashed on.
    2: In the code below,here is how you mix coding html tags and java scriptlets
    (you should never have to use out.print()):. In a later project, you can learn how to use JSTL
    instead of java scriplets (I suggest using java scriptlets for now until you have more JSP experience).
    FROM:
    <html>
    <%
    //some java code goes here
    out.print("<th>");
    //some more java code goes here
    out.print("<tr>");
    %>
    TO:
    <html>
    <% //some java code goes here%>
    <th>
    <%//some more java code goes here%>
    <tr>
    3: Put a lot of System.println() statements in your *.java classes to verify what its doing (you can learn how to use a debugger later).
    4: I highly recommend reading a book on JSP/servlets cover to cover.
    Here's a simple MVC design approach I previously posted:
    http://forums.sun.com/thread.jspa?messageID=10786901

  • Number of transaction that is run on the database,on spicific table

    i want to know how could i have a statistics of number of transaction that is run on database,on spicific table.

    If your database is running in archive log mode, then you could do the log mining for the given period of time to find out the number of operations against a given table.

  • How to retrieve linked records effciently from the database

    Hi,
    I have some records in database related to supply chain.
    e.g. N1 supplies item I1 to Node N2 is represented as N1 I1 N2.
    Now I want to find all parent nodes or say chain of nodes supplying to particular node in an efficient way.
    Can you please tell me how I can do it with efficient query. Currently it needs multiple queries & performance drops considerably.
    Regards,
    Veena

    please check the link
    http://wiki.oracle.com/thread/1246329/findrecentmostrowsaddedinatable?t=anon
    Here you can find the new inserted data/ modified data from a table.

  • How to set up a visual "alert" for new emails received on the Iphone 4s

    Finally converted from a blackberry to iphone 4s.  i have numerous email addresses.  On my old B berry, a red star would appear on each of my email addresses.  This notified me that there was a new message in my inbox for each particular address.  This was helpful since I didn't have to waste time opening each inbox to see if there were any new messages.
    I have checked everywhere in the settings on the Iphone (even my kids can't find it).  When i'm in the Mailbox screen and looking at about 10 email addresses, it would help to have a check mark, bold lettering or something to indicate when a new email is received to a particular address.  If the BB had it, the Iphone should have it.  Any help is appreciated.  Thanks.

    I'm not sure exactly what you are saying here. Are you saying you do not like checking the All Inboxes? Once you go to the Mail app, you get a list of each one of the individual account mailboxes with included numbers for the amount of new mail you have for each account, unless you have something not set up correctly. Each time mail comes in for an individual account you get notified, it is just that the badge will not say 1 for this account, 3 for that account for example. If you received the mail I use for the example, you get a 4 in the All Inboxes, and then the individual numbers for each accounts inbox. Does that answer your question/concern?

  • Creation of a new record based on the value of a picklist

    Hi,
    My requirement is whenever i select a picklist value in Opportunity record type based on the value selected a new opprtunity record should get created and get assigned to a role or A User otherwise a lead should get created and should be assigned to a Role or A User.
    Can I achieve this in OnDemand?
    Kindly help. This is urgent..
    Thanks in Advance.

    Can I achieve this in OnDemand?I think you can better try one of the Oracle CRM On Demand forums @ http://forums.oracle.com/forums/category.jspa?categoryID=162
    instead of the Oracle SQL and PL/SQL forum.
    This is urgent..The forums are relying on volunteers and it is weekend for most of us now.
    If it is really that urgent, call Oracle Support.

  • How to disable Toshiba TEMPRO alerts about new BIOS update

    Hi just installed TEMPRO on my W8 Satellite L875 laptop, ant it's saying there's a new bios update available - (1.60-WIN) which is the same version as I've already got.?:|
    Q: how can I make this alert go-away ?
    -Tom

    Thanks, but that's not quite what I had in mind ...
    I would have expected tempro to examine my system & installed components, and to alert me when a new/updated driver is released. I would then install the new/updated driver, and then tempro should dismiss the alert - or perhaps I'm just not understanding how tempro works ?

  • How can I make the GRID lines more bold within a table in the new Pages?  (Not the outline of a table)

    I can't find where to darken GRID lines on a table in the new Pages.  I can make the outline more bold, but not the grid lines within the table.  Is there a way to do this?  The default grid lines are far too faint.

    Yeah, the Help is missing a little.
    If you select the block of cells that you want to change, then in the Format inspector:
    Select the Cell tab
    Expand the Border section
    Set a line type
    Set a line width
    Choose a line color
    Choose one of the nine options for which borders get the new settings

  • New Records in database do not show up in resultset

    Hi,
    I have seen very little on this but I have a MS Access database that I have records in. If I change one of those records, I see the change in the resultset which I am just printing out for now using System.out.println . So I add new records manually to the database just so I am some records to test with and those records do not show up in the resultset. After doing something (not exactly sure what as I did a lot), I happen to go back and then saw the new records. So I add some more and could not see those records. I AM closing my resultsets, connections, etc. I read something where someone had the same problem and thought something was being cached which seemed reasonable to me. So I tried rebooting for the heck of it and I still see only the previous records and not the new ones.
    Any ideas,
    Thanks,
    Karl

    Hi Karl,
    There are problems some times like the one you mentioned when you are using both manual and programatic inserts/updates/deletes.
    When ever u face any such problems look out for following :
    Check if all ResultSet, Statement and Connection objects are closed before exiting the code. That is normal exit and abnormal exit (due to any error/exception).
    After manual insertion save and close target table.
    If the problem still exists then try re-compiling your code after closing the your Access (*.mdb) database.
    I hope this will work for you.
    regards,
    Humayun

  • Auto Increment ID Field Table in the Oracle Database (insert new record)

    I have been using the MySQL. And the ID field of the database table is AUTO INCREMENT. When I insert a new record into a database table, I can have a statement like:
       public void createThread( String receiver, String sender, String title,
                                 String lastPostMemberName, String threadTopic,
                                 String threadBody, Timestamp threadCreationDate,
                                 Timestamp threadLastPostDate, int threadType,
                                 int threadOption, int threadStatus, int threadViewCount,
                                 int threadReplyCount, int threadDuration )
                                 throws MessageDAOSysExceptionand I do not have to put the ID variable in the above method. The table will give the new record an ID number that is equivalent to the ID number of the last record plus one automatically.
    Now, I am inserting a new record into an Oracle database table. I am told that I cannot do what I am used to doing with the MySQL database.
    How do I revise the createThread method while I have no idea about what the next sequence number shall be?

    I am still very confused; in particular, the Java part. Let me try again.
    // This part is for the database table creation
    -- Component primary key sequence
    CREATE SEQUENCE dhsinfo_page_content_seq
        START WITH 0;
    -- Trigger for updating the Component primary key
    CREATE OR REPLACE TRIGGER DHSInfoPageContent_INSERT_TRIGGER
        BEFORE INSERT ON DHSInfoPageContent //DHSInfoPageContent is the table name
        FOR EACH ROW WHEN (new.ID IS NULL) // ID is the column name for auto increment
        BEGIN
            SELECT dhsinfo_page_content_seq.Nextval
            INTO :ID
            FROM DUAL;
        END;/I am uncertain what to do with my Java code. (I have been working with the MySQL. Changing to the Oracle makes me very confused.
       public void updateContent( int groupID, String pageName, int componentID,
                                  String content, Timestamp contentCreationDate )
                                   throws contentDAOSysException
       // The above Java statement does not have a value to insert into the ID column
       // in the DHSInfoPageContent table
          Connection conn = null;
          PreparedStatement stmt = null;
          // what to do with the INSERT INTO below.  Note the paramether ID.
          String insertSQL = "INSERT INTO DHSInfoPageContent( ID, GroupID, Name, ComponentID, Content, CreationDate ) VALUES (?, ?, ?, ?, ?, ?)";
          try
             conn = DBConnection.getDBConnection();
             stmt = conn.prepareStatement( insertSQL );
             stmt.setInt( 1, id ); // Is this Java statement redundant?
             stmt.setInt( 2, groupID );
             stmt.setString( 3, pageName );
             stmt.setInt( 4, componentID );
             stmt.setString( 5, content );
             stmt.setTimestamp( 6, contentCreationDate );
             stmt.executeUpdate();
           catch
           finally

  • Insert a new record in the middle of a tabular form

    Hi,
    I have a tabular form.
    Pressing "Add Row" button opens a new, empty row at the bottom of the page or - if I use pagination - jumps to the page with the last record and creates a new record there.
    Is it possible to open a new line in the middle of the page ?
    I mean: if I have 25 records, I am on the first page (records 1-10) and the cursor is in a field of the second record and I press the "Add Row" button there should be a new, empty second line with old second record in the third line,... the old ninth record now in line 10 and disappeared record ten ?
    Any idea ?
    Thanks,
    Heinz

    Heinz,
    You may investigate logic using UNIONs and a manual tabular form.
    Something like:
    --get all records above new row
    select apex_item... column1
    ,apex_item... column2
    from yourtable
    where <logic to limit rows above new record>
    union
    --get the new row
    select apex_item... column1
    ,apex_item... column2
    from dual
    where :REQUEST = 'ADDROW'
    union
    --get every row not in the top query
    select apex_item... column1
    ,apex_item... column2
    from yourtable
    where <logic to pull all records not pulled above new record>
    For this to work you'll need to add your own "Add Row" button and associate it with a branch. Notice the select between the two unions in the above query is a select against dual. This will be your new record when pressing your "Add Row" button (:REQUEST = 'ADDROW').
    The following how-to link is a reference for some of the logic you'll need when creating a manual tabular form.
    http://www.oracle.com/technology/products/database/application_express/howtos/tabular_form.html#MANUAL
    Good Luck,
    Todd

  • How to sort the new records when you input them in a Forms bloc?

    Hi,
    I have a multi-record data block, how can I do to sort the records in this block when you enter some new records? for instance, you have a table(emp), 3 coloumns(empid, empname, deptno). when you enter new records, how can you do to make records order by deptno? not in quiry status.
    Thanks. Please help me!

    I think Steve has answered your question and I doubt that what Frank is suggesting is what you are actually trying to do.
    However,
    from the top of my head I don't know if you can set the order by clause on a datablock dynamically <<-Yes you can set it with set_block_property. You don't really want to put it in the where clause because if the user enters query criteria in database fields, they will get appended after the order by and the query will fail.

Maybe you are looking for

  • Adobe Acrobat 9 Pro will not download to my computer

    My main computer crashed and I am trying to install Adobe Acrobat 9 Pro to my new computer.  I keep getting an error message Error 1305.  Error reading from file D:\Adobe Acrobat 9 Pro\Data1.cab   I purchased the program about 3 years ago.  Being a $

  • How do I change to a different theme in Pages?

    I have a document outline and would like to apply a new theme to it.  How do I do this?

  • Images from web path won't show in Crystal Reports XI R2

    Hi, I have a problem with my Crystal Report XI R2. I am trying to get images from web as well as static google map using OLE object. After setting the Graphic Location. No images are shown. I am using Windows XP SP3. Also, I tried to create a simple

  • Non updated data in a cube

    Hi Friends, I have initialized a cube. in that there are 70 packages available. but the QM status has not changed into Green. while I see the details, only one package ( Package No. 38)   has yellow states. in that package, Transfer rules, Update rul

  • Tax code appearing twice

    Dear All I have created a tax code T1 For this tax code i am maintaining conditions with combination as Plant and Tax code (which we have created) Conditions Maintained for Plant P1 and tax code T1 JMOP,JMX1,JEC1,JEC2,JSEP,JHX1 and JVRD Similarly I h