How to insert into 2 tables from the same page (with one button  link)

Hi,
I have the following 2 tables....
Employees
emp_id number not null
name varchar2(30) not null
email varchar2(50)
hire_date date
dept_id number
PK = emp_id
FK = dept_id
Notes
note_id number not null
added_on date not null
added_by varchar2(30) not null
note varchar2(4000)
emp_id number not null
PK = note_id
FK = emp_id
I want to do an insert into both tables via the application and also via the same page (with one button link). I have made a form to add an employee with an add button - adding an employee is no problem.
Now, on the same page, I have added a html text area in another region, where the user can write a note. But how do I get the note to insert into the Notes table when the user clicks the add button?
In other words, when the user clicks 'add', the employee information should be inserted into the Employees table and the note should be inserted into the Notes table.
How do I go about doing this?
Thanks.

Hi,
These are my After Submit Processes...
After Submit
30     Process Row of NOTES     Automatic Row Processing (DML)     Unconditional
30     Process Row of EMPLOYEES     Automatic Row Processing (DML)     Unconditional
40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
50     Insert into Tables     PL/SQL anonymous block     Conditional
My pl/sql code is the same as posted earlier.
Upon inserting data into the forms and clicking the add button, I get this error...
ORA-06550: line 1, column 102: PL/SQL: ORA-00904: "NOTES": invalid identifier ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
     Error      Unable to process row of table EMPLOYEES.
Is there something wrong with the pl/sql code or is it something else?

