Master-Detail relationship and querying back from the detail block

Hello friends,
Using oracle forms 6i. I have a multi data block. On the block there is a header and detail section. There is master detail relationship present in these blocks. I have a sequence defined, which generates an auto-number.
Now in the detail section say I have 4 records all of which are say invoices and I am populating the details about it. On the 'save' button I have defined a logic which generates an auto- number or a unique number for all the 4 records in the detail section. The unique number is shown in the header section in a text-field.
Now when I query (F11 and then Ctrl+F11) with the help of the unique number i see all the 4 records under it in the detail section. But when I query with the help of one of the 4 records in the detail section it says "fetching more than a single row." I know the same unique number is there for all the 4 records and in the header section I am displaying "number of items displayed" to be 1. That is why the error. But I want that to remain one. How exactly can I develop this functionality of querying the unique number in the header section from the detail block?
Please help as soon as possible.

Hi,
I'd suggest to check this tutorial:
http://www.oracle.com/technology/obe/obe_as_10g/bi/forms/formsmasterdetailobe.htm
Having a relationship between data blocks, coordinates dml actions in both, so no coding is needed to save/update/delete records, forms built-ins do the work.
hope this is useful,
Hugo

Similar Messages

  • How to get the query values from the url in a servlet and pass them to jsp

    ok..this is the situation...
    all applications are routed through a login page...
    so if we have a url like www.abc.com/appA/login?param1=A&param2=B , the query string must be passed onto a servlet(which is invoked before the login page is displayed)..the servlet must process the query string and then should pass all those values(as hidden values) to the login jsp..then user enters username and pswd, then there should be another servlet which takes all the hidden values of jsp and also username and pswd, authenticates the user and sends the control back to that particular application along with the hidden values...
    so i need help on how to parse the query string from the original url in the servlet, pass it out to jsp, and then pass it back to the servlet and back to the original application...damnn...any help would be greatly appreciated...thanks

    ok..this is the situation...Sounds like you have a bad design on your hands.
    You're going to send passwords in a GET request as clear text? Nice security there.
    Why not start with basic security and work your way up?
    %

  • How can I safe my data back from the Time capsule to iphone and macbook?

    Hi,
    last weekend we were robbed while being on vacation and iphones and macbook air got stolen. Good thing was that at home we had a time capsule and our normal macbook. As soon as we get the new iphones and the new airbook we want to get our itunes and apps and datas back to the iphones and airbook ... can somebody tell us how to re-safe or back-safe stuff from the time capsule back to the equipment?
    Thank you ... I feel so "naked" without my phone :-(
    Virtualkate

    Sorry about your loss. Follow the directions here to use Time Capsule to restore your new Air to the state your old Air was in when stolen. When you first connect your new phones, you'll be given the option of restoring from the backup of your old phones or setting up as new. Restore from your previous backups, followed by syncing your content back to your phones. You should be good to go. Maintaining current backups makes this a piece of cake.
    http://support.apple.com/kb/HT1177

  • Hello i just came back from the apple store and they had to restore my phone and i just downloaded all my apps and music back but my photos that are on icloud i only got 80 out of 768 back. what do i do to get all of them back?

    hello i just came back from the apple store and they had to restore my phone and i just downloaded all my apps and music back but my photos that are on icloud i only got 80 out of 768 back. what do i do to get all of them back?

    If you tried to restore to your iCloud backup and your photos didn't fully restore, first go to Settings>iCloud>Storage & Backup and make sure it isn't still in the process of restoring.
    If the restore is complete and all your photos weren't restored, all you can do is try restoring the backup again.  You might try the solution posted by ezjules in this discussion: https://discussions.apple.com/message/19518589#19518589.  This involves opening the photos app after the phone restarts and you provide the passwords for your Apple IDs, then leaving it open for the remainder of the restore process.

  • I am locked out of my computer (macbook air) I just got it back from the apple store and they reset it. I put in a new password, and now it doesnt let me log in anymore. Command R doesnt work, all i hear is a sound, but nothing happens.

    I just got it back from the apple store and they reset it (becuase it kept shutting down and not turning back on).
    I put in a new password because i needed to start over from factory settings, but now it doesnt let me log in anymore. (I don't know if this is because it doesnt accpet my password, or I forgot my password in less than 5 minutes, or because when i typed in my new password, i typed it in wrong twice)
    Command R doesnt work, all i hear is a sound, but nothing happens.

    What I don't understand is why it is rejecting a password I am creating.
    Perhaps the password you are creating is too short, or has characters that are not allowed, or is not secure enough because it is a word in a dictionary.
    FileVault may have standards for what it considers an acceptable password. If the password is part of the 128-bit encryption scheme, it might have to be 16 characters, for example. (Don't know if that is true, but it's a possibility.) Check your documentation for password requirements.

  • My ipod 5th gen ios 7.0.6 crashed and keeps going from the apple logo, going to a black screen, back to the apple logo, then back to the black screen and so on. Furthermore, my laptop doesn't recognise that the iPod is connected. What do I do?

    My ipod 5th gen ios 7.0.6 crashed and keeps going from the apple logo, going to a black screen, back to the apple logo, then back to the black screen and so on. Furthermore, my laptop doesn't recognise that the iPod is connected. What do I do?
    Please help me out as this is very irritating. This has been happening for the last 20-30 minutes. It had roughly half battery left.

    Try:                                               
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable       
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar                              

  • Just updated the latest Epson software printer update from Apple. Now all my prints look solarized. How do I get rid of the new update and go back to the perfect prints I had before? Help please.

    Just updated the latest Epson software printer update from Apple. Now all my prints look solarized. How do I get rid of the new update and go back to the perfect prints I had before? Help please. Wasting ink and paper at the moment!!!!!!
    I have tried the printer with my laptop (not updated) and everything is fine. It's just the beautiful 27" Imac that can no longer print.

    Might be a corrupted printer preference file ...
    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Type this exactly as you see it here:
    ~/Library/Preferences
    Click Go
    Move the com.apple.PrinterPrefs.plist file from the Preferences folder to the Trash.
    Restart your Mac, restart the printer...

  • When i play back an mp3 dj mix i,ve burn,t to cd in my car when i turn the engine of and then restart the car the cd starts back from the beginning how do i solve this problem so that when i turn the engine on end off the cd plays from the same place

    when i play back an mp3 dj mix i,ve burn,t to cd in my car when i turn the engine of and then restart the car the cd starts back from the beginning how do i solve this problem so that when i turn the engine on end off the cd plays from the same place it did before i turned the engine off

    It could be that the CD player will only playback "Redbook" CD's from the previous position.
    And starts mp3 type CD's from the beginnig.
    However.. it's not Logic related.
    pancenter-

  • My old computer crashed and needed replaced, how do i get my library back from the old one and put on the new one?i had xp now windows 7

    my old computer crashed, it was xp i replaced it with windows 7 how do i get my library back from the old computer and put on the new one?

    iDevices are not backup devices.
    Use the backup of the computer to put everything back.

  • Ok I can't seem to get my apps,music, or photos from my iCloud from when I first setup iCloud on a iPhone 4. How do I get my things back from the iCloud and get them to my new device?

    Ok I can't seem to get my apps,music, or photos from my iCloud from when I first setup iCloud on a iPhone 4. How do I get my things back from the iCloud and get them to my new device?

    If you no longer have the phone or have any Backup of it at all, you can re-download your apps and your content from the iTunes Store by logging into your Apple ID at settings> iTunes & App Store. Unfortunately you can no longer recover the data that was associated with those apps.
    So far as your photos go, you can recover any photos that were in photo stream and taken less than 30 days ago by logging in with your Apple ID to settings> iCloud> photos. Unfortunately you will be unable to recover any photos from your camera roll.

  • I just bought a song and my ipod shuffle will not play it.. how do i get my money back from the song??, I just bought a song and my ipod shuffle will not play it.. how do i get my money back from the song??

    I just bought a song and my ipod shuffle will not play it.. how do i get my money back from the song??, I just bought a song and my ipod shuffle will not play it.. how do i get my money back from the song??

    Assuming you bought the song at the iTunes Store, you can go here
    http://www.apple.com/support/itunes/
    and follow one of the "paths" to get what you need or to an Apple customer support employee.  One path is to click Contact Support at the bottom of the list of choices, and use the Express Lane.
    The iTunes app also has a way to report a problem with a purchase.  Select iTunes Store in the sidebar (of the iTunes window).  Toward the upper right corner, click on your Apple ID.  This gets you to your Account Information screen.  Find Purchase History and click See All.  On that screen, you can select a specific purchase with that problem, and Report a Problem.
    If you want to try to figure out WHY that song does not play on your iPod shuffle, please post back...

  • AGP 400 G4 back from the dead... and needing another HDD and a USB2 card!

    Hello!
    Well, my old 400mhz Sawtooth G4 is back up! OMG! It's so much faster than the old 400mhz iMac DVSE (G3) from the same year - and I don't know if that's due more to the processor, cache, or video ram, but i'm not complaining!
    I have a WD hard drive that's currently installed in my iMac - an 80G, EIDE drive. Inside the G4, I currently have a 60GB Maxtor drive (that I removed from the iMac a while back). I need to put the HDD in - but seem to have a problem. if you've ever seen the HDD sled that the the original HDD comes in - you'll notice that it is, for lack of better term, a double-decker sled. There's a lower "slot", if you will, that contains one drive - attached using the screws on the top of the HDD. There's also a second "slot" above that appears to need me to screw in this HDD using screw holes on the side! This would be fine - except that this sled bumps out on one side about 1/4" - so I'd need very long screws to install the HD - I don't have them.
    Here's a picture: If the HTML won't work here, just visit the site.
    http://i31.photobucket.com/albums/c384/digidan/G4-HDD-annotated.jpg
    I realize it's a bit difficult to see, but it's the best I have at the moment. See the circled screw, and how it's "bumped back" from the rest of the sled? Also note the short IDE cable.
    There are other drive bays to towards the front, but the installed IDE cable only has enough length to reach this top bay. In addition, the ATA/IDE cable that came with the WD Drive is not long enough to reach to the next bay over. There's got to be something I'm missing. Next to going out and buying an ATA controller, there must be some way to use a second drive.
    Ideas?
    Secondly, I need to find a USB 2 PCI cad. I've heard that you just need to make sure that the card box says "Mac" on it somewhere. Our local best buy has a 2-port card for $30, and CompUSA has a 4 port for $40, both specifiy work with Mac. Is there a place online that has these cards for less, but is not ambiguous about OS?
    Also - would a USB 2 PCI card slot give put out enough power to use a USB thumb drive, or charge an iPod?
    Thanks, and let me know if I didn't make that clear!
    -Dan
    15" 1.67 Powerbook G4 (Jan 2005), Slot loading 400mhz iMac DV SE,   Mac OS X (10.4.8)   4G Clickwheel and 5G Vid iPods, 400Mhz Sawtooth G4 (work in progress)

    If you're only going to have (2) hard drives
    installed in the G4, you'd be better off moving one
    of the single drive sleds to the dual-drive stack
    bracket's position. Sonnet's "TCB-AGP" ribbon cable kit, includes custom-made
    cables having adequate spacing between the two drive
    connectors, allowing them to be mounted side-by-side.
    This eliminates heat issues caused by placing one
    drive on top of the other, preventing the
    dissipation of heat generated by the lower drive.
    True, and a pretty good idea, but I don't want to pay $30 just yet - I'll be back in texas (and to a Fry's Electronics store) by thanksgiving - So I'll have a bit of a... shopping list Since they have pretty much every concievable type of component you can think of, I'm sure they'll have some cheap, individual ATA cables I can make work. Is it just a standard ATA-66 cable? I suppose ATA 133 is backwards compatible too, considering the 60 Gig drive is ATA 133! (who knew?!)
    As per the "long screws", I misunderstood what you were trying to say, and the way it was supposed to be mounted. I thought that it was supposed to be mounted from only one side! Needless to say, this didn't make sense. I didn't realize that the left side of the bracket actually bends in like that - neat.
    So, all that's left now is to get a USB 2 card. OWC has an Iogear (http://eshop.macsales.com/item/IOGEAR/GIC251U/) card that looks good - does anyone have experience with this card and the sleep issue? I realize that it's a rather random problem, so there's no way to know for sure whether or not it will have probems, but I'd like input on it if anyone has some.
    And I STILL think internal USB/FW ports aren't much more than a gimmick.... I have yet to see a "Internal USB device". Oh well, I suppose it's good to have if/when it's ever needed.
    Thanks,
    -Dan

  • MY IPHONE WAS STOLEN IVE GOT IT BACK FROM THE POLICE BUT WITH A DIFFERENT ID CANT GET INTO PHONE TO CHANGE I D AND PASSWORD

    MY I PHONE WAS STOLEN IVE GOT IT BACK FROM THE POLICE BUT IT HAS SOMEONES I D AND PASSWORDHOW DO I RECTIFY THIS

    If the thief or someone set up an Apple ID on the iPhone and hence Activation Lock, there's no way you can unlock it. That would require that Apple ID and password and it's not likely the thief is going to provide that information. Call Apple Support and ask if there's anything they can do to help. You'll almost certainly need to provide proof of ownership and possibly a copy of the police report, but it's possible in this situation that they can do something for you, though in most cases of an Activation Lock they can't.
    Regards.

  • PC crashed and now using a different PC.  How do I get my iTunes library back from the failed PC on the PC being used now?

    PC crashed and now using a different PC.  How do I get my iTunes library back from the failed PC on the PC being used now?

    Extract the hard drive from the faulty computer and recover the library from it or see Recover your iTunes library from your iPod or iOS device. (At least one link in there may be useful even if you don't have such a device.)
    tt2

  • Can I get rid of Lion and go back to the previous operating system?  I bought Apple because it was simple.   I went from loving my Mac to absolutely hating it.

    Can I get rid of Lion and go back to the previous operating system?  I bought Apple because it was simple.   I went from loving my Mac to absolutely hating it.

    Check out this thread.

Maybe you are looking for

  • Calling a method in backing bean whenever a page is loaded/reloaded

    Hi, What is the best way to call a certain method in a backing bean whenever the jsp page is reloaded? I have a managed bean that provides the data for a form and the bean gets it's data from a SQL DB. I want the bean to reload the data from the DB w

  • Acrobat X Pro crashed and deleted the file

    I am using Acrobat X Pro 10.1.3 in OS X 10.1.1. I was working on a file. Acrobat crashed without warning and reopened. It did not reopen the file. I looked in the Open a Recent File dialog box and in the Recently Opened menu, and my file was not ther

  • Restore to factory or early backup?

    Hi everyone! I'm trying to restore my computer to an earlier state and was wanting to get some advice. I deleted the factory restore files form my hard drive not long after getting my W520 in Dec 2011. I made a backup of the system right away upon fi

  • Writing Boolean variables to MS SQL Server

    I cannot figure this out. In the script I'm working on, a boolean variable can be dynamic either True / False ,etc I cannot get the syntex correct to write this variable to a "binary" datatype column in SQL Server. Column name in database is Binary I

  • Assign Multiple Sales Org for One Plant in STO process

    Hi Experts, Aware that I can assign multiple sales org to 1 plant (relationship: many to many). I am trying to create STOs to supplying plant and assigning them to different sales organization but encountered problem. Example: Supplying Plant 1000 -