Regarding logical problem plz help me

hi all
i have a table like this
EMPNO NOT NULL NUMBER(4)
HIREDATE DATE
OFF_DAY NUMBER(3)
now what i want is i want to restrict the user with out entering the data in off_day column continuesly for three days
ex
10 22-09-2004 8
10 23-09-2004 8
10 24-09-2004 8
so in this case i don't want to enter in 3rd row of 24th day for inserting or updating the data.
i am trying it using triggers but i am fail please tell me how to solve this problem
Thanks & Regards
-Chandu
[email protected]

You could use:
WHEN-VALIDATE-ITEM trigger to reject changes made
PRE-TEXT-ITEM trigger to hinder the user to enter the field if date isn't in range
Regards,
Martin Malmström

Similar Messages

  • Classpath problem plz help me

    hi!
    i am unable to run my RMI server program .Name of My server class is SumServer.java,it implements SumInterface.java all the files(.class,.java and stub) are at location c:\javaprog\rmi\sum.
    I have not put them in any package.
    value of classpath is
    classpath=c:\jdk1.4\lib;.;c:\javaprog\rmi\sum
    i go in sum folder and run the program
    c:\javaprog\rmi\sum > SumServer
    it gives me following exception.plz help me out.
    Thx in advance.
    Exception occur.Unable to register serverjava.rmi.ServerException: RemoteExcepti
    on occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
    tion is:
    java.lang.ClassNotFoundException: SumServer_Stub

    Deepa lakshmi wrote:
    Hi,
    Am new to weblogic.
    Am using the tools are,
    Weblogic8.1 version
    MySql5.0,mysql-connector-java-3.1.12-bin.jar file
    While test configuration of connection pooling am getting the error is "JDBC Driver is not on the classpath".
    How can i solve this problem
    plz help me
    regards
    DeepaEdit the start-weblogic script. Near the bottom, you will see
    lines that create a CLASSPATH for the weblogic server. Add a
    script line that adds the mysql driver to the classpath there.
    Joe

  • Audio Clip problem plz help..

    There is some problem with my code. It is actually for simply playing a wav file.
    It gives errors on two lines....
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    public class MediaPlayerDemo extends JFrame
         AudioClip clip; //Error Here
         public MediaPlayerDemo(String title)
              super(title);
         clip = getAudioClip(getCodeBase(),"access.wav"); //Error Here
         clip.loop();
         public static void main(String args[])
              MediaPlayerDemo m = new MediaPlayerDemo("Title");
              m.setSize(400,400);
              m.setVisible(true);
    }

    "Audio Clip problem plz help"
    You have to learn to help yourself.
    Have you done anything to try to fix the errors yourself?
    AudioClip clip; //Error Here
    the error generated here is self-explanatory.
    if you can't fix this, you should get a good book on java basics and start again.
    the other error is also easy to fix.

  • Applet problem plz HELP

    Hi all,
    I have a problem when I am trying to run a jar file from an applet. The jar is for remote desktop application. Jrdp.jar.
    And the Exception is���.
    Exception in thread "Thread-6" java.security.AccessControlException: access denied (java.util.PropertyPermission gnu.posixly_correct read)
    at java.security.AccessControlContext.checkPermission(Unknown Source)
    at java.security.AccessController.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
    at java.lang.System.getProperty(Unknown Source)
    at gnu.getopt.Getopt.<init>(Getopt.java:617)
    at gnu.getopt.Getopt.<init>(Getopt.java:581)
    at net.propero.rdp.Rdesktop.main(Rdesktop.java:290)
    at net.propero.rdp.applet.RdpThread.run(RdpApplet.java:190)
    can any one suggest me what I have to do???? Plz give your valuable suggestion in that matter. Should I have to do any thing in java.policy file. In that case what would be the syntax and what have allow. If possible plz help me out.
    Thanking you,
    With regards
    Shibaji Sabyal

    Try googling on how to sign your applet. The error you're getting can usually be solved by signing it.

  • Problem PLZ Help me

    Hi Guys,
    I have a problem to make a developer application Client/Server.
    When i install forms Runtime on the Client`s computer and i open the application, i get the error that he can`t find the menu and the libraries.
    The menu path is for example on my computer F:\s3\Salesmenu
    But on the client it can be a different path an then he can`t find the menu.
    Now the properties for the main form are:
    Menu module f:\s3\Salesmenu
    Initial menu Salemenu
    Does anyone know how to fix this problem for example:
    1) by let the program search for the menu.
    2) .....
    Plz Help
    Vincent

    set your FORMS60_PATH on the client to Formspath;libpath;menupath so it looks in every dir named in the path.

  • Big Problem, PLZ HELP

    So, when i click on the itunes shortcut, which has the same icon as the Apple Software Updater, I get a box that says that iTunes has encountered a problem and needs to close. We are sorry for the inconvenience. I hit send once and sent the error report, and then restarted my computer to see if that would help. It didnt, so, now i cant access itunes this is a major problem cause i have all my songs on this computer. I also tried to plug in my ipod and see if that would make it load.
    I installed iTunes 7.0 on my laptop, the exact same way, and i works on my laptop, but not on my computer.
    PLZ HELP ME

    ok this is what i did when that happened to me. i uninstalled quicktime then went here: http://www.apple.com/quicktime/win.html and reinstalled the latest version :0)

  • Nokia n79 problem Plz Help!

    Hello!My nokia just stuck,or hang in(i dont now english good) but i cant do enything.Evry button just dont work only at start when i write my pi(and somethimes then too).Works only power button.Its weard.Plz help.Somethimes a whole day are no problems somhetimes a whol day.

    hey ivee n everyone else .. i'm facing the same problem.. n i need to fix this problem myself..
    my n79 gets hang constantly nowadays.. i've used this phone for 1 year plus now so warranty's no more..... none of the buttons on the keypad works when it gets hang.. onli the power button is functioning.. now it's gettin worse .. it even hangs before i insert my pincode... i cant sms, call , or anything.. it hangs after i pressed a few buttons..
    so ivee u've fixed ur n79 youself right..? umm.. can u explain to me wat a smallboard is? is that the board at the lower part of the keypad where u can see buttons underneath the white layer? and is that board expensive?
    pls reply asap anyone.. urgent

  • N79 hanging problem plz help....

    while unlocking the keypad of my n79 sometimes the phone gets hanged then i have to take the battery out and then again switch on the phone........plz help me how to get rid of this problem???

    I have also same problem with my Nokia N79, I just cancelled sensor for automatic themes from cover. Just open back cover & stick some paper or plastic cello tape on four hole marks of covers wich r sensor for automatic themes to change colour of back cover same as theme colour. From 2 days I feel my mobile working fine without hanging ! so try it, all the best.

  • Bluetooth connection problem plz help...

    hi everyone, just bought a new pearl 9105. everything works fine and even bluetooth... through which i can transfer data from blackberry to other mobiles(samsung,sony ericsson)... but the problem is i could not recieve data from other mobiles.i should get contacts list from the other mobiles... but due to this problem i couldnt. plz help me out..

    The best way to receive a file from another device via bluetooth is to go to Media, then press Menu, choose Receive Using Bluetooth, waiting for connection will be display, then send from the other device. It should work without hassle.

  • Package Problem : Plz help

    I've make two classes named First.java and Second.java in e:\javafiles\test\vg folder
    package vg;
    public class First
              public int m = 100;
              public int n = 200;
    package vg;
    public class Second
              public static void me0()
                   System.out.println("Stupid cant u see the value of m is zero");
              public static void mgrn()
                   System.out.println("Yaar m is greater than n");
              public static void neven()
                   System.out.println("The value of n is Even");
    and a Third class
    import vg.*;
    public class Last
              public static void main(String robert[])
                   Second d = new Second();
                   First f = new First();
                   if(f.m==0)
                        d.me0();
                   if(f.m>f.n)
                        d.mgrn();
                   if((f.n%2)==0)
                        d.neven();
                   else
                        System.out.println("The value of n is Odd");
    Now the problem is that if I put the Last.java at e:\javafiles\test and compile it , it works fine but if I put the Last.java anywhere else e.g at e:\javafiles and try to compile it it does not works and gives error
    E:\JavaFiles>javac Last.java
    Last.java:1: package vg does not exist
    import vg.*;
    even if I change classapth variable as E:\javafiles\test or even E:\javafiles\test\vg
    plz help me in this regard

    You need to change where it is trying to find the 'vg' package. So, if your Last.java is in e:\javafiles, then you need to
    import test.vg.*
    e.g.
    import test.vg.*;           // Change this line
    public class Last
              public static void main(String robert[])
                   Second d = new Second();
                   First f = new First();
                   if(f.m==0)
                        d.me0();
                   if(f.m>f.n)
                        d.mgrn();
                   if((f.n%2)==0)
                        d.neven();
                   else
                        System.out.println("The value of n is Odd");
    Alan

  • Intial stock posting problem plz help me

    hi gurus,
    i hav struck up in mb1c,i could post the stock,iam getting the error message is 12/2008 is not open to account type S and GL acct 799999.i hav went and altered in OB52,Ihave tried in OBYC but still iam getting this message.
    plz help me with steps
    regards
    kannan

    HI GURUS,
    I ACCEPT ALL UR ROUTINE PROCESS WERE I HAVE DONE ALL THOSE CONFIGURATION ,OMWD,OB52,OMWB ALL STUFFS BU STILL ERROR IS ON ITS WAY.I HAVE GIVEN GL ACCOUNT AS 800000 AND DONE MY CONFIGURATION IN OB52,AS
    0001-+-ZZZZZZZZZ-1-2008-12-2009-13-2008-16-2008-
    0001-A-zzzzzzzzz-1-2008-12-2009-13-2008-16-2008-
    0001-D-zzzzzzzzz-1-2008-12-2009-13-2008-16-2008-
    0001-K-zzzzzzzzz-1-2008-12-2009-13-2008-16-2008-
    0001-M-zzzzzzzzz-1-2008-12-2009-13-2008-16-2008-
    0001-S-zzzzzzzzz-1-2008-12-2009-13-2008-16-2008-
    next i have assigned the valuation group code to the company code but still i am getting 12/2008 is not open to account type s and gl account 799999

  • N95 maps problem plz help me

    please any body can solve my problem?
    i have n95
    when i open gps application
    then on the screen globe is not showning and no maps are showing on screen
    only city names are showed
    and after the closing of map application in apst there are type on screen
    saving maps and data
    but now nothing typed
    plz help me

    i am using latest firm ware
    and using old maps application bcoz new beta 2.0 not showing my accurate position in pakistan
    if i am in my city
    the maps application shows u r 10 km from your city
    but old version give me accurate position...

  • Ps4 problem plz help ASAP

    ps4 can ON got sound can control but no image and also the color on the top is white...

    Sry for my bad english.... I have try other HDMI but still the same problem. The problem is when I turn on the ps4 the LED on top of the ps4 turn from blue to white. Then when it's started there no image the screen is black, but have sound and I can control it with my controller. I also try to plug in my HDMI from my laptop to the TV and there no problem what so ever.. Plz help :<

  • Report problem plz help

    hi to all
    Using form6i and run in client server. i cant solve this problem please help to all master :
    I have a text item in forms and button. When i type the Customer_Name in text item then all names appears in reports, i want that when i type the name, only that name will appear .
    Please check what is wrong with my code and steps.
    In report wizard, query statement i put "Select * from S_customer"
    then i call the report in forms..
    Report Property pallette:
    Other Parameters=Customer_Name
    Query names=Select * from s_Customer where Customer_Name=:rep(the text item)
    then in forms the button trigger is when button pressed.below is the code:
    declare
    v_Rep varchar2(100);
    repid report_object;
    Begin
    repid := find_report_object('report');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,’s_customer=’||:Dept.rep);
    v_rep := run_report_object(repid);
    end;
    advance tnx to all

    Hi,
    You need to bulid a parameter list.
    This is a code sample to run a report from Forms:
    (Place it on a button when-button-pressed trigger, to run the report).
    DECLARE
         repid REPORT_OBJECT;
         v_rep VARCHAR2(100);
         rep_status VARCHAR2(20);
    -- this is the parameter list
         pl_id ParamList;
    pl_name VARCHAR2(10) := 'tempdata';
    BEGIN
    -- try to find the parameter list
    pl_id := Get_Parameter_List(pl_name);
              IF Id_Null(pl_id) THEN
                   -- if parameter lsit does not exist
                   -- create it
              pl_id := Create_Parameter_List(pl_name);
              IF Id_Null(pl_id) THEN
              Message('Error creating parameter list '||pl_name);
              RAISE Form_Trigger_Failure;
              END IF;
              ELSE
              Message('Parameter list '||pl_name||' already exists!');
              -- destroy it to clear old parameters
              -- and create it again;
              destroy_parameter_list(pl_id);
              pl_id := Create_Parameter_List(pl_name);
              END IF;
    Add_Parameter(pl_id,'p_customer_name',TEXT_PARAMETER,:customer.cust_name);
    -- add as many parameters as needed
    -- finally run the report passing your parameter list
         repid := FIND_REPORT_OBJECT('report4');
         v_rep := RUN_REPORT_OBJECT(repid, pl_id);
                   Exception
                        when others then
                        Message('Error running report. '||sqlerrm, acknowledge);
    END;
    Also, you need to create the parameter in your report:
    1.- Open your report on reports builder.
    2.- Find the "Data Model" node, and the "User parameters" node.
    3.- Create a parameter: p_customer_name
    4.- Modify your sql from:
    Select * from S_customer
    TO:
    Select * from S_customer
    where Customer_Name=:p_customer_name;
    If you want this parameter to be optional, check the reports online help on "Lexical References".
    Have fun,
    Hugo

  • I'm unable connect my I pad mini to my laptop(window 7,64 bit) after formatting,my iTunes didn't find my device,before format everything working properly but this time lot of problem plz help

    I'm unable connect my I pad mini to my laptop(window 7,64 bit) after formatting,my iTunes didn't find my device,before format everything working properly but this time lot of problem plz help

    You formatted your computer's hard drive? If so, it's like starting with a new computer unless you restored all of your content from a backup but it does;t sound like that's the case.
    See wjosten's excellent how-to here: Syncing to a "New" Computer or replacing a "crashed" Hard Drive

Maybe you are looking for

  • Conncting my PB 12' to a TV

    I am trying to connect my pb to my tv through the mini-dvi to Video Adapter, but the display preferences don't give NTSC/PAL Display (like they should) but rather, VGA Display. What's wrong? I'd appreciate if someone help me Thanx

  • How to do a count on one column with a group by on another column

    Hello there I have one report that I need to generate. On that report there are several measure columns. Column A is number of calls, column B is type of calls.. Now I need a new column which is column C, and C need to be a count (A) group by B.. I k

  • Custom Warehouse report

    Hi, I would like to know how to create a report on the following criteria: 1. User prompted to enter(from list of warehouses) warehouse name. Multiple warehouses can be selected. 2. Based on the warehouse, the warehouse name, and its details are refl

  • Lightbox 2 problem

    Hi Just trying to get lightbox to work. I'm using CS3. I did a trial page and got lightbox working easily. It was just a blank page with one thumbnail on and a larger image to display. . But I tried using lightbox on an existing more complex page and

  • Error in SDK

    Hi Friends, I am trying to create algorithm which will return output to softparameter of type characteristic type.when i deployed the changes made to the algorithm and reployed using deploy.xml ,i am unable to find changes reflected. I tried deployme