Similar Messages

  • How to insert into table from a xml with XDE for java?

    want to insert into the oracle tables from the xml with XDE for java, some sample better. thank you.

    XML Document may be stored in a SQL database with XML SQL Utility.
    http://download-west.oracle.com/docs/cd/B13789_01/appdev.101/b10794/adx08xsu.htm#i1008168
    XML Document may be stored in a SQL database with Oracle XML DB.
    http://download-west.oracle.com/docs/cd/B13789_01/appdev.101/b10790/xdb03usg.htm#CEGFECFH

  • How to insert into table from an Datatable ?

    Hi Friend,
    I have a datatable that is created at some point in my SSIS as an object.
    I need to insert the data into a sql table, how should I do that ?
    I have this:
            Dim oleDA As New OleDbDataAdapter
            Dim dt As New DataTable
            Dim col As DataColumn
            Dim row As DataRow
            Dim sMsg As String
            oleDA.Fill(dt, Dts.Variables("history").Value
    and want to insert into a table in a SQL DB
            Dim sqlCon As New SqlClient.SqlConnection("server=Myserver\SQL2008R2;database=MyDB;Integrated Security=SSPI")
            Dim sqlreader As SqlClient.SqlDataReader
            sqlCon.Open()
    Thanks in advance,
    Pat
    Patrick Alexander

    Convert it to a ADO .Net recordset and store it in a object variable in SSIS.
    Then you can use it to populate the table using foreach loop with ado enumerator
    http://www.codeproject.com/Articles/10503/Simplest-code-to-convert-an-ADO-NET-DataTable-to-a
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to insert an username from the login page to the form page

    Hi friends,
    I created one database apex application in which it consist of three pages...
    1)login page----->1
    2)form page along with report page(in same page) i.e. i created a report region within a form region
    3)form page(this page appears when i click the edit option in my previous report page
    (i.e.) my 3rd form page depends upon my 2nd report page, as soon after i click the edit option of each and every row in my report which is in 2nd page it has to go to the corresponding 3rd form page for making an updations in each and every row...
    I have created my above listed applications....
    But the scenario for me is since the login page contains two fields, that is
    user name:
    password:
    so i will be giving my name in the user name and also respective PW for accessing to my 2nd and 3rd page in my application...
    Since my 2nd form page consist of following fields like
    *) user name---------->
    *) assigned to
    *) status
    *) start date
    *) priority
    so my requirement over here is soon after i logging into my application through the user name and PW into second page, while coming to the second form page
    my user name field in my 2nd form page has to get inserted automatically with the user name that i have entered in the login page...
    example: my user_name in login page is :harry
    after going into the second form page with the user name "harry"
    the field of my 2nd form page "username" has to get automatically generated with the name "harry"
    Whether it is possible friends to do this in my application....i doesn't have any idea of it...Kindly help me friends to solve my scenario...please explain each and every steps in detailed manner...
    Since the user_name: harry, is of I got from the admin side as a developer for the workspace......
    Thanks in advance
    Harry....

    Hi Karthik,
    I made the following changes that you said, but there is just a one change in it...
    You told these changes
    Source Used: always, replacing any existing values in session state.
    Source Type: Database column
    Source value or expression: (respective column name)
    and in Default: u need to give-----> &APP_USER.(exactly the same including the full stop)....
    Thanks for your help Patel....I just worked and inserting for me in table of the corresponding user name who login.....

  • For the same table in the same page, how to use 2 different forms (simple and tabular)?

    Hello! How I can be on the same page with the same table insert and update operations using 2 different forms (single form and tabular form)
    I have little knowledge of Apex, but I know PLSQL
    Thanks
    Ginger
    Ecuador

    Thank you Gramps.  It took some time, but I've got it working now.  I had to re-do all the user authentication actions from scratch for one of the databases, but it's finally behaving itself now.  I appreciate you pointing me in the right direction.

  • How to insert  two queries in the same workbook in new BI 7.0 Bex web analy

    Hi
    Can you please advise how to insert multiple queries in the same workbook in BI 7.0 web analyser.
    Sarah

    Hi,
    You need to switch to design mode (BEx Analyser Menu - Design Toolbar - Design Mode). For each query that you want to embed, insert an analysis grid item in the workbook. Link each analysis grid to its corresponding data provider (query).
    Hope this helps.
    Regards,
    Rajkandula

  • How do I save documents from the new Pages into a Word Document

    How do I save documents from the new Pages into a Word Document?

    Thank you so much - so simple!  I had been using the 'share' option (worked in old Pages) and only had icloud or email as options.  I have to attach word documents to emails to send to work. I don't want to use icloud because it's too public and I don't trust it.  Also, you have to be able to access the internet and I need word documents on my USB stick for work where there's no internet.
    I love my Mac but I do wish Apple would remember those of us living in less-than-perfect computer-land.
    Thanks again
    Lindsay

  • How do I duplicate or copy a table onto the same page?

    In Pages, how do I duplicate or copy a table onto the same page?

    option drag duplicates anything or copy and paste
    Peter

  • How can I copy tables from Numbers to Pages without formula?

    hi everyone
    i need help
    How can I copy tables from Numbers to Pages without formula in the cells?

    Ok... I see your problem... when pasting into Pages, the formulas from Numbers are included. Perhaps this is really more of a Pages question (in which case I'm far from expert). A couple of ideas:
    • In Pages, try "Edit"/"Paste and Match Style", which may insert tab delimited cell values (no formulas). Then, if you want the table format back, select these newly pasted tabbed values and use Page's "Format"/"Table"/"Convert Text to Table"/
    • In Numbers, before copying, make a temporary table of the plain values first, then copy and paste that into Pages. To do this, select the range of cells you desire in the Numbers and "Edit"/"Copy". Then "Edit"/"Deselect All" and "Edit"/"Paste Values" and "Edit"/"Cut". Now just a table of values is on the clipboard and you can head over to Pages to paste.

  • Multiple details table on the same page

    Newbi to APEX. Can I have muliple details table for update/insert in tabular format on the same page with the same master? Thanks!

    In the meantime, I can answer to your questions:
    · Why does JHeadstart not make use of the UIX-Struts integration (see Chapter 15 of the UIX developer’s Guide)?This has been done to allow the same page to be run both with Struts and MVC Framework, without needing to change the page. Using the UIX-Struts integration would have made the pages 'controller aware'.
    · How do you specify which columns/attributes in a Table Layout are sortable?As far as generation is concerned, you can only specify the whole table to be sortable. In case of UIX you can post-gen modify the <sortableHeader> tag of each column separately. In case of JSP you can remove the <a href> tag for each column that you do not want to sort on.
    Jan Kettenis
    JHeadstart Team

  • 2 single selection tables on the same page

    I used the following great article:
    http://blogs.sun.com/roller/page/winston?entry=single_selectable_row_table_component
    to create a singlerow select table. But I want 2 of these tables on the same page of my tabset component.
    On my page i have:
    private TableSelectPhaseListener tablePhaseListener = new TableSelectPhaseListener();
    public void setSelected(Object object) {
    RowKey rowKey = (RowKey)getValue("#{currentRow.tableRow}");
    if (rowKey != null) {
    tablePhaseListener.setSelected(rowKey, object);
    public Object getSelected(){
    RowKey rowKey = (RowKey)getValue("#{currentRow.tableRow}");
    return tablePhaseListener.getSelected(rowKey);
    public Object getSelectedValue() {
    RowKey rowKey = (RowKey)getValue("#{currentRow.tableRow}");
    return (rowKey != null) ? rowKey.getRowId() : null;
    public boolean getSelectedState() {
    RowKey rowKey = (RowKey)getValue("#{currentRow.tableRow}");
    return tablePhaseListener.isSelected(rowKey);
    but when I added the second table, I had to add the duplicate the above 4 methods, changing currentRow to currentRow2 and tablePhaseListener to tablePhaseListener2, and changing the method names. I also had to make these updates in 2 other places---on the JSP code, as well as in the JavaScript!! For just 2 tables this isn't too bad, but with more tables having to synchronize everything could get real ugly real fast. Am I doing something wrong?
    Also,
    It seems to work, however my IE browser is still reporting some minor Javascript errors that I don't get when I had only 1 single-row select table
    Thanks,
    -DM

    I also went the route of duplicating all methods for the single-selectable row in a table.
    I have at most on my pages two tables with selectable rows and I have not run into any javascript issues.
    I have had a problem when I rename my tables from "table1" etc. The row selection does not work as well when I give my table objects meaningful names. I have not had the time to dig in and discover why.

  • How can I POST data within the same page if I have a A HREF -tag as input?

    How can I POST data within the same page if I have a <A HREF>-tag as input? I want the user to click on a line of text (from a database) and then some data should be posted.

    you can use like this or call javascript fuction and submit the form
    <form method=post action="/mypage">
    cnmsdesign.doc     
    </form>

  • HOW TO PUT TWO PANNEL IN THE SAME PAGE

    HI ALL
    I NEED TO KNOW HOW TO PUT TWO PANNEL IN THE SAME PAGE TO FULLY UTILIZE FULL PAGE AREA BECAUSE THE PANNEL WIDTH IS TOO SMALL , SO I WANT TO MAKE THE PAPER CONTAIN TO PANNELS VERTICALLY.
    THANK YOU

    So Barb,
    I like to use multiple desktops and move back and forth between then using gestures. At the moment I have 5 open: Chrome, Firefox, Safari, Photoshop CS 6 and a desktop. I use "gestures" to navigate between them:
    Mac Basics: Multi-Touch gestures - Apple Support
    and I use Mission Control (F3) to move the various desktops around in the order I want them.
    Mac Basics: Mission Control - Apple Support
    So say I'm searching for a photo to open in CS 6, I find it on the open desktop then hit select "open" in CS 6 and go to that folder in the select pane.
    Even right now I'm typing this in Safari and "gesturing" back to Chrome where I did the search about multi touch and mission control. I drag copy the URL there  and gestured back here to paste the URL into this text.
    If you did a lot of photo searches, I set professional clients of mine in Chicago up with dual monitors (In this case you'd have an external monitor on extended desktop.). So all you need to do is just glance over at the second monitor slide your cursor over there open stuff up find your photo and go back to Photoshop and open it up.
    Hope this helps.

  • Two tables on the same page. Is it possible?

    Hi all,
    I followed the multi-slect sample in Winston's blog and everything is working. However, when I tried to put two tables on the same page, the selections are all messed up. When I looked at the code again I realized the line
    RowKey rowKey = (RowKey)getValue("#{currentRow.tableRow}");
    in the setSelected(Object object) method.
    In the case that there are more than one tables on one page, how does the code which table it is refering to? Or how the code should be different so we can have multi tables with selectable rows on the same page? Thnx.

    Thanks. But how do you tie the TableSelectPhaseListeners to their respected tables.
    This is Winston's code for row select (1 table)
    private TableSelectPhaseListener tablePhaseListener = new TableSelectPhaseListener();
    public void setSelected(Object object) {
    RowKey rowKey = (RowKey)getValue("#{currentRow.tableRow}");
    if (rowKey != null) {
    tablePhaseListener.setSelected(rowKey, object);
    public Object getSelected(){
    RowKey rowKey = (RowKey)getValue("#{currentRow.tableRow}");
    return tablePhaseListener.getSelected(rowKey);
    public Object getSelectedValue() {
    RowKey rowKey = (RowKey)getValue("#{currentRow.tableRow}");
    return (rowKey != null) ? rowKey.getRowId() : null;
    public boolean getSelectedState() {
    RowKey rowKey = (RowKey)getValue("#{currentRow.tableRow}");
    return tablePhaseListener.isSelected(rowKey);
    For two tables. Do I just repeat the code like this?
    private TableSelectPhaseListener tablePhaseListener1 = new TableSelectPhaseListener();
    public void setSelected1(Object object) {
    RowKey rowKey = (RowKey)getValue("#{currentRow.tableRow}");
    if (rowKey != null) {
    tablePhaseListener1.setSelected(rowKey, object);
    public Object getSelected1(){
    RowKey rowKey = (RowKey)getValue("#{currentRow.tableRow}");
    return tablePhaseListener1.getSelected(rowKey);
    public Object getSelectedValue1() {
    RowKey rowKey = (RowKey)getValue("#{currentRow.tableRow}");
    return (rowKey != null) ? rowKey.getRowId() : null;
    public boolean getSelectedState1() {
    RowKey rowKey = (RowKey)getValue("#{currentRow.tableRow}");
    return tablePhaseListener1.isSelected(rowKey);
    private TableSelectPhaseListener tablePhaseListener2 = new TableSelectPhaseListener();
    public void setSelected2(Object object) {
    RowKey rowKey = (RowKey)getValue("#{currentRow.tableRow}");
    if (rowKey != null) {
    tablePhaseListener2.setSelected(rowKey, object);
    public Object getSelected()2{
    RowKey rowKey = (RowKey)getValue("#{currentRow.tableRow}");
    return tablePhaseListener2.getSelected(rowKey);
    public Object getSelectedValue2() {
    RowKey rowKey = (RowKey)getValue("#{currentRow.tableRow}");
    return (rowKey != null) ? rowKey.getRowId() : null;
    public boolean getSelectedState2() {
    RowKey rowKey = (RowKey)getValue("#{currentRow.tableRow}");
    return tablePhaseListener2.isSelected(rowKey);
    Edited by: Thomas5 on Jan 18, 2008 5:28 AM

  • HT4463 How do I get back to the same page I was on?

    When I have finished reviewing an app, if I click the back arrow in the top left corner it takes me back to the first page of the category. Not very user friendly when there are dozens of pages to click through to get back to where you were. How do I get back to the same page I was on?

    This is what I mean:  The users guide gives me all these instructions.  BUT, it does not give instructions to just STOP.  I don't
    Pause a song
    Tap .
    Resume playback
    Tap .
    Raise or lower the volume
    Drag the onscreen volume slider or use the iPad volume buttons.
    Restart a song or a chapter in an audiobook or podcast
    Tap .
    Skip to the next song or chapter in an audiobook or podcast
    Tap .
    Go to the previous song or chapter in an audiobook or podcast
    Tap twice.
    Rewind or fast-forward
    Touch and hold or —the longer you hold the control, the faster the song rewinds or fast-forwards.
    View album art full-size
    Tap the album cover when playing a song.
    I don't want to pause, resume playback, restart or any of these things.  i just want to STOP.  How do I do that?

Maybe you are looking for

  • Calculation of  tax via tax code

    Dears, There are some concepts about the pricing in PO that I never got it clear. I really appriciate it if someone can help me. 1. What is the base amount for calculate the tax via tax code? In the invoice verification there often is a tax code in w

  • P6 upgrade from 8.2 to 8.3 ????

    Good afternoon. I have P6 ver. 8.2 installed and am currently working with a company to make the upgrade to ver. 8.3. Part of the proposed quote to make this upgrade requires uninstalling ver 8.2 and then installing ver 8.3. Is this necessary to make

  • Acrobat X Quick Manual Link Building

    I'm trying to highlight rows of text to manually add links to them. The problem is the highlighting becomes unstable with the line between the text and page number. If you strictly highlight the text or page number it is stable but that forces me to

  • HT4009 how do i restore Isaac Newtons Gravity. It has been deleted since I upgraded IOS

    How do I restore Namco GRAVITY. It was deleted when I upgraded the IOS

  • Font getToolkit list

    A friend loaned me the ancient Teach Yourself Java in 21 days from Sams Publishing. In "Day 9", there is this vague reference to getToolkit(). "The fonts you have available to you in your applets depend on which fonts are installed on the system wher