Form - how to auto update details & check another table as well

I have two tables : empinfo(all basic details of emp) and leaves(empid,empname,date etc)
I have a clanedar that displays the leave info and when i click on the date it loads a form that makes new entry to the leaves table ....
There are two things it should do : 1. autp populate details on the form when they enter empid i.e empname,email etc should be picked from main table and load on form (how do I achieve this??? ) sql...pl/sql...any guidance will be appreciated.
2. when the emp has entered a leave it should check on another table for any shortage of particular skills(table has skill,empname,empid,min_emp_skil (number) )
how or what should be done to check this details and action accordingly.
Please help.

Start here http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/bldapp_frm.htm#BCEBEDIC
By the time you understand create the form on a table, you will automatically learn how to add validations on that page or even a plsql process before the actual form DML runs
Thanks

Similar Messages

  • Portal Master-detail form how to auto assign detail record sequence number

    Portal Master-detail form how to auto assign detail record sequence number.Please help me?

    You can just read the following section
    Can I specify a sequence number generator as the default value for a form column?
    Yes. Enter the following in the "default value" field for the column:
    #<schema name>.<sequence name>.nextval
    where <schema name> is the name of the schema containing the sequence, and <sequence name> is the name of the sequence. The entry is preceded by a "#".
    For example, if the schema name is "SCOTT", and the sequence name is "CUSTOMER_SEQ", the default value entry is:
    #SCOTT.CUSTOMER_SEQ.NEXTVAL
    same way you can do for master - detail form.
    for more information on forms please refer the following URL.
    http://otn.oracle.com/products/iportal/htdocs/portal_faq.htm#BuildingApplications
    hope it helps.

  • How can i update rows  in a table based on a match from a select query

    Hello
    How can i update rows in a table based on a match from a select query fron two other tables with a update using sqlplus ?
    Thanks Glenn
    table1
    attribute1 varchar2 (10)
    attribute2 varchar2 (10)
    processed varchar2 (10)
    table2
    attribute1 varchar2 (10)
    table3
    attribute2 varchar2 (10)
    An example:
    set table1.processed = "Y"
    where (table1.attribute1 = table2.attribute1)
    and (table1.attribute2 = table3.attribute2)

    Hi,
    Etbin wrote:
    Hi, Frank
    taking nulls into account, what if some attributes are null ;) then the query should look like
    NOT TESTED !
    update table1 t1
    set processed = 'Y'
    where exists(select null
    from table2
    where lnnvl(attribute1 != t1.attribute1)
    and exists(select null
    from table3
    where lnnvl(attribute2 != t1.attribute2)
    and processed != 'Y'Regards
    EtbinYes, you could do that. OP specifically requested something else:
    wgdoig wrote:
    set table1.processed = "Y"
    where (table1.attribute1 = table2.attribute1)
    and (table1.attribute2 = table3.attribute2)This WHERE clause won't be TRUE if any of the 4 attribute columns are NULL. It's debatable about what should be done when those columns are NULL.
    But there is no argument about what needs to be done when processed is NULL.
    OP didn't specifically say that the UPDATEshould or shouldn't be done on rows where processed was already 'Y'. You (quite rightly) introduced a condition that would prevent redo from being generated and triggers from firing unnecessarily; I'm just saying that we have to be careful that the same condition doesn't keep the row from being UPDATEd when it is necessary.

  • How to view index details of another user

    I can't view index detail of another schema in sql developer release 5.
    I'm doing this steps :
    1) I'm connecting with user lopes
    2) Open folder of user mrt
    3) Open table folder
    4) select a table xpto. At this point is openeda a frame details of table xpto. In this frame several information are displayed, when I select Indexes nothing is showed, but this table has a lot of indexes.
    How should I make this indexes information visible ? I think this form is using user_indexes.
    Thanks in advance.
    Danilo

    Who owns the indexes?
    I have cases where I am logged on as a user who has access to a table owned by another user, but indexes created and owned by the connected user (so would obviously be able to see them) are not displayed on the indexes tab for the table.
    I get the same problem with triggers owned by the connected user and dependencies to objects owned by the connected user not displaying on the table tab for tables owned by a different user.
    Presumably, rather than excluding indexes, triggers or dependencies owned by the current user, the details are being restricted to objects owned by the table owner.

  • How to Auto Update an air app created in flash cs5

    i have an application that needs to check auto update everytime it starts. but i have only found how to do it in fleash builder. sin ce im working in flash professional cs5 I DONT KNOW WHAT TO DO
    any heads up?

    The same techniques work in Flash/ActionScript. See http://help.adobe.com/en_US/air/build/WS5b3ccc516d4fbf351e63e3d118666ade46-7ff2.html. Although some of the examples are written in MXML, the relevant code is all ActionScript.

  • Auto Update only Checked Songs

    Is there a way to limit my Auto Updating option to only the songs that have a check next to it, or do i have to crop these songs in a separate created playlist?
    Gateway Desktop   Windows XP  

    Connect your iPod, when it appears in iTunes go to Preferences>iPod>Music and tick the box "only update checked songs"

  • How to (auto)-update Adobe CS4

    A few days ago, Adobe CS4 was installed on my new Dell XPS computer (Windows 7).
    Since then, there was no autoupdate of any of CS programs.   I tried to update manually (Help>updagte) from CS 4.
    I got the error (see the attachment).   I got the same error when I tried to manually update of Acrobat.
    Please help me how to go around this problem  Thanks. In

    hummer777 wrote:
    BTW, I now realized that I got to download MANUALLY tons of updated files.
    I am now tired of downloading further.
    I  decided to wait until Adobe fixes the autoupdating issue.
    I'm sorry, I should have said you only need to download the essential updates like Photoshop 11.0.1 and Acrobat etc.
    You may have a long wait for the auto updater to be fixed

  • How to auto update date column without using trigger

    Hi,
    How to write below MYSQL query in Oracle 10g :
    CREATE TABLE example_timestamp (
    Id number(10) NOT NULL PRIMARY KEY,
    Data VARCHAR(100),
         Date_time TIMESTAMP DEFAULT current_timestamp on update current_timestamp
    I need to auto update the Date_Time column without using trigger when ever i update a record.
    Example shown below is from MYSQL. I want to perform the below steps in ORACLE to auto update Date_Time column.
    mysql> INSERT INTO example_timestamp (data)
    VALUES ('The time of creation is:');
    mysql> SELECT * FROM example_timestamp;
    | id | data | Date_Time |
    | 1 | The time of creation is: | 2012-06-28 12:37:22 |
    mysql> UPDATE example_timestamp
    SET data='The current timestamp is: '
    WHERE id=1;
    mysql> SELECT * FROM example_timestamp;
    | id | data | Date_Time |
    | 1 | The current timestamp is: | 2012-06-28 12:38:55 |
    Regards,
    Yogesh.

    Is there no functionality in oracle to auto update date column without using trigger??
    I dont want to update the date column in UPDATE statement.
    The date column should automatically get updated when ever i execute an Update statement.

  • How to auto update LOV in Crystal Parameter inherent from SAP MDX query

    Hi,
    I'm using SAP BW MDX as my data source. How do I auto update the LOV in the parameters such that LOVs are always updated from the source.
    I am using Crystal Report 2008.
    Thank you.
    Rose

    Hi
    Please refer to BusinessObjects XI Integration for SAP Solutions User's Guide from [here|http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_bip_sap_user_en.pdf]
    Hope this helps!!!
    Regards
    Sourashree

  • How to auto update JTable during runtime

    Can anyone tell me how to dynamically update a JTable during execution, what i mean isin the I want the table to automatically add new rows as i enter new data.
    if I pass the object array reference of the TableModel to a method, then add more objects to the array and the revalidate the JTable will it work, or how do I do it ? Thanks

    Your table model should extend AbstractTableModel. And when (for example) it adds a row to whatever data structure is supporting the model, it should call fireTableRowsInserted... you can find out more about those methods in the API documentation. You don't need to revalidate or invalidate or validate the JTable, at least I don't have that in my code anywhere.

  • How to auto update a section on all pages.

    Hi,
    I have a section on the right hand side of a website I'm developing containing txt and it's controlled by CSS which also appears on all the other pages, so what I want to be able to do is when I add a new bit of text to it on one page it will auto update with the new txt on all the other pages to save me copying and pasting the same bit of txt on all the pages.
    Hope that made sense and hope someone can help.
    Thanks

    You can use Dreamweaver Templates or use serverside include.   (SSI)
    Using the template function within Dreamweaver is a good way to go if it's a small site . .
    For larger sites then serverside includes would be more practical and earlier for maintenance purposes.
    Templates:
    You create a master template page, you declare which areas will be the same for every page, (non-editable regions)  and then declare an area that will change on every page (the content area) , these are editable regions.
    Once you create the template and save it, you are then able to create 'child' pages from this template  - as many as you like  :-)  If you every need to make a change to the menu or the footer or the header, change it in the master template, save it and the changes will flow through to the child pages created from the template.
    Using DW Templates:
    http://www.adobe.com/devnet/dreamweaver/templates.html
    http://www.adobe.com/devnet/dreamweaver/articles/dw_templates.html
    The other option is to use Server Side Includes (SSI)
    A bit more about SSIs here:
    http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WSc78c5058ca073340dcda9110b1f 693f21-7b6ca.html
    http://bignosebird.com/ssi.shtml
    One major difference between using Templates and SSI?
    When you make a change to a template page, you will need to re-upload all the pages to the server that were changed - may become very tedious if it is a very large site.
    With using SSI, you make a change to one file and only have to upload the one file and all pages on the server will be update accordingly.
    When to use Templates, Library Items & SSIs -
    http://www.adobe.com/devnet/dreamweaver/articles/ssi_lbi_template.html
    Nadia
    Adobe® Community Expert : Dreamweaver
    Unique CSS Templates | Tutorials | SEO Articles
    http://www.DreamweaverResources.com
    Web Design & Development
    http://www.perrelink.com.au
    http://twitter.com/nadiap

  • How stop auto update before you insert the ipod

    This seems to be a real quandary. sometimes you want to insert your ipod without the whole updating thing taking over you ipod. but I don't think you can change that setting unless the ipod in plugged into computer, and if setting is auto update it just starts. any ideas appreciated. thanks.

    thanks Niel, but before I proceed, what exactly happens when you do that, does the ipod not do the auto update? and you can access or update manually?
    also, anyway to stop the updating once it starts? thanks

  • Master Detail Form with Report - Referring a column in another table

    I have master detail form with a report option. The master table has a column that also references a look up table.
    When the report is displayed the lookup column id is displayed. Rather I want to get the look-up value from a lookup table
    and display in the report.
    When I see the report region Query definition , it just has the columns to add/remove only from the master table.
    Could you pls help me with this regard.
    Eg :
    Dept Table
    dept_id
    dept_name
    location_id
    Employee Table
    employee_id
    employee_name
    dept_id
    location
    location_id_id
    location_name
    Master is Dept, Detail is dept and lookup table is location.

    Simply add the lookup table to the FROM clause and join its PK with the FK in the master table in your query. That's basic SQL, and you definitely must get a good grasp of SQL to do more than very basic work in APEX.
    For a good example, please see http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10498/build_app.htm#BCEBJJGB
    While you're at it, read and implement the tasks outlined in the 2 Day + Application Express Developer's Guide - http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10498/toc.htm. After that, read the "Oracle Application Express 3.0-- Building a Functional Application" OBE in http://www.oracle.com/technology/obe/apex/obe30/apexdev30.htm - great stuff.
    Georger

  • How can i update more than one table at a time?

    i would like to update more than one table at a time. In Java Studio creator2 how can i do table updation?

    Hi,
    Please go through the below thread might be of help to you.
    http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=51839
    RK

  • How to insert a record in another table

    Hi,
    Can you please help with this urgent problem.
    Suppose my data model is
    SELECT id
    FROM emp
    WHERE salary < 10000
    I would like to create a record in another table for EACH emp.id returned, I wonder which trigger is appropriate to place the INSERT statement?
    And I DON'T want to do like this
    SELECT id, Create_Record(:id)where Create_Record is a function.
    Hope the information here is sufficient.
    Thanks

    Hien
    I had a similar requirement to you and put the code on a push button. In my case the reports are being run interactively to the screen and then printed, and I have no way to know whether the report had actually been printed, so we rely on the user pressing the button. Of course there is a danger that the user forgets to press the button, but in our situation that would not be disasterous. Whatever method is used, I don't think there is any way to be sure that it has actually come out of the printer.

Maybe you are looking for