Guys, How do I write a trigger to call Calulator /Notepad???

How do I write a trigger to call Calulator /Notepad???
how do i make a button to call the notepad editor in windows and calculator?
of course i know about making the button, i want the code behind the trigger....

Kid, while you are providing more information on exactly what you are trying to do please make if clear if you are asking about a database table trigger or a Forms trigger?
As a general rule I would think an action such as calling a Windows specific feature should be done external to the database via the application.
HTH -- Mark D Powell --

Similar Messages

  • How can i write the trigger for Global Temporary Table

    Hi Grus,
    How can i write the trigger for Global Temporary Table.
    I was created the GTT with trigger using the below script .
    CREATE GLOBAL TEMPORARY TABLE GLOBAL_TEMP
    EMP_C_NAME VARCHAR2(20 BYTE)
    ON COMMIT PRESERVE ROWS;
    CREATE OR REPLACE TRIGGER TRI_GLOBAL_TEMP
    BEFORE DELETE OR UPDATE OR INSERT
    ON GLOBAL_TEMP
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    BEGIN
    INSERT INTO EMPNAME VALUES (:OLD.EMP_C_NAME);
    END;
    trigger was create successfully, but the wouldn't insert into to EMPNAME Table..
    Please guide whether am correct or not? if not kindly give a correct syntax with example
    Thanks in Advance,
    Arun M M

    BEGIN
    INSERT INTO EMPNAME VALUES (:OLD.EMP_C_NAME);
    END;
    you are referencing old value in insert stmt.
    BEGIN
    INSERT INTO EMPNAME VALUES (:new.EMP_C_NAME);
    END;then run ur application it works fine...
    CREATE GLOBAL TEMPORARY TABLE GLOBAL_TEMP
    EMP_C_NAME VARCHAR2(20 BYTE)
    ON COMMIT PRESERVE ROWS;
    CREATE OR REPLACE TRIGGER TRI_GLOBAL_TEMP
    BEFORE DELETE OR UPDATE OR INSERT
    ON GLOBAL_TEMP
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    BEGIN
    dbms_output.put_line(:OLD.EMP_C_NAME||'yahoo');
    INSERT INTO EMPNAME VALUES (:new.EMP_C_NAME);
    dbms_output.put_line(:OLD.EMP_C_NAME);
    END;
    create table EMPNAME as select * from GLOBAL_TEMP where 1=2
    insert into GLOBAL_TEMP values('fgfdgd');
    commit;
    select * from GLOBAL_TEMP;
    select * from EMPNAME;
    output:
    1 rows inserted
    commit succeeded.
    EMP_C_NAME          
    fgfdgd              
    1 rows selected
    EMP_C_NAME          
    fgfdgd              
    1 rows selectedgot it Arun
    Edited by: OraclePLSQL on Dec 28, 2010 6:07 PM

  • How to Write a trigger to hold session data

    Hi Everyone,
    There are 4 Weblogic Servers which are connected to the database concurrently. In the database I have Application Users table "USERS". When a user is logged to the application let us say userA(from "USERS" table) is logged into the application, whenever that same userA logged into the application from other Weblogic server(other system) it should not allow to login into the application. Is it possible to write a trigger for this. If possible, Can any body suggest how to write a trigger to hold that UserA data into one temporary table as long as that userA is active and removes the data from temporary table when userA logged off (OR) as well as that Weblogic server is goes down.
    Thanks in advance.

    Hi Justin,
    First Thank you very much to all of you.
    1. Yes Application Users are authenticated only once,
    that to at the time of login to the Application.
    2. We are not running any script that informing the
    message like "connections
    from the downed server should be reset". Do you
    you think is it suggestable.
    It's not mandatory to use triggers only.Can we
    achieve this by maintaining any temporary table.
    I have one idea is that, Lets create a table name
    e "App_Users_Session_Data(User_Id,Is_Active)"
    If "User A" logins into the application then User_Id
    = 1A and Is_Active = 'T' will be entered
    automatically into the table
    "App_Users_Session_Data". When same "UserA" logins
    from other Weblogic Server then Application first
    check this table and informing that "UserA" already
    logins and is active.
    Whenever "UserA" loggsoff then this entry will be
    automatically deleted.
    My doubt is "UserA" logins successfully into the
    application and corresponding user entry is there in
    "App_Users_Session_Data". If Weblogic Server goes
    down from where this UserA logins, This entry will
    not be deleted. If this entry is still there then the
    same UserA should not login into the application from
    the same Weblogic server(which is up again). My doubt
    is how to remove this entry automatically when
    Weblogic server goes down. Can we achieve this by any
    other way. If possible can u give some guidelines
    thats enough for me.
    Thank you everyone
    SankarHi,
    First off all and as I undeerstood you can change your application.
    1- A table say weblogic_servers have to be created:
    Several scenarios are possibles. If you want you can have a row per weblogic server in this table with what you want as identifier. Any way this table can have a column (sid for example) which identifies the weblogic database session. This can be managed by logon and logoff triggers for the related database user. The logoff trigger for example deletes all lines in App_users_Sessions_Data (see below) related to the same session as the weblogic server and puts the session sid in weblogic_servers to NULL.
    2- Change the table App_Users_Session_Data:
    You have to add a column (sid for example) linking the app user to the database session of the weblogic server. When a user connects, you can check if the databse session is always there and decide accordingly.
    A good idea in my opinion is to centralize your logic by putting it in an INSERT trigger on App_Users_Session_Data.

  • How to create conditional update trigger in sql server

    How to create conditional update trigger in sql server

    You cant create a conditional update trigger. Once you create an update trigger it will get called for every update action. However you could write logic inside it to make it do your activity based on your condition using IF condition statement
    Say for example if you've table with 6 columns and you want some logic to be implemented on update trigger only if col3 and col5 are participating in update operation you can write trigger like this
    CREATE TRIGGER Trg_TableName_Upd
    ON TableName
    FOR UPDATE
    AS
    BEGIN
    IF UPDATE(Col3) OR UPDATE (Col5)
    BEGIN
    ....your actual logic here
    END
    END
    UPDATE() function will check if column was involved in update operation and returns a boolean result
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to create a User Trigger?

    This trigger must be fired every hour for a user called SCOTT. And inside this trigger I want to write in this way (Trigger is on SCOTT/TIGER@DB1):
    connect scott/tiger@db2;
    drop table EMP;
    connect scott/tiger@db1;
    copy form scott/tiger@db1 tp scott/tiger@db2 create EMP using select * from EMP;
    How can I complete this trigger? Thank you.
    null

    you can fire these statements using "DBMS_JOB". You can find more details in "Managing Jobs"
    Cheers
    r@m@

  • How do you write a file involving the changes in application engine?

    Hi Guys,
    I have a requirement in app engine.
    I have to update a table based on the changes occured in other tables.
    I have to show the user old value and new updated value in the log file how do I write a file for below fields?
    Old Value: Name:Rock|SSN:0000000|Address:675478
    New Value    Name: Roger|SSN:0000000|Address:908765
    Thanks and regards,

    Hi ,
    My Requirement is Quite different here.
    I cannot use CI.i have to implement in app engine.
    Below explained:
    I have data coming from abc table and populating into xyz table.
    So if any field in abc gets changed which is extracted and populated in the xyz table.I have to show the old field value of xyz and the new field values of abc which I am going to insert into the xyz.
    My log file should have both the values.
    how do I write both the values and update it:
    say I have value from abc.id=12 and xyz.id=12
    when we update abc.id=13 and xyz.id=14
    I have to print
    old record details:
    id=12
    New record details:
    id=13
    somerthing of above sort
    Thanks and Regards

  • How do you write UNDO for a text item?? examples? or a REDO??

    How do you write UNDO for a text item?? examples? or a REDO??
    I created a pop-up menu with CUT, COPY, PASTE, UNDO, CLEAR for my text items.
    Using MAGIC menu type works great but there is no MAGIC for UNDO or REDO.....
    How do you write UNDO for a text item?? examples? or a REDO??
    I have Oracle Forms 6i...
    Lets say I highlight all the text in the text item, and start typing over it... then I realize OH NO it is the wrong text field...
    Now I want to UNDO the typing and get back to the previous text.
    I'd use the initial value that was populate right? How do I access that if that is correct?
    Thanks, Bill

    You can use;
    <ITEM> := Get_Item_Property(<ITEM>,DATABASE_VALUE);
    Or you will have to write a pre-text-item trigger;
    PRE-TEXT-ITEM:
    :CTRL.CURRENT_VAL := :<BLOCK>.<ITEM>
    MENU (PL/SQL):
    :<BLOCK>.<ITEM> := :CTRL.CURRENT_VAL;
    You may also want to set the item property back to ITEM_IS_VALID so that item validation does not fire again.

  • How I can write a program with pythagoras?

    I have a problem. I�m a 14-kears old Java-beginner and I�ll write a program for school ( I will get a better mark when i write the program). This programm should multiply 3 letters 30-times. But how I can write the damn thing? I habe no idea, please help me!
    Thnax a lot Devproger
    (Sorry for the bad English but I am a German Student who is still learning this language)

    I will only have a better mark in Maths... and wirte this Programm...Yes, you'll get a better grade by writing that program. Start programming then!
    If you run into problems, post the code that's not working here, and tell us what it is that's not working.
    When posting code, read this: http://forum.java.sun.com/help.jspa?sec=formatting
    Good luck.

  • HT1918 hee guys how do u delete a creditcard from your apple id? in the summer a friend of mine connected his own creditcard details to my apple id now i want to disconnect that again but i have no idea how? i just want my own apple id without a creditcar

    hee guys how do u delete a creditcard from your apple id? in the summer a friend of mine connected his own creditcard details to my apple id now i want to disconnect that again but i have no idea how? i just want my own apple id without a creditcard connected to it

    I own the movies and I want them to stay in my iTunes library basically forever.
    But in both cases the file name no longer shows in the movie list, so I don't know how to re-download it from the Cloud.
    iTunes prefs > Store > Show iTunes in the Cloud purchases.
    This will show all your iTunes purchases in your library with a cloud icon down arrow. Click the icon to redownload or click on Play to stream without downloading.
    Also see this , -> Download past purchases
    and techncially, you don't "own" the movie, You simply have a license to use it.
    Yet the first thing iTunes does when you hit the delete key is tell you that it will remove the movie forever from all devices and the library.
    Actually, no it does not tell you that.
    FYI: You should keep copies of all yoru iTnue spurahses as the labels/movie studios/copyright owners can pull their product at anytime and it won't be available to redownload.
    Suggestions here -> http://www.apple.com/feedback/

  • HI GUYS, HOW CAN I REGISTER THE ADOBE CREATIVE CLOUD ON MY MACBOOK AFTER REGISTERING IT ON MY IMAC THX TO ALL

    HI GUYS, HOW CAN I REGISTER THE ADOBE CREATIVE CLOUD ON MY MACBOOK AFTER REGISTERING IT ON MY IMAC THX TO ALL

    I am not clear on what you mean by "register" but if you mean you want to install it on another machine then you just need to install it the same way you did for the first machine.

  • How can I write a program that compiles without warnings?

    I tried the following with the 1.5 beta-compiler (build 28; I think):
    class Y {
         public static final class Pair<X,Y> {
           private X fst;
           private Y snd;
           public Pair(X fst, Y snd) {this.fst=fst; this.snd=snd;}
           public X getFirst() { return fst; }
           public Y getSecond() { return snd; }
           public String toString() { return "("+fst+","+snd+")"; }
      public static void main(String... args) {
         Pair[] pairArr = new Pair[10];              // supposed to be an array of Pair<Integer,Integer>
         for (int i=0; i<pairArr.length; i++)
             pairArr[i] = new Pair<Integer,Integer>(i,i);
         for (int i=0; i<pairArr.length; i++) {
             Pair<Integer,Integer> p = pairArr; // unchecked warning
         System.out.println(p);
         Integer first = p.getFirst();
         Integer second = p.getSecond();
    // ... more stuff ...
    It turns out that I get an unchecked warning when I extract an element from the array of pairs. Okay, that's fine. How can I avoid the warning? I had expected that an explicit cast would help.
      Pair<Integer,Integer> p = (Pair<Integer,Integer> )pairArr;
    With a cast I'm telling the compiler: "I _know_ what I'm doing; please trust me." But the compiler still issues a warning.
    How can I write a warning-free program in this case? The only thing I can think of, is not using the parameterized type Pair in its parameterized form. But it's not the idea of Java Generics that I refrain from using parameterized types. What am I missing?

    It turns out that I get an unchecked warning when I
    extract an element from the array of pairs. Okay,
    that's fine. How can I avoid the warning? I had
    expected that an explicit cast would help.
    Pair<Integer,Integer> p = (Pair<Integer,Integer>
    )pairArr;
    With a cast I'm telling the compiler: "I _know_ what
    I'm doing; please trust me."  But the compiler still
    issues a warning.  Yes, but at least you were able to change the warning from "unchecked assignment" to "unchecked cast" which is a little shorter ;-)
    Seriously , since arrays of generic types are disallowed, there is probably no way to get rid of these warnings - which makes a strong point for eliminating "unchecked" warnings altogether (see the other thread "selectively suppressing compiler warnings")
    Cheerio,
    Gernot

  • Can anyone help me pls. , I deleted an app on my Ipod Touch, and It was deleted but when I connected my device on my computer and went to iTune "apps" , I saw the app I deleted and it says "install" .  Guys, how will I delete it permanently? Pls help me.

    Can anyone help me pls. , I deleted an app on my Ipod Touch, and It was deleted but when I connected my device on my computer and went to iTunes>"apps" , I still saw the app I deleted and it says "install" .  Guys, how will I delete it permanently? May you Pls help me. Thanks

    Just don't click install

  • How can I write a code that triggers when clicking on Save button

    I want to hide certain fields inside my tracking list, if the login user is not part of the “Managers” group.
    To do so I want to add the following Page-load code inside a web part :-
    using (SPSite site = new SPSite(SPContext.Current.Site.Url))
    using (SPWeb web = site.OpenWeb())
    {SPGroup group = site.Groups["Managers"];
    bool isUser = site.IsCurrentUserMemberOfGroup(group.ID);
    if (isUser)
    {textbox.Visible=false;}}
    And the following custom code that triggers when saving the form :-
    using (SPSite site = new SPSite(SPContext.Current.Site.Url))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists["ListName"];web.AllowUnsafeUpdates = true;
    SPListItem item = list.Items[SPContext.Current.ListItem.UniqueId];
    txtTitle.Text = item["Title"] as string;item.Update();web.AllowUnsafeUpdates = false;
    But I am not sure where exactly I should add the custom code for the save button ? I tried writing it inside the Oninit method , but I got many errors as shown below:-
    So can anyone advice how i should write the web part to include the Page load & the custom save button code?
    second question in general is my above approach considered valid , i mean to hide/show list columns using web parts ?

    Hi,
    According to your post, my understanding is that you want to hide/show list columns based on specify the permission for Users, SharePoint Groups or Active Directory Groups.
    Here is a solution from CodePlex for your reference:
    SharePoint 2013 Column & View Permission
    https://sp2013columnpermission.codeplex.com/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How can I Write a sine wave in an Access-fil​e?

    I measure a sine wave in LabView 6i. How can I write the datas automatically to an Acces-file, at the same time?
    In my program, I managed it with Execute SQL.vi, I change a number in a SQL statement(String) -> after this I push start and then it writes the statement in the Access-file.
    The problem is, it writes only one data per measurement in the file. How can I write all datas in the Access-file and measure the wave at the same time?
    Thanks for help!
    Attachments:
    getwave.vi ‏49 KB

    On the waveform palette, you will find a "to components" vi that you can break out the array of the waveform. You can then, using a for loop write all of the values from the waveform.
    Better yet, there are examples in the database toolkit manual on pages 3-13 to 3-15 that deal with reading arrays (and even has a waveform example).
    Good luck!

  • How to over write VBBE data when Delivery is created if at the time of SO creation stock blocking is there

    Hi,
    I want to know how to over write VBBE data after delivery creation if stock blocking is there at the time of SO creation.
    That means I want my confirmed delivery quantity to over write the SO quantity in VBBE table after delivery creation. Please help me with your valuable suggestions...
    Thanks
    Tanmoy

    Hi Tanmoy,
    This should happen automatically. The VBBE entry should reflect the quantity of the delivery requirement. Is it possible for you to post screenshots illustrating exactly what is happening on your system?

Maybe you are looking for

  • ITunes refuses to 'see' external drive

    All my tunes are on an external LaCie 120GB mobile HDD as they have been for a couple of years and all has worked well. Now for some reason iTunes refuses to 'see' the iTunes Folder on this drive it doesn't even seem to see the drive at all. The driv

  • Swapping Controller cards

    Hello, We have an orginal Xserve RAID driving 14 drives. we can not see one side of the raid we think it may be the controller card. Is it possible to swap these cards without effecting the raid set up and data? Also, where is the raid information st

  • Reg:Vendor Evaluation

    Hello Experts, I have small doubt in vendor evaluation; we are not purchased any material from vendor “X”. But when I run the evaluation transaction (ME61 and ME63) it will give the some score. My question is why it is giving score? It should be a 0.

  • Error saving the form

    We have a user who is unable to save her progress when filling out the form. She successfully saved it the first time and received a link but when she hits save now, it gives her an error message saying the form could not be saved. How can this be fi

  • Trace File Name

    In a R12 Dev instance, we have trace files generated after turning on the "Concurrent: Allow Debugging" option at the user level (ID 301372.1). Is there a way to identify the trace file names? From prior runs, it seems that the trace file name is for