Creation of Master DataBlcok with more than two Tables of diff

Hi all

I am new to oracle forms, I use the form 6i... I am designing a form to display the details of the employees and their related projects to do what I want to create master datablock. I have 3 tables

Tables

Employee (EMp details)
-------------
Number (primary key)
EMPLOYEE_FIRST_NAME

Project (Project Details)
-------------
Project (primary key)
PROJECT NAME

Employee_project (project Emp Relations)
--------------------------
EMP_ID (foriegnkey)
Project (foriegnkey)

Ex:

EMP_id project
101 301
101 302
102 303


I want to create master Datablock using the tables for this scenario

I want to search the details of the project according to the Employee_id (using the query time enter & run application when running in the form)

If Employee_id 101 it shows the related Emp_id, EMPLOYEE_FIRST_NAME, project, project name



I found the SQL query, but I don't know how to create a relationship of forms using Master data block

SQL query is

Select pe.emp_id, e.employee_first_name, p.* in project p, EP employee_project, employee
where e.employee_id = 101
and p.project_id = pe.project_id
and pe.emp_id = e.employee_id
/

Help me

Hello

How to create a distinct LOOK UP Table & Look up form of table for the project table

Sorry for unclarification what I mean is a separate form as I traced it with muti-records based on the project table

Is it necessary to write the query in the trigger after request of the form like this?

Yes, absolutely, it of a necessity because nothing could be found in your display settings, but with the code you have to write in the trigger after query

am in the right way?

Regarding your query, you must create as I said such a display with named project name element is the database must on > not then you need to write the following code in the post in the form:

BEGIN

SELECT project_name
INTO :Project_name   -- The display item u have just created with db = no
FROM  project
WHERE project_id=:project_id; -- on ur db block form

EXCEPTION

WHEN NO_DATA_FOUND THEN NULL;

WHEN OTHERS THEN MESSAGE(ERRMSG);

END;

your code can also work, but I think it's the most simple and direct way.

Have a good luck :)

I hope it's clear now...

Kind regards

Abdetu...

Tags: Oracle Development

