HOWTO: get JDev to show the foreign keys in Conn Nav & struct window

Hi,
I have SQL tables with foreign keys but the JDev connections navigator and table editor dont show them. They just look like primary keys in the "PK" column. The structure window shows a bunch of constraints with names like "SYS_C00143114" which is not very meaningful to me. Surely JDeveloper knows what these magic numbers mean and can trace the foreign keys for me.
How can I get JDeveloper to show the foreign keys, and which table is referenced by that foreign key? Can I make it navigate from a table's foreign key value to the the correct tuple in the referenced table?
Maybe this is an ER if JDev doesn't do this already. Navigating a schema, or drawing it showing all the foreign key references would be very handy. Navigating through actual table data would be nice too.
Cheers,
Simon.

I found "new->Database Diagram" that does a lot of what I wanted, at least in mapping out the foreign key references. Now if I can just figure out how to print a .png file...
It would still be nice for the connection navigator to trace them also.

Similar Messages

  • Show the different key figures

    Hi,
    Can we define a query, and show the different key figures, base on the different value of the characteristic?
    Let's say, in the query, it contains a characteristic called "store", and if the store = A1,i want to only show key figure K1, K2, and a formular =K3/K2;
    and if store = A2,then i want to show key figure K1,K2,and a formular = K4/K2; otherwise(for other store <>A1, or A2), i want to only show K1, K2 and a formular =K1/K2.
    Is it a way fo rme to do that, pls advice.
    Thank you,
    Ping

    Hi Anil,
    I read through the link you given, but still not sure exactly what i should do to get my report done ¡V I am sorryƒ¼
    What I need is: for store S034 and S035, they has a ¡§store
    Open date¡¨ last year which are as below:
    S034          09/4/2004
    S035          09/18/2004
    And for other stores, their ¡§store open date¡¨ are all in 2003.
    So in the query, I have two key figures: MTD (sales value month to date this year), and MTDL (sales value month to date last year). If I run the query today, which is 21 of Sep 2005, then the date range for MTD will be from 09.01.2005 ¡V 09.21.2005; and the MTDL will be base on the range from 09.01.2004 ¡V 21.09.2004; and I have another formula key figure ¡§percentage¡¨, which compare ¡§this year¡¦s sale month to date ¡§ with  ¡§last year sale month to date¡¨, eg: ¡§percentage¡¨ = MTD/MTDL
    But since for store S034 and S035, the store only open on 09.04.2004 and 09.18.2004 respectively (that means there is no sale value existing before their store open date last year). So for store S034 and S035, we will only use the MTD partially to calculate the ¡§percentage¡¨.  Eg: the date range used for calculation for this year¡¦s Partial sales will be from 09.04.2005 ¡V 21.09.2005 for S034 (K3); and 09.18.2005 - 21.09.2005 for S035 (K4). I have already created key figures for K1, K2, K3, K4, based on the different date range above.
    So the report will look like below (of course, K3,  k4 will be hidden once the calculation of ¡§Percentage¡¨ is done)
    Store     K1(MTD)    K2(MTDL)   Percentage    K3(Partial MTD for S034)   K4(Partial MTD for S035) 
    S031     10            20                10/20   
    S032     15            21                15/21 
    S034     30            35                28/35                   28
    S035     40            39                36/39                                                                        36
    So my main concern is how is formula ¡§Percentage¡¨  can be done based on the different value of store.  Eg, if store is S034, it will take K3/K2; and if it s S035, it will take K4/K2; otherwise, it will take K1/K2.
    I looking forward for your advice please,
    Ping

  • Problem to insert id into the foreign key  php/mysql

    Hello all,
    I'm having rouble to understand the process and there is no tutorial about my problem anywhere
    I have two table:
    Table 1 (member) with id, name, phone etc
    Table2 (post) add_id, title, description, price, member_id
    I got a form to post the add and I need to insert the id of table 1 into my table 2 member_id zone
    Fisrt I did the recorset to get user id
    $colname_rsMember = "-1";
    if (isset($_SESSION['MM_Username'])) {
      $colname_rsMember = $_SESSION['MM_Username'];
    mysql_select_db($database_connect, $connect);
    $query_rsMember = sprintf("SELECT * FROM member WHERE username='".$_SESSION['MM_Username']."'")or die(mysql_error());
    $rsMember = mysql_query($query_rsMember, $connect) or die(mysql_error());
    $row_rsMember = mysql_fetch_assoc($rsMember);
    $totalRows_rsMember = mysql_num_rows($rsMember);
    This part is working and I'm able to retreive info via echo just for testing
    After this code I have my insert code
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form2")) {
      $insertSQL = sprintf("INSERT INTO add (title, `description`, price, member_id) VALUES (%s, %s, %s, %s)",
                           GetSQLValueString($_POST['title'], "text"),
                           GetSQLValueString($_POST['description'], "text"),
                           GetSQLValueString($_POST['price'], "text"),
                           GetSQLValueString($_POST['member_id'], "int"));
      mysql_select_db($database_connect, $connect);
      $Result1 = mysql_query($insertSQL, $connect) or die(mysql_error());
      $insertGoTo = "ok.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    Do I need to include hidden field in y form?
    I'm having the same error message. Col member_id can't not be null
    Any idea what I'm doing wrong?
    Thank You!

    When someone logs in, Dreamweaver creates a session variable called $_SESSION['MM_Username']. Use that session variable to create a recordset to get the user's ID, which can then be entered into the foreign key field of the child table.
    Dreamweaver automatically puts the code for recordsets immediately above the DOCTYPE declaration, so you will need to move it above the code for the Insert Record server behavior. So, it needs to be in this order:
    Recordset to get user ID
    Insert Record for child table

  • Populate the foreign key automatically

    HI All!
    I have a form in which there are two data blocks One is emp_master and other is salary_details.I have a foreign key salary_code in Emp_master and similarly Salary_code as primary key in salary details.I have used two list item in place of Emp_id and Salary_code.I want that when I select the emp_id as 10 from the list automatically salary_code list item should get populated by 1 item in the list item.Similary the rest should follow .Please someone look into this matter it would be a gr8t help to me.
    Thanks

    Abha,
    I would not use list items for this. Instead, use a multi-record text box with a scroll bar. It looks and behaves like a t-list, but is much easier to code and manage.
    Use the datablock wizard to create the master-detail relationship. When you use the wizard, all the code will be generated for you. Then use the layout wizard, and display multiple records with scroll bars.
    BTW, it is customary to have the primary key in the master, and the foreign key in the details. In your case it is backwards.
    Also see
    http://www.oracle.com/technology/obe/obe_as_10g/bi/forms/formsmasterdetailobe.htm

  • Identifying the Foreign Keys

    How can I identify the Foreign Keys in a row ???
    Regards,
    Junior

    How can I identify the Foreign Keys in a row ???Junior:
    Are you referring to FKs of a View Row involved in a View Link? If so, a View Row could have multiple FKs if it is involved in multiple View Links.
    By writing MT (middle-tier) code, you can get the attribute list from the View Link. Note that this logic is only available in MT. If you need this info in the client, you can write this logic in MT and export it as a custom method that can be called from client.
          // Get the list of view links that this VO ('vo')
          // is involved in.
          String[] vls = vo.getViewLinkNames();
          // Get the View Link object.
          ViewLink vl = myAM.findViewLink(vls[0]);
          // Get the View Link definition.
          oracle.jbo.server.AssociationDefBase vlDef = (oracle.jbo.server.AssociationDefBase)
               ((oracle.jbo.server.ViewLinkImpl) vl).getDef();
          AttributeDef[] attrs;
          // Get the source side attribute definitions
          attrs = vlDef.getAttributeDefImpls();
          for (int j = 0; j < attrs.length; j++)
             System.out.println("  Attr: " + attrs[j].getName());
          // Get the destination side attribute definitions
          attrs = vlDef.getOtherAttributeDefImpls();
          for (int j = 0; j < attrs.length; j++)
             System.out.println("  Attr: " + attrs[j].getName());

  • When I open an event, including flagged items, the photos appear one by one, not as thumbnails, so I can't export more than one phot at a time. How do I get iPhoto to show the thumbnails?

    When I open an event, including flagged items, the photos appear one by one, not as thumbnails, so I can't export more than one phot at a time. How do I get iPhoto to show the thumbnails?
    I've tried rebuilding the thumbnail database, but that hasn't helped.

    What version of iPhoto and system are you running?
    Try moving the Zoom slider at the bottom of the iPhoto window all the way to the left.  Does that let more than one photo display in the window?
    OT

  • On OSX Lion i used to drag the window to the top of the screen and get maximise, and drag the window right or left to show the both beside each other just like windows 7, How to do it on Mountain lion ?

    On OSX Lion i used to drag the window to the top of the screen and get it maximise, and drag the window right or left to show the both beside each other just like windows 7, How to do it on Mountain lion ?

    That has never been a feature of Mac OS X, but I believe there was some kind of third-party software that could add that capability.  i don't recall what its name is, but you must have had that installed, and it either isn't installed anymore (perhaps removed as incompatible?) or is not working properly in Mountain Lion.

  • I am unable to create the Foreign key

    Hi,
    I need to create the Foreign key which reffered to composite primary key.
    the following table structure
    Parent table
    DIVISION, PROJECT_NUMBER, COMPETITION_PROJECT_NUMBER, COMPETITIVE_STMT_TYPE, SEQUENCE, CATEGORY, STATEMENT, USER_ID, RECORD_MODIFICATION_DATE
    Here composite primary key columns(DIVISION, PROJECT_NUMBER, COMPETITION_PROJECT_NUMBER, COMPETITIVE_STMT_TYPE, SEQUENCE)
    Child Table
    DIVISION          VARCHAR2 (4)          
    PROJECT_NUMBER          NUMBER (10)COMPETITION_PROJECT_NUMBER     NUMBER (10)          
    COMPETITIVE_STMT_TYPE          VARCHAR2 (2)          
    SEQUENCE     NUMBER (2)          
    CATEGORY          VARCHAR2 (100)     
    STATEMENT     LONG          
    USER_ID     VARCHAR2 (100)          
    RECORD_MODIFICATION_DATE     DATE     
    ALTER TABLE COMPETITION_STMT ADD (CONSTRAINT COMPET_STMT_FK_PROJ_NUM foreign key
              (PROJECT_NUMBER) REFERENCES PROD_COMPET_XREF (PROJECT_NUMBER));
    when i am trying to create foreign key i got this error
    ORA-02270: no matching unique or primary key for this column-list
    this is production issue Please help me.
    Thanks in advance
    Regards
    Kumar.s

    ALTER TABLE PROD_COMPET_XREF ADD (
    CONSTRAINT PROD_COMP_XREF_PK_DPNCPNCT
    PRIMARY KEY
    (COMPETITION_PROJECT_NUMBER, PROJECT_NUMBER, DIVISION, PRODUCT_LOC_INDICATOR)
    When you create a foreign key, it must reference a unique or primary key. The primary or Unique key must consist ONLY of those columns upon which the Primary key is based.
    You must Alter the table and add a Unique key if you want to keep your compsite primary key constraint. The Unique key must be for only the column that your foreign key references. Then try to recreate your foreign key.
    I doubt you will be able to add a foreign key because I suspect you might have multiple rows with the same value for this column based on your composite key; however, if you only intend for the project number to be listed only once and to be unique for each row, then the unique key may work or you may want to revist your primary key on this table. Perhaps you don't need it to be a composite PK???
    If you can't work around that, one thing you can do is build a table based just on PROJECT_NUMBER that contains details about the project number and have other tables reference that. That is, if you have multiple rows with the same project number in that table. You may already have one? Perhaps you can build your foreign key to reference that?

  • Cant get downloads to show the save & run boxes.. Adobe flash player

    Cant get downloads to show the save & run boxes in Adobe Flash Player

    You need to proved more information or a screenshot; I cannot understand what you mean.

  • Disable all the foreign keys in a database

    Hy, what sql to use to disable all the foreign keys in a database and how to enable all them again. Thanks

    select * from dba_constraints where constraint_type = 'R' and status = 'ENABLED'
    ALTER TABLE table_name
    disable CONSTRAINT constraint_name;
    ALTER TABLE table_name
    enable CONSTRAINT constraint_name;
    select
    'ALTER TABLE ' || OWNER || '.' || table_name || ' enable CONSTRAINT ' || constraint_name || ';'
    from dba_constraints where constraint_type = 'R' and status = 'ENABLED';
    Execute and save result for enable before disable
    select
    'ALTER TABLE ' || OWNER || '.' || table_name || ' disable CONSTRAINT ' || constraint_name || ';'
    from dba_constraints where constraint_type = 'R' and status = 'ENABLED';
    Execute result for disable.

  • How do you get it to show the temperature when you scroll down?

    On some some IDevices I see when you scroll down, it shows the temperature and the date. But on my iPad mini when I scroll down, it just shows the day. But at the bottom it says, " weather information provided by yahoo" I have yahoo weather installed. How do I get it to show the temperature too? Thanks.

    Settings->Privacy->Location Services->Weather-> Turn it on.
    It will show your current locations weather. Note that it uses GPS and internet access. so it may use your Cellular Data and battery.

  • How do i get icloud to show the open tabs on my phone on my safari?

    How do i get icloud to show the open tabs on my phone on my safari?

    *the open tabs on safari on my iphone 4 to show up on my safari in the icloud icon?

  • How do I get it to show the date & time.

    How do I get it to show the date & time at all times. I don't want to have to click on the day & time to get the date. In the OS 10.4 I could at least get it in the "analog" format. Under leopard it just show a little clock that can't be read.
    I just want to see the time and date at all times in the upper corner on the screen

    Please see my post in your first posting at http://discussions.apple.com/thread.jspa?threadID=1237022&tstart=0
    David

  • How to retrieve the Foreign key information in Oracle

    I want to know how to retrieve the Foreign Key information in Oracle while using SQL Statement?
    I have use three SQL statement to retrieve such information, but the performance is very bad.
    The three SQL Statements are:
    Select constraint_name, r_constraint_name from all_constraints where constraint_type = 'R' and table_name = table1;
    Select column_name from all_cons_columns where constraint_name = cons1;
    Select table_name, column_name from all_cons_columns where constraint_name = r_ccons1;
    Do anyone know another method to retrieve the Foreign Key information which has better performance?

    These sql-statements don't seem very performance intensive. My guess is something is wrong with your database (unless you have millions of constraints). How many constraints do you have? how many concurrent users? What is your dictionary cach hitratio? (other hitratio?) memory problems? other tasks of the computer? is this query the only one being slow? etc.

  • Why do I need to add a wildcard designator to get DIR to show the content of a subdirectory that has an extension?

    Why do I need to add a wildcard designator to get DIR to show the content of a subdirectory that has an extension?
    <#c:#> mkdir subdir.bak
    Directory: C:\users\larry\documents\windowspowershell
    Mode LastWriteTime Length Name
    d---- 9/12/2014 11:10 PM subdir.bak
    <#c:#> dir subdir.bak
    <#c:#> dir subdir.bak*
    Directory: C:\users\larry\documents\windowspowershell
    Mode LastWriteTime Length Name
    d---- 9/12/2014 11:10 PM subdir.bak

    OK, now I see the difference.  Since subdir.bak is empty, I get no output from DIR.  
    Asking for DIR subdir.bak*  is similar to asking for Get-Item subdir.bak which does return the expected result.

Maybe you are looking for

  • Accidentally ended installation as it was installing

    I was trying to end another program while running the itunes setup was running but instead i ended the installation of quicktime. itunes wont open and this message pops up: Quicktime failed to initialize (error -2093) Quicktime is required to run iTu

  • Term Store Error

    Hello, when I want creating a Managed Metadata column for your SharePoint 2010 I get this error: Default termstore for this site cannot be identified. I found a lot of solutions, at this link: http://www.sharepointfire.com/MyBlog/2013/01/default-term

  • LMS 4.1 (Windows) & NCS 1.1 (VM) Upgrade to Cisco Prime Infrastructure 1.2

    Hi All, Im getting a bit confused about the whole upgrade migration process for the following config to Cisco Prime Infrastructure: LMS - Version 4.1 , 500 devices. Windows Server 2008 R2 Standard SP1 NCS – version 1.1 , 50 devices  Red Hat Linux ( 6

  • How to send reciever side errors back to sender

    Hi Experts, i am doing PROXY to JDBC syncronous scenario, my requirement is if any errors in reciever side i need to send those erros back to R3 system. errors like if any autorization problem, coneection problem, query time out. can anyone suggest m

  • Urgent plz help in currency conversions

    hi to all          wrbtr = sum of dmbtr wrbtr = document currency dmbtr = local currency how can i match these there is any function module to convert one to other. plz help me in this issue take example wrbtr = 20,000 sum of dmbtr =200 i am not unde