Showing more than one row at the same time, trigger necessary?

hi
I'm an absolute beginner in oracle forms, so i have a fundamental problem. i have a forms with 3 data-tables/data-blocks with following names and columns:
table "connection type": con_id, con_descr
table "connection": con_con_id (foreign key to "con_id" from "connection_typ"), sales_id (foreign key to "s_id" from "sales")
table "sales": s_id, s_descr
now i'm trying to get the following thing: when i'll execute an execute-query on "con_id" from data-block one (table "connection") i want see all records in block two (table "connection") and at the same time for each record in block two the description from "sales". so for each record in "connection" exists a record in "sales". the current problem is that i just see the "s_descr" from the selected/current record in "connection", but not all "s_descr" of every record.
i think i need a post-query-trigger but i don't know the code i need...
i hope someone understand my problem and might help me. thanks!

So, let me try to summarize:
Connection has a foreign key to both ConnectionType and to Sales
When you select a ConnectionType in blok1, you want to see all Connections for that type in block 2. That's a clasic Master-Detail relationship and it looks like you've got that cracked.
If you also use a Master-Detail relationship between Connection and Sales, it will make sure Oracle Forms queries the Sales block based on the value of the current record in Connection. Hence it is showing all the Sales record for the current Connection. That's always one (or none if the sales-id is optional).
You probably don't want to use a separate block for Sales with a relationship to Connection. Don't you want just a number of lookup fields. In the Connection block you also want to show the Description from the Sales table.
To accomplish that, add an extra field to the Connection block to hold the Sales Description. Then write a post-query trigger on the Connection block. That trigger will fire for each record being fetched. In that trigger you can do something like:
select description into :connection.sales_descr from sales where id=:connection.sales_id;
Alternatively you can also base the Connection block on a query in stead of directly on the Connection table. That allows you to write a Select statement that (outer) joins Connection to Sales and use that query result as the basis for the block.

Similar Messages

  • Can I split the screen in Adobe to show more than one ducument at the same time? ie. view three different documents on one screen

    I am trying to look at three Adobe documents at the same time.  Can I split the screen to do this, otherwise I must keep flipping back and forth to read the documents.

    You can arrange the open windows in any way that suits you (assuming you're on Windows - not Touch - or Mac). You can't link the scrolling though.

  • Add Suppporting Details for more than one periods at the same time for the same Account in Planning.

    As we know, in planning form, we can add supporting details to one cell for the level 0 members intersections.
    But can we do that as below:
    add supporting details for more than one cells at the same time?
    I tried to do that in workspace and smartview, neither is working.(my workspace version 11.1.2.2.300.20)
    I wonder if i am not with the right version, because i don't know how to get the below.
    Can any one explain?
    Thank you.

    Hi,
    I have tried in Smartview for a simple form where my period dimension was in columns and accounts in rows.
    You need to select multiple period and select supporting details, it will show those selected period for which you can add the supporting details.
    You can add these details and then submit the data in the form.
    Regards,
    Sourabh

  • More than one reports at the same time?

    Hello
    Is there any way that i can call more than one reports at the same time through the .FMX file. At the moment i can call only one report, if i need to call another report then i have to close the 1st report, then it will show me the 2nd report. Report Background Engine can run more than one reports at the same time?
    Nametullah kalair

    Yes i know, we can submit multiple - asynchronous- jobs, but the problem is, is not possible to open more than one previewer to see multiple reports at the same time for analysis.
    Regards,
    Nametullah kalair

  • HT1657 Can you rent more than one movie at the same time?

    Can you rent more than one movie at the same time on itunes?

    I think Justin is correct and you should have statistics in place and a reasonable partition scheme so that the optimizer selects the correct partitions rather than telling it what to do. You paid a lot for partitioning after all.
    There are some, possibly misguided, examples in the manuals showing how to create a view so you can delete from a single partition without specifying the partition criteria in the delete statement. This in effect turns partitioning back into DIY partitioning i.e. separate tables, union all and pretend its a single logical table using a view. But backwards.
    So to do what you want you just assume the partitions are separate tables, and then use union all to glue the ones you want back together.
    select * from sales partition (sales_q1_2000)
    union all
    select * from sales partition (sales_q1_2001)
    union all
    select * from sales partition (sales_q1_2003)
    union all
    select * from sales partition (sales_q1_2004);It probably goes without saying that as well as making the expensive version of partitioning behave like the free alternative, there is the possibility that it will perform like it as well.

  • Drill down more than one characteristic at the same time.

    Hi,
    Is there any way to drill down more than one characteristic at the same time?
    When I drill down by 0cust_sales I would like to have drilled down: division/distrchan/salesorg/cust_sales without having to do that one by one.
    thank you!

    Hi,
    This cannot be done unless these characterstics are related to each other in some way as Charactertics & Display Attributes.
    The reason being when you drill down the 0cust_sales , there is no link from 0Cust_sales to the other characterstics hence there is no prompt for these characterstics to be drilled down.
    However, a smiliar thing might be acheived by adding these chareacterstics into the 0cust_sales in teh query designer by dragging n dropping them over 0cust_sales. you can try this and see if this is close to your requiremetn.
    Kind Regards,
    Tapish

  • How do I view more than one image at the same time in CS6?

    How do I view more than one image at the same time in CS6?

    Hi there
    If you go to Window > Arrange you can choose from several view options. Below I have selected Two-Up Horizontal since I have two images, but you can select other options if you have more than one image.

  • Jquery accordion where we can open more than one region at the same time

    Hi,
    I am trying to create a jquery accordion where we can open more than one region at the same time. I saw a post
    from patrick to do accordion where we can select only one region at a time.I am using Apex 4.0
    Using jQueryUI Accordion with APEX 4.0
    Any input on this will be appreciated.
    Thanks,
    Nav

    Hi,
    As I understand jQuery UI accordion do not have feature you looking for
    Regards,
    Jari
    Edited by: jarola on Sep 7, 2010 12:29 PM
    See documentation from here
    http://jqueryui.com/demos/accordion/#default

  • Use more than one transition in the same time between two video clips?

    Dear Premiere Pro programmers,
    Could you please create a way to use more than one transition in the same time between two video clips without exporting to media, or creating new sequence, or using another layer (adjustment or transparent)?
    Message was edited by: Kevin Monahan
    Reason: Next time, create a more descriptive title.

    Hi Aqsa Nori,
    I'm not sure what you are imagining, but it might be possible to achieve by key framing effects. Can you tell us what you want to do? Also, please feel free to file a feature request: http://adobe.ly/feature_request
    Thanks,
    Kevin

  • Is there a way to put an item under more than one calendar at the same time?

    I use the calendar to keep track of not only my schedule, but my entire family's. For years I had a calendar labeled 'kids.' Now as they're getting older it would be easier to have an individual calendar for each child. Easier for me to track where they are and they could have they're own calendar on their iphone or iphone touch since we all share one cloud account. However, frequently more than one is at the same activity. The calendar program will only allow me to select one calendar to place an event under; as soon as I select another, it deselects the first. Is there a way to place an event under more than one calendar?
    (Since I'm still the one driving that needs to know date, time, place, etc type details I don't want them adding it to their own schedule - maybe -  on their devides and synching through cloud)

    You can create many calendars. Here's the tip:
    Example: you have 1 son and 1 daughter.
    In iCloud ( https://www.icloud.com )
    Create 1 calendar called Son ( Choose a color to tell them apart )
    Create 1 calendar called Daughter ( Ditto )
    Create 1 calendar called Kids
    Since you are the creator, you get to see all calendars combined.
    Send invitations to each of them
    Son gets Son and Kids calendars
    Daughter gets Daughter and Kids calendars
    So if there an event for Son, just put in that calendar
    If it's for both then enter it in the Kids calendar
    Likewise for daughter.

  • Using more than one camera at the same time..

    Hello every body..
    I have a problem with dealing with java media frame work and i want to solve the problem as fast as i can since it will delay my work..
    I hope that any one can hep me..
    I post this problem previous but i don't have agood answer i want to knew if this problem can be soved or not and if can be solved How???
    The problem:
    If any one use JMF Studio it is known that any one can captre any device connected such as ( camera , mic,...) using JMFStudio..
    I do the capturing very well but the problem i face it is HOW I CAN CONFIGURE MORE THAN ONE CAMERA AT THE JMF??
    If i connect 2-cameras from different types ( sony , web cam) then the jmf registary will register the 2-cameras with only one difinition is( vfw:Microsoft WDM Image Capture (Win32):0 ) so when i use the java code to access the 2-cameras then i found only one difinition for one camera and i can access only one camera!!!!!!!!!
    I don't know how i can solve this problem??
    please help me !!
    For reply or any information contact me at my e-mail
    [email protected]

    Please Help me .....!!!!
    If the Sun Community Forums don't Help me who will help me at my problem??????!!!!!
    Help Me!!1

  • Drag more than one MC at the same time

    Hi to Eo,
    i need to drag more than one Mc at the time:
    n.b. emc2 is a mc on the main timeline. This code is in a nested MC.
    prnt: MovieClip = this.parent as Movieclip;
    function drag(e:MouseEvent):void{
        if((e.type == "mouseDown") && (GlobalVar.stat == "clicked")){
            this.startDrag();
            prnt.emc2.startDrag();
        if((e.type == "mouseUp") && (GlobalVar.stat == "clicked")){
            this.stopDrag();
            prnt.emc2.stopDrag();
            GlobalVar.drag = false;
    this.startdrag() stop to works when i add  prnt.emc2.startDrag()..
    why?

    The help documents explain it as follows:  "The sprite remains draggable until explicitly stopped through a call to the
    Sprite.stopDrag() method, or until another sprite is made draggable. Only one sprite is draggable at a time. "

  • Problem accessing hard drive for more than one user at the same time

    Hello all,
    I recently bought a 2nd generation AirPort Extreeme 802.11n to replace a cheapo wireless router. The main reason I wanted to get the AirPort was so I could attach a USB hard drive which holds iTunes music files Originaly I had a G4 MDD and this was a second internal hard drive. Since my wife and son also share my Mac, we stored the iTunes music folder there, so we could all access the files. That worked fine.
    Then I got a early 2009 iMac and gave my wife the G4. My son also has a G3 iBook, using the wireless internet conection. At first I had the drive in an external case attached via Firewire. Both my iMac and my wife's G4 are attached to the network using ethernet, not wireless. She was able to access the music files so long as my Mac was on, but the connection was flaky.
    So as mentioned, I picked up a used AirPort Extreme from OWC, mainly to attach the hard drive, since it's no longer in my Mac. It took some fiddling, and I was honestly surpsied that the APE was trickier to set up than expected, but now I have the external drive mounting, and we can all access the files from any of the Macs in the house. It works great except for one thing. If I'm logged into my iMac, and then another family member logs in on the same iMac, we don't all have access to the hard drive. It's still mounted, but the you have no permission to view the files on it.
    Then if I remount it, I can access the files, but now the other user can't.
    So in a nutshell, only one user can access the drive at the same time from the iMac, but we can all access it from different Macs.
    Anyone have an idea of why this is happening and how to remidy it?

    This is the boilerplate text often used in connection to saving to a network (please NOTE the part where it explains that normally, it does work, but that it is impossible to troubleshoot someone else's network remotely, and that's why it's not supported by Adobe):
    If you are opening files over a network or saving them to a network server, please cease and desist immediately in the event you are currently experiencing problems with one or more files. Working across a network is not supported.
    See: 
    http://kb2.adobe.com/cps/406/kb406793.html
      Copy the CLOSED file from your server to your local hard disk, work on it, save it again to your local hard disk, close it, and copy the closed file back to the server.
         Of course, the fact that Adobe does not support working across a network does not necessarily mean it won't work.   It should.
        Adobe's position is that there are too many variables in a network environment for them to guarantee that everything will work correctly in every network, especially given the fact that if something does not work properly, it's probably the network's fault, and Adobe has no way of troubleshooting your network.
      If you can't work locally, you are on your own, and if something happens, you're on your own. If you must work from a server, make sure your network administrator is a competent professional.
    When problems arise, a lot of valuable work can be lost.

  • Execute more than one thing at the same time.

    Hey why every time i want to execute more than one thing(create tables) at the same time
    it say "ORA-00911: invalid character" , i dont wanna execute one thing at a time. check the pic please
    http://img370.imageshack.us/img370/5120/oraclesw5.jpg
    but in my school i use something called isqlplus and i can execute all the things i want at the same time with-out any error.
    im using right-know
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production

    1) Unless you are using something like DBMS_JOB, SQL*Plus, iSQL*Plus, the Oracle XE web-based front-end, or any other application is going to execute one SQL statement at a time.
    2) There is a dedicated XE forum-- the folks over there might know how to run a script using this particular front-end.
    3) Assuming the XE database is on your local system, you should be able to log in via SQL*Plus and use that utility to run your scripts.
    Justin

  • Can the iphone maps display more than one pin at the same time?

    For example, on a recent trip to New York I preloaded bookmarks of all the places I wanted to visit into the iPhone Maps. I then wanted to see where they all were in relation to one another so I could decide which one to go to next (MOMA, Guggenheim, Metroplitan Museum of Art for example). Is it possible to have the map display them all at the same time?

    DaVBMan wrote:
    Are you sure about that Andrew. I see no option to toggle on all my bookmarked pins. I can pick one to show and it shows up. But if I pick another, the previous one will go away. Only doing a search for stuff in an area will Google Maps show multiple pins, but I see no way of making all your saved bookmarks show up.
    Did it on mine just now but I also did a very small location here in Sacramento. Dropped a pin in 1 city, Bookmarked, Dropped a few others and bookmarked at least 6 cities in the general Sacramento area, zoomed out just a bit and saw 6 red Pins. Which are all bookmarked.
    If I could snap a photo of my screen I would post it.

Maybe you are looking for

  • Pricing procedure not to bill customer but revenue recognition

    I'm looking for guidance on how to setup a pricing procedure conditions.   First let me explain the situation.  What happens is the customer buys say 2000 software licenses on a sales order. The customer is billed and the customer account is debited

  • Bad performance due to the use of AGO and TO_DATE time series functions

    Hi all, I'm building an OBI EE Project on top of a 1TB DW, and i'm facing major performance problems due to the use of the AGO and TO_DATE time series functions in some of the Metrics included on the reports. I discovered that when a report with one

  • Where is the EJB READMES?

    Below is the wording from the Oracle 8i for Intel-Linux Release Note document. (a74960) I cannot find the referenced EJB directory that it talks about, can anyone else find it? THANX Oracle8i, Release 8.1.5 also includes a fully functional Java Virtu

  • My ipod touch won't turn on.

    I am unable to turn on my ipod touch.  this began when i tried to install new ipod upgrade while on i tunes.  I cancelled upgrade and now there is a symbol of USB cord with arrow to itunes icon on my itouch screen. .  i tunes says my ipod is in recov

  • Calculate number of columns dinamically in webi report

    Hello, I have the following problem. I have to develop a report, that it has to show a table that their columns have to be data intervals, and their rows have to be diferent rates. Example. 29/01/2011 30/01/2012 31/01/2013 01/02/2014 29/01/2012 30/01