Similar Questions

  • Near: with more than two terms

    Hello

    I can't understand how CLOSE works in Oracle Text when you have more than two terms. I RTFM and did some testing, but it is still is not clear to me. I am running Oracle 10.2.0.4

    Example: NEAR ((BRAVO,GULF,REFUSED), 4, TRUE)

    Here is my channel: "(BRAVO/CHARLIE/ECHO/GOLFE/FOXTROT) refuses to ANSWER" "

    From what I've read in the documentation, "a bouquet is the smallest group of words in which all the query terms occur." For me, this means that BRAVO, GULF and REFUSAL must all be in the 4 words of eachother. That means, GULF and REFUSED must both be in the 4 words of BRAVO
    However, when I run NEAR ((BRAVO,GULF,REFUSED), 3, TRUE) against my string, it returns the document - yet there are 4 words between BRAVO and REFUSED. Huh? Can someone please explain?

    Thank you
    Mimi

    Published by: Mimi Miami on March 21, 2012 14:48

    The doc is not really clear. The search terms themselves are not part of the size of the clump. You can, if you wish, it seems the number of words without correspondence between the corresponding terms.

    See the example:

    drop table foo;
    create table foo (bar varchar2(2000));
    insert into foo values ('a b c d e f g h i');
    
    create index fooindex on foo(bar) indextype is ctxsys.context
    parameters('stoplist ctxsys.empty_stoplist');
    -- otherwise a and i are stopwords
    
    select * from foo where contains (bar, 'near((a, c), 1)') > 0;
    select * from foo where contains (bar, 'near((a, c, e), 2)') > 0;
    select * from foo where contains (bar, 'near((a, c, e, g), 3)') > 0;
    select * from foo where contains (bar, 'near((a, c, e, h), 4)') > 0;
    

    This research all use the minimum size of bouquet to take his foot on the document.

    Edit: actually, it's still a little simplistic. If we change the 'document' to ' a, b c, c, d e f g h I ' (repeated note 'c') then most of the queries above won't work - need to add 1 to the size of each clump. "

    Published by: Roger Ford on March 21, 2012 15:21

  • How to create drop down menus in Muse with more than two tabs

    The widget menu pullsown does only two tabs. How do you do this more than two tabs?

    By default, the tabs in the menu widget are generated in Muse based on the site map, that you define in outline view. This is configurable based on the Menu type setting you choose in the options Menu If you wish, only, upper level pages subpages too or manual. So in order to add a third menu tab, you simply add a third upper level page.

    I would like to know if it's not what you're looking for and what exactly you're trying to reach.

    Thank you

    Vinayak

  • A single Oracle block can contain lines of two or more than two tables?

    Hello

    I read of Tom Kyte Expert Oracle Database Architecture database Oracle 9i, 10 g and 11 g programming.

    He said block section of conceps about Oracle
    The table directory, if present, contains information about the tables that store rows in this block
    (data from more than one table may be stored on the same block).
    How is it possible when a block may be the only measure and a measure can only be attributed to a single segment.

    Thank you
    Ankur

    Published by: 853914 on November 27, 2011 10:47
    typo

    Published by: 853914 on November 27, 2011 10:48

    This can happen when the table is a table cluster: http://docs.oracle.com/cd/E11882_01/server.112/e25789/tablecls.htm#CNCPT608.

    Tom Kyte book, it is detailed in Chapter 10 of database Tables.

    Edited by: P. Forstmann Nov. 27. 2011 19:56

  • Great way to add more than two tables on the data sources

    Hello world

    I would like to confirm everything that follows before doing so on my interface.

    I work with an interface that is suppoused to pass data from some of the oracle tables in a DB X to an oracle table in a DB Y.

    The target data store got a foreign key, that is why I have to download two tables on the area of thesources. Is this right? Should I tell the two tables sort? I mean those procurement.

    I know this may seem a stupid question, but I like teo do things and to understand what I do in the future I can improve! If you can recommend me some additional reading on this I would really aopreciate your help and your advice.

    Do not hesitate to contact me if additional information is required.

    Best regards.

    Jaison

    If the form of files your multiple source tables are a unique entry in the table target, then they will certainly be linked. You can drag columns from a source model to another model of source to generate a join in the designer criteria.

  • Sharing a ROW with more than two VM for sharing of files only.

    Hi all

    I have a 10 GB LUNS (RDM) I formatted in VM - A as NTFS, I want to share this RDM with VM - B (same windows)

    but I'm not sure how to do it. This is a supported scenario?

    It's just for file sharing in the case of a virtual computer is DISABLED.

    Thank you

    Kind regards

    AWT

    This isn't a vmware limitiation... its a limitation of the Windows operating system, it will put locks on disks and corrupt...

    You will need the Services of Cluster Micrsooft...

  • Presentation of master-detail Spry insert cannot get more than two columns?

    Ive been trying to get more than two columns only experiment with spry data sets and can not with the option to «insert master/detail layout» layout

    What I am doing wrong?

    ??????

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
    "< html xmlns ="http://www.w3.org/1999/xhtml"" xmlns: spry = "http://ns.adobe.com/spry" > ""
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
    < title > Untitled Document < /title >

    < script src = "SpryAssets/SpryData.js" type = "text/javascript" > < / script > "
    < script src = "SpryAssets/SpryHTMLDataSet.js" type = "text/javascript" > < / script > "
    < link href = "SpryAssets/SpryMasterDetail.css" rel = "stylesheet" type = "text/css" / > "
    < script type = "text/javascript" >
    DS1 var = new Spry.Data.HTMLDataSet ("benefitsdata.html", "bizben", {firstRowAsHeaders: false});
    < /script >
    < / head >

    < body >
    < div align = "center" >
    < div class = "MasterDetail" >
    < div spry: region = "ds1" class = "MasterContainer" >
    < div class = "MasterColumn" spry: repeat = "ds1" spry: setrow = "ds1" spry: hover = "MasterColumnHover" spry: select = "MasterColumnSelected" > {column0} < / div >
    < / div >
    < div spry: detailregion = "ds1" class = "DetailContainer" >
    < div class = "DetailColumn" > {column1} < / div >
    < div class = "DetailColumn" > {Column2} < / div >
    < div class = "DetailColumn" > {Column3} < / div >
    < / div >
    < br style = "" clear: both "/ >"
    < / div >
    < / div >
    < / body >
    < / html >

    ____________

    Spry framework all related examples are available here: http://adobe.github.com/Spry/samples/ you can take a look.

    On a sidenote, Spry has been deprecated and is no longer officially supported by Adobe: http://blogs.adobe.com/dreamweaver/2012/08/update-on-adobe-spry-framework-availability.htm l

    I would recommend that you switch to a jQuery library to your other needs.

  • Lenovo u300s came with the crack in the case. Queued for more than two hours. Help, please!

    I received my phone Friday and noticed shortly after opening the package that there is a crack in the bottom right of the laptop cover. The bottom of the laptop is now separating it from the case.

    I spent more than two hours on hold trying to request a RMA. This is unacceptable.

    I want a full refund, that this failure to Lenovo may have been spotted before it was delivered to me.

    My customer information are below. Please contact me to correct this situation.

    Order number: 4288307601

    number of cases: 8000174706

    Note of the moderator; personal information under the protection of its own branch

    Hey elhortez,

    Working to get support for you to get the process of refund for you. I'll follow to the top as soon as I can with confirmation.

    Thank you

    Ty

  • When I click on the download button opens a page with three small boxes, and I think that this means a wait, but they lasted more than two hours, unfortunately and I tried many things and each time gets the same, I work now want photoshop required a

    When I click on on the download button opens a page with three small boxes, and I think that it means a wait, but they lasted more than two hours, unfortunately and I tried much and each time gets the same thingit's working now, I want photoshop necessary and reminders even when I tried to buy the same thing happened to me Please I want to a quick solution

    Make sure that you have enabled cookies and clear your cache.  If he continues to not try to use a different browser.

  • When you subscribe to creative Cloud(Photoshop and Lightroom), that come with more than one license, and is it possible to install it on Windows and Apple (if it comes with two licenses)? Thank you.

    When you subscribe to creative Cloud(Photoshop and Lightroom), it does it with more than one license, and if so, is it possible to install on Windows and Apple OX? Thank you.

    A Cloud subscription provides for the installation of facilities to work on both machines.  You can have (Windows and Apple OX) operating systems.

  • Cannot print more than two pages

    Hello here

    I have a rather strange problem today: one of my users cannot print more than two pages...

    Regardless of the printer, the application or document, this specific user will receive the first two pages printed on the right, then a windows error (cannot print, the likely reason is a failure of the network, not enough memory, etc.)

    Current config is

    -User logged on the Witch of Windows 2008R2 Server Citrix XenApp 6.5 (published desktop).

    -Print server Windows 2008R2 with something like 150 shared printers

    I tried with other printers and file formats, on separate servers, it's always the same.

    Of course, everything works perfectly fine for other users...

    I'm not sure if any parameter can block printing up to two pages only, or anything else. Before you delete and recreate the user profile, as everyone has an idea?

    Grey'

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • Photoshop Mix supports more than two layers

    Often when I composite that I find myself with three or more layers, as I often separate a base background and foreground elements image and add another cut in the ground, middle between. Are there plans to Mix support more than two layers, as I am currently limited to two making it useless for anything whether it is more cutting.

    Here are some features, I think that this application should be useful;

    • Add more changes to the version of the Tablet options to the phone version, they are useful and you give no reason do not include them.
    • As I asked here can we have more than two layers in favor.
    • Any chance of support for layer masks.
    • Can we have support for color curve adjustments.
    • Can I have more means to add and remove the smart tools from a selection of cutting is great, but sometimes I have a little precise painting inside and out around the edges.
    • Can we have the advantage of refine also included.

    OK so this all sounds rather negative but there are something does a very good Mix, that's why I'm so frustrated by his lack of other functions;

    • The intelligent cutting tool is the fastest way to get a reasonable cut I've never seen and is great, but as I say, I would like to be able to narrow down the selection by other means.
    • Moving and positioning of one single layer on the other is quick and simple and intuitive unlike photoshop Touch where the rotation of the image at the top has been slow and clumsy.

    This app could be great but at the moment it feels fully functional for work that it is apparently designed to do. Adobe do have plans to add features I ask here? Or other features, and in what time frame?

    Hello

    Your suggestions are really valuable for us and most of them are already on our roadmap.

    To answer your questions:

    1 Mix supports up to 5 layers since version 2.0 on iOS devices.

    2 flip layer is also supported for 2.0.

  • Can I enable CC on more than two computers at the same time?

    See what adobe is always allow two computers active simultaneously?

    This is a subscription service and, while we're technically downloading the software, we don't really "own" it as it can be 'locked' if we go over our activations.  From what I've seen in many forums both in and out of Adobe, three computers seems to be the standard of what I see if I beg the question...

    What is the problem with allowing only TWO computers active being allowed to run the software at any time?


    And then I imagine that, logically, there is a problem if I wanted to use CC on a mobile device, but also my computers?

    With a music subscription service, once the music unsubscribe disappears and everything is fine - and I can access from multiple devices.  So why is Adobe being so restrictive with PS and LR (and CC in General)?  It seems rather strange that if I want to access PS/LR on a single machine, LR on the other and the first on a third, then I cannot, although there is never more than two instances of any single software used is THREE subscriptions - but it is yet another issue.

    If it can't get it fixed, maybe I should just watch Pixelmator and without having to worry about this.

    Please... give an overview.

    the only possible limitations are:

    1. you can use more than one activation of cc at any moment.  That is to say, you can use one computer at a time.  (not much of a limitation, IMO.)

    2. you must disconnect (your other connected computers) before the signature of the component snap on a 3rd, 4th etc. computer.  Once again, no downside unless you didn't have internet access to important moments and for long periods of time for the computer or computers that you need to connect.

  • VM with more than 4 cards (how about 14 NIC?)

    I'm interested to know if someone has built a virtual machine in ESX 3.5 with more than 4 vNIC.

    I have a specific application to which we want to build two VM.    A virtual machine would have ideally 7 vNIC and the other 14 (fourteen Yes) vNIC.    Has anyone edit the VMX file successfully to create such a configuration?

    (Note: I am aware that several IP may be related to a single network adapter.)  This type of configuration is not enough)

    The total number of virtual PCI devices that can have a virtual machine is 6. Assuming you need to at least a virtual scsi controller and a single virtual video card (no more no less), the number of virtual network adapters, you can currently have is 4.

    Sanjana-

  • Need help: column dimension a assoc with more than 1 level

    Hello

    I try to have several paths of forest for a single dimension. For example, the Date dimension should be navigable by the following hierarchies:

    DateDimension
    + - Calendar year
    ... - Calendar quarter
    ... - Calendar month
    ..................-- Day
    + - Calendar year
    ... - Day

    So, in other words, in the answers, I should be able to add 'Calendar year' to my report, view the results and then click down the calendar year-> Calendar Quarter trail-> month-> day OR calendar-> day.

    However, when I have this model in the administration tool, it allows him, but then I add the column in the answers and get a runtime error:
    + [nQSError: 14064] dimension [column name] column has associations with more than one level.

    This is possible to BO and other tools. If it is not possible in Oracle BI EE, then another alternative would be to have two separate versions of the "calendar year" added to the report in the responses, each with their own drill path.

    Any ideas?

    Thanks for any help you can provide.


    Matt Warden
    Balanced Insight, Inc.

    Hello

    I don't if it good or bad, but simply give a shot home

    In RPD create year--> quarter---> month--> day then right click on the year and select shared as child level and select level day in. Double click on the level of the year and in the path of favorite drilling choose quarter and the day in it.
    Results:
    In the report when I click on the year he takes me to the day and then again by clicking on the year I give quarter, month.

    Hope this helps and let me know if it does not work.

    Thank you.

Maybe you are looking for

  • How can I get the icon of application on the right side of my dock?

    Hi all I've recently upgraded to El Capitan 10.6.8 Snow Leopard! WOW! I know that I lived in the past. in any case, I tried dragging the applications from the finder icon in the right side of my dock. It's for me are my application icons piled on eac

  • Camileo S20 records the film in a weird format... QuickTime?

    Hello, I just bought a Camileo S20 camera and had the following problem When I put the files on my Mac, I can only play with vlc. iMovie/iPhoto, or better QuickTime does not recognize the file! I don't want to start conversion of movies, I need a sim

  • ML6000 not detected in Windows Server 2012

    Hello Our ML6000 is not detected by a new Windows Server 2012 host. It is not found in the Device Manager. However, the 3 SAS LTO 5 inside drives are detected properly. It used to be connected only to a Windows 2003 R2 server and is detected without

  • BlackBerry Smartphones RIM_bca28a80 - e9c0 - 11 d 1-87fe-00600811c6a2 "emails?

    How can I get rid of these emails, I get 100 per day? I have the curve 8330 with verizon. Any advise would be great to ge. Thank you

  • Unity Inbox for unit 5 X

    I have a client who has the Unit 5 X VM only, who want the opportunity to be able to retrieve their messages and store it on their PC. From my research, I realized you can use unity Inbox through the PCA. Customer has no problem with the purchase of