Having trouble adding information to a join table

I am building a Proof-of-concept HR application in Apex using the hosted site and having trouble entering information into a join table. There are three tables in my schema: Applicants, Postings, and ApplPostings
"Applicants" fields: Applicant_ID (PK), Name, Address, City, State, Zip, Phone, Email
"Postings" fields: Posting_ID(PK), Posting_Number, Item_Number, Posting_Date, Title, Description
"ApplPostings" fields: Appp_ID (PK), Apply_Date, appl_appl_id (FK), post_post_id (FK)
I have 5 pages in my application
1. A Report that shows all Applicants
2. A Form that shows Applicant details and allows editing
Contains 3 regions: Applicant Detail, Associated Postings, Available Postings
3. A Report that shows all Postings
4. A Form that shows Posting details and allows editing
5. A Form that allows creating an entry in ApplPostings
On page #2 (from the list above, it's p3 in my app), the "Associated Postings" region shows data from the Postings table for selected applicant per the ApplPostings table. This is the SQL:
select jp.posting_number,
jp.posting_date, jp.title
from applicants ja,
applpostings jap,
postings jp
where ja.applicant_id = jap.appl_appl_id
and jp.posting_id = jap.post_post_id
and ja.applicant_id = (:p3_applicant_ID)
The "Available Postings" region uses this SQL to show information on the remaining postings:
select jp2.posting_id, jp2.posting_number, jp2.posting_date, jp2.title
from postings jp2 where JP2.POSTING_ID
not in
(select jp.posting_id
from applicants ja,
applpostings jap,
postings jp
where ja.applicant_id = jap.appl_appl_id
and jp.posting_id = jap.post_post_id
and ja.applicant_id = :p3_applicant_id )
The Posting ID column in "Available Postings" is set up as link to page #5 (from list above, p7 in my app)
This page shows three fields: Apply_Date, appl_appl_id, post_post_id
Source information for appl_appl_id:
Source used: Always
Source type: Item
Source value or expression: p3_applicant_id
Source information for post_post_id:
Source used: Always
Source type: Item
Source value or expression: p3_posting_id
Both ID fields populate with inherited values correctly.
The problem is when I try to use the Apex generated "Apply Changes" button
Nothing happens, there is not data added to that table.
I get the "Action Processed" message, but the row is not created in the ApplPostings table.
Any suggestions on what to do next will be helpful.
Thanks,
Jody
Edited by: user10651585 on Dec 31, 2008 9:41 AM

Hi,
On the form, any items that represent database columns must use "Database Column" as the Source Type and the column names as the Source Value or Expression. The "Fetch Row..." and "Process Row..." processes refer to these to determine where to write the data. So your first step is to change the two page items to use these settings. Without these settings, there is nothing to write into the table - the "Action performed" message will be displayed because there is no SQL error.
Now, on your report, your link should pass in the two values needed. In the Column Link settings for the column you are linking on, you have three pairs of fields headed Item 1, Item 2 and Item 3. Each item has a Name and Value setting. Into the Name setting enter in the page 7 item names. Into the corresponding Value setting enter in the column names that contain the values these items need to receive, surrounded by # symbols (for example, #POSTING_ID#).
Then, when you click on the item in the report, you are passed to page 7 and the fields are correctly populated. As the form correctly identifies these fields as database columns, when you click Apply Changes, the insert can take place.
Andy

Similar Messages

  • I am having Trouble adding Audiobooks in iTunes 12

    Hello, I am having Trouble adding Audiobooks in iTunes 12.1.2.27 with OSX Yosemite 10.10.3, I downloaded 4 Audiobooks from Audible, Synced my iPod but the new Audiobooks do not show up in either the Audiobooks or Music section of my iPod after I sync my iPod, I do see them in the Audio section of iTunes but not on my iPod, any help would be greatly appreciated. thank you Michael

    I do have an icon of my iPod but if I click on it it disconnects my iPod from iTunes.
    If the iPod is connected via Wi-Fi, please connect with USB. If it's already on USB, or if USB is the same. log out or restart the computer and also restart the iPod, then try again. If it still doesn't work, see below.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Click the Clear Display icon in the toolbar. Then take the action that isn't working the way you expect. Select any lines that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name or email address, may appear in the log. Anonymize before posting.
    When you post the log extract, you might see an error message on the web page: "You have included content in your post that is not permitted," or "The message contains invalid characters." That's a bug in the forum software. Please post the text on Pastebin, then post a link here to the page you created.

  • HT4623 I have updated to ios7 and am having trouble adding appointments to my calendars??

    I am having trouble adding appointments to my various calendars. No probems before ios7 update. What am I doing wrong??

    iPhone 3G IOS 4.2.1 is the latest & greatest. There's no more updates for this iPhone.
    You have to buy a new iPhone since most apps target IOS 6 & IOS 7.

  • Having trouble adding purchased and imported music to my playlists

    I'm having trouble adding purchased and imported music to my play lists. For example when I purchase or import new music to my playlists I have to re sync my ipod or the new songs don't appear on my playlists. Perhaps this is because I once unplugged my ipod w/out first disconnecting it. Previously when I purchased and imported music songs would appear on my play lists when I dragged them from purchased to playlist.

    Remember to authorise your new machine with the Apple ID
    Essentially copy the itunes folder and all sub folders over to the same place in the new computer.
    Windows XP: C:\Documents and Settings\username\My Documents\My Music\iTunes\
    Windows Vista: C:\Users\username\Music\iTunes\
    Windows 7: C:\Users\username\My Music\iTunes\
    Windows 8: C:\Users\username\My Music\iTunes\

  • I am having trouble adding art work for itunes 12.0.1.26

    I am having trouble adding art work for itunes 12.0.1.26. Trying to add artwork after you go into "get info" and then "add artwork" doesn't work. Can anyone help. BTW, went into the authorization edit and gave my user id permission to modify things as was suggested in one posting, but that didn't work either.

    thanks a lot

  • Having trouble adding my Mac Pro Tower to my Apple ID  not sure why it does not work

    Having trouble adding my MacPro Tower to my Apple Id will not allow me to download the music and videos I purchase on my Iphone or IPad... Very frustrated with apple....

    Tank 64 wrote:
    My Daughter changed her Apple ID, not sure why. Then she changed it back to the original. She has lost $50 on her iTunes. How does she restore the funds?
    How did she change her AppleID?
    If she simply updated the AppleID (not created a new one with a new email address), log out then log back into iTunes store.

  • I am having trouble adding a gmail account on my iPad..I keep receiving same response that the user name and password are in correct and that mail cannot be retrieved.  I know the username and password are correct.   Any suggestions?

    Having trouble adding a gmail account on my iPad.  This would be a second email account.  Keep receiving message that says username or password are incorrect but I know the are accurate.   Any suggestions?

    You might be better off deleting the account and starting all over again with the account. Here is a gmail help site that will take you through all of the set up steps.
    http://support.google.com/mail/bin/answer.py?hl=en&answer=77702

  • Having trouble adding new collection in ibooks?

    Hi
    I am having trouble a adding a new collection in ibooks.  When I click on "+New Collection" it disappears and the keyboard does not pop up and then seems to freeze.  It was working fine yesterday and only encountered this problem this morning.
    Has anyone else had this problem or know how I go about fixing it?
    Thank you!

    The problem is not thru TWC... I can access my account in Outlook and also by Webmail.
    The problem is on the Iphone 4 (I had no problem on my 3G). Like I said, the settings I have entered are the same as the settings for the other 4 accounts. The only portion of the setup that I cannot access during the "failed" setup is the "Advanced" where I can turn SSL off and confirm password authentication.

  • Having trouble adding Bellsouth email acct to iPhone 5

    I just purchased an iPhone 5 for my wife and am having trouble setting up her Bellsouth email account (@bellsouth.net) on the phone. This email account works on her 3Gs and iPad 2. The iPhone keeps saying that either the username or password is incorrect. I know the password is correct - just verified that. I used the mail assistant and verified settings on my iPhone from another Bellsouth account. Very frustrating.
    Any suggestions?

    Got it figured out (working). For some reason I had to change the iPad account to an iMap account and it worked. Why is that? They have to be the same? Didn't think that was the case.

  • Please help!  Having trouble finding records when searchign two tables.

    Hi, I've been trying to solve this problem for several weeks now, and I have exhausted all of my knowledge and experience. I need help, and I hope someone here can give me some direction.
    I am using VB 2008, and the CR that comes bundled with VS 2008 Pro. My database is a SQL Server 2005 CE v3.5 (a *.sdf file). I am connecting to the database through a dataset, and I am displaying the report in a CrystalReportViewer.
    My dataset consistes of two tables:
    1) tblCustomers which has a primary key "CustID", and contains only customer contact and personal information.
    2) tblDateVisited which has a primary key of "VisitID", but it also has a column titled "CustID". Basically, every time a customer visits the business, details of that visit are recorded in tblDateVisited, and that record is associated with the customer by their CustID.
    Here's what I'm trying to accomplish: I want to be able to display only Customer records when the customer has visited and that visit matches certain criteria. Right now, I am trying to match visits from the "tblVisitDate.PlayerType" column. If the customer has ever had a visit where they matched a particular player type, I want to see those customer records.
    I don't know what I'm doing wrong, though. I can search a dataset if I am only querying one table and pulling records from that table. However, whenever I try to add a second table and perform queries on that table to get records from the first table, I can't return any records.
    If it helps, I am trying to use one CrystalReportViewer to display multiple reports (user choice) and here's how I'm loading the report into the viewer:
    Me.tblCustomersTableAdapter.Fill(Me.dsPlayerTypeReports.tblCustomers)
    Me.tblDateVisitedTableAdapter.Fill(Me.dsPlayerTypeReports.tblDateVisited)
    Me.ReportFile.SetDataSource(dsPlayerTypeReports.Tables(1))
    I am suspicious that my problem is in the Tables(1) method. It confuses me that I can only assign one table as a datasource when I obviously need access to two tables to make this selection work.
    Whatever the case, I'm at the end of my rope with this one. I'm not prone to giving up, but I'm at a dead end currently.
    Any attempt to assist me with this will be greatly appreciated, successful or not.
    Thanks in advance!
    -Will

    Hi
    I finally figured this out (or at least a way of doing it that seems to work!
    In VS create a new, empty datasource with no database objects in it. You'll get a message saying asking if that's what you really want to do.
    Add a TableAdapter to the datasource using the 2-table SQL statement with a join but no WHERE clause, in my case:
    "SELECT tblMedia., tblTitles. FROM tblMedia LEFT JOIN tblTitles ON tblMedia.ODGMediaID = tblTitles.ODGMediaID "
    Make sure Fill a DataTable and Return a DataTable are checked.
    Rename the TableAdapter and DataTable to something sensible.
    Design the report using the new Dataset.
    To display the report in VB with user generated WHERE clause:
    strWhere = "WHERE ID=..." etc
    strSQL = "SELECT tblMedia., tblTitles. FROM tblMedia LEFT JOIN tblTitles " & _
                            "ON tblMedia.ODGMediaID = tblTitles.ODGMediaID " & strWhere
    Dim conn As OleDbConnection = New OleDbConnection(strConn)
    Dim da As OleDbDataAdapter = New OleDbDataAdapter(strSQL, conn)
    Dim dsReport As New DataSet
    da.Fill(dsReport, "DataTableName")
    Dim rpt As New ReportDocument
    rpt.Load(PathToReportFile)
    rpt.SetDataSource(dsReport)
    crReportViewer.ReportSource = rpt
    Jonathan Attree

  • Just bought a new PC with Windows 7 installed on it. I'm having trouble Adding my Lexmark Optra S 1625 Printer ( no drivers found )?

    I have contacted Lexmark and they claim that the OS has a compatable driver included.   But, so far I have NOT been successful at adding the printer.   The Optra S 1625 is currently shared by one of my XP PC's on my network.   My new, Windows 7 PC, is finding the printer just fine, but is not able to locate an acceptalbe driver for it.   Perhaps, I am just not familiar enough yet with how to work with Windows 7 to get around the issue.   I need some help.   Lexmark claims that Windows 7 should have a compatable driver included with the OS ???  Please Advise.

    Hi Fidmon,
    After performing a research, I just get the same conclusion as Rick Dee and Shadow Walker. There is no Lexmark Optra S 1625 Printer driver for Windows 7 provided on Windows Update Catalog. Also, no driver downloading information for your printer listed on the Lexmark Product Download Center.
    At this time, you can try the suggestions raised by Shadow Walker to install the similar printer driver to check the issue. For your convenicen, I have located a driver for OPTRA S 1255 printer. Please download and install the driver to test the issue.
    Please note: Since this is a Windows XP driver, I can't guarantee if it works for you, but we can try installing the driver under Windows XP Compatible Mode.
    OPTRA S 1255
    If the driver did not work, I strongly suggest communicating with Lexmark Support and ask them to produce the proper driver for Windows 7.
    Judy :)

  • Having Trouble adding HREFTrack to new video

    Hi! I am trying to add a HREFTrack to a quicktime movie and it is not working!
    The file I am trying to add is formatted like this:
    {QTtext}{font:Geneva}{plain}{size:12}{textColor: 65535, 65535, 65535}{backColor: 0, 0, 0}{justify:center}{timeScale:30}{width:160}{height:48}{timeStamps:absolute}{lan guage:0}{textEncoding:0}
    [00:00:00.00]
    A<http://google.com>
    [00:00:04.15]
    I have it listed as HREFTrack and not enabled in the properties window. I have even downloaded other videos with working HREFTracks and they do not work when I edit them. I do not want my HREFTrack to have a target-- I would like it to refresh the window I am currently in. I have tried to get this working in Firefox 2.0.017 and Safari 3.0.4, neither with any luck. The working videos I have downloaded were tried in the same browsers.
    I have been creating my HREFTrack by pasting the text for the link into my movie at the point I want it to start, then exporting the text as text, re-opening it in QuickTime Pro to make necessary edits, and pasting it back into the correct location in the movie. Then I save the movie as a self-contained movie. The HREFTrack does not work in Quicktime standalone, or in either browser that I mentioned.
    I am having a similar problem adding text links-- although the text links work fine in the QuickTime player standalone version, but not in either browser.
    I am using TextEdit to edit the files, but I have also tried WordWrangler, with identical results.
    Can anyone tell me what I am doing wrong? Thank you!

    Come on, guys! Someone must know the answer to this!? Or at least where might be a better place to seek assistance? Anyone? Bueller?

  • I'm having trouble adding photos to iMovie '11 (same issue when I was on '09).

    I start a new project in iMovie and drag a photo over from my desktop. I see the green line and then drop, the photo does not add.  I tried using the media tables and dragging events, albums, and individual photos, but the same thing happens.  The only thing I can add is video from my events section.  Nothing else sticks.
    I did have some issues a few months ago with permissions where I lost all my music in itunes because I deleted a file by mistake.  I have tried a verify/repair permissions update in disk utility.  The iMovie problem still exists.  Open to any suggestions.
    Thanks in advance for the help.

    Thanks for pointing to that thread wvozzolo. It will be a good idea to set up a new user account and test iMovie when logged into that account. I'm not clear on whether it's best to set up an Administrator account or a Standard account. Perhaps these Apple support articles will help:
    Creating a new user account:
    http://docs.info.apple.com/article.html?path=Mac/10.6/en/8235.html
    Mac 101: Mac essentials:
    http://support.apple.com/kb/HT2477
    What is a user account?:
    http://docs.info.apple.com/article.html?path=Mac/10.6/en/15599.html
    What is an administrator account?:
    http://docs.info.apple.com/article.html?path=Mac/10.6/en/8229.html
    Have you tried deleting the preference file, as I suggested above? If that doesn't work, and the new user account doesn't do the trick, perhaps there is a conflict with a QuickTime plug-in. Look in the folder MacIntosh HD/Library/QuickTime for 3rd party plug-ins such as Flip4Mac and Perian (there may be others). Update these to the latest versions and check iMovie again. Otherwise, drag the plug-ins out of the QuickTime folder to the Desktop to see if that helps.
    John

  • Having trouble adding music to slide shows

    I've always been able to add specific songs from itunes to a iphoto slide show. Now when I go to add music the viewer just lists my playslists but won't open to show songs in the playlist. My only option is to play the entire playlist. I am using Itunes 7 and Iphoto 6.
    Also, when I try to add music to a slide show in powerpoint, the view shows songs in my music folder, no playlists, and it only show some of the songs, naturally not the ones I want.
    Any suggestions?

    Try the free Audacity software (Google it) and convert the .MP3 files to .WAV files. .WAV are uncompressed and most Adobe products can handle them natively without the need for external codecs.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • I am having trouble adding a printer to the eprint center.

    I am logged in, so next I go to add the printer, it opens a box and asks me to enter my  code.  I have the sheet which just printed out.  I put in the code without the email part @hpeprint.com, I hit ok and I get this hour glass that just stays there and never does anything.  I have tried this quite a few times and have had no luck.  I even reset all settings on the printer, got a new number and tried it again.
    Anyone know why that is happening on the website?
    thanks

    Hey Sportsman7!
    I don't think there is currectly any problem with the website. What browser are you using (IE8, Firefox, Chrome, etc.)? If you have a different browser, try adding it from there. If not, you can go to either firefox.com or google.com/chrome to download a different one. I just tried adding one of our printers to eprintcenter and it worked.
    Hope this helps!
    If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

Maybe you are looking for