Database diagram, unable to hide columns

Hi, I've installed JDeveloper 11.1.1.2.0.
If I create a diagram and I place a table I can see all the columns of that table.
In previous version (i was using the jdeveloper1111 beta preview...) it was possible to hide some columns by right clicking on the column -> hide selected shape.
I still can see this option but it's disabled (gray):
[http://www.flickr.com/photos/26280288@N05/4133452938/]
This is a normal behavior?
Thanks
Regards
Adriano

a bit late, but for the others ... easily possible:
FORM hide_column TABLES ft_fcat STRUCTURE lvc_s_fcat.
   DATA ls_fcat      LIKE LINE OF ft_fcat      .
   ls_fcat-fieldname = 'ALV_FIELD'       .
   ls_fcat-tabname   = 'ALV_STRUCTURE'        .
  ls_fcat-no_out    = abap_true               .
   APPEND ls_fcat    TO ft_fcat                .
ENDFORM.                    " HIDE_COLUMN

Similar Messages

  • 10g: Database Diagram "Unable to Locate Elements For ..."

    Hello,
    In experimenting with JDeveloper 10g Diagram feature (IDE version 9.0.5.13.88), I experienced a rather vexing problem. I wondered if anyone could shed some light onto the issue for me and perhaps even help get it corrected.
    I started off by Upgrading/Converting an existing 9.0.3 project up to 9.0.5. I then created a new Database Diagram (File | New..., General -> Diagrams -> Database Diagram). I then dragged 1 unconstrained view and 2 constrained views onto the diagram. It automatically drew the view links. I arranged the views on the diagram and then closed JDeveloper. I then closed the diagram and the workspace. When I attempted to reopen the diagram, I received the following error:
    Unable to Locate Elements for Adhoc Reporting Model
    In the list were the 3 views and associated viewlinks. Pressing continue yielded a blank diagram, much to my chagrin.
    Any ideas?
    Thanks,
    Sean

    When you mention views, I presume that you mean View Objects, if this correct. I also presume that you dragged and dropped these View Objects from the navigator, and that the View Link that you mention was already visible in the navigator, is this also correct?
    Did you see your view objects in the navigator, when you re-opened JDev? Are they in the same project, as your diagram? The diagrammer should have been able to find the objects, if they are visible in your current project.
    You state that you first shutdown JDeveloper, and then closed your diagram, and workspace, did your diagram re-appear as expected when you opened up JDeveloper, and it was only after closing the diagram, and workspace, and then re-opening the workspace and diagram that you ran into problems?
    Did you save everything, before you shutdown JDeveloper?
    There is no known bug on this, so it would be good to get very specific test steps for this, to enable us to log a bug. Incidentally, why did you chose to create a Database diagram, rather than a Business Components Diagram?

  • Hide columns in database diagram

    Hello,
    I have a question that is not specific related to Visio 2010, but I hope someone can help.
    Is it possible to hide the columns in a database diagram ? Of course, I do not want to delete the columns, but only hide them.
    Thanks in advance, Best Regards,
    André.

    Hi,
    As my experience, by the current Visio design, it's not possible to hide the columns in a database model diagram in Visio 2010.
    Hope this helps.
    William Zhou
    TechNet Community Support

  • [SOLVED] Show only primary key columns in database diagrams

    Hi,
    I'd like to create a database diagram with some tables hiding all the columns that aren't primary key or foreign key.
    Currently the only way that I've found is right click on the column's name (in the table body visualized into the diagram) --> Hide selected shape
    I've found the option that permits to visualize the constraint name and (optionally) the relative fields on the same row but what I'd like is something like:
    <Table name>
    <column_name> PK
    <column_name> PK
    <column_name> FK1
    <column_name> FK2
    Do you know a way to do this?
    Many thanks
    Best regards
    Message was edited by:
    Tranen

    Hi Tranen,
    you can view the constraints and respective columns by setting the
    Table Shape Properties in the Property Inspector.
    Select (all) the tables on the Diagram you want
    In the Property Inspector,under Constraints -Set the 'Show Constraint Columns' to 'True',
    Set 'Show Constraints' to 'True' .
    Constraints (PK,UK,FK,Check)
    Also Set the 'Show Columns' option to 'False' .This will be under display options in the Property inspector.
    This should modify the Table shape in the diagram as follows:
    <Table name>
    <PK> PKName:Column1,Column2
    <UK>UKName:Column3
    <FK>FKname:Column1
    are you looking for the same?
    Thanks.

  • SSMS crash when creating new database diagram

    For several years I have been unable to create database diagrams from within SSMS.  I have tried every combination of VS2005, VS2008, VS2012 and VS2013 with every combination of SQL2005, SQL2008, SQL2012 and SQL2014.
    I have installed, uninstalled, and repaired many dozens of times.  I am currently using VS2013 ultimate with SQL2014 express.
    I have tried every related 'workaround' that I can find on the internet.  Still the problem persists.
    Any help would be deeply appreciated.
    Here are the relevant details with file versions:
    In SSMS, I right-click on a database and choose New Database Diagram.  A Blank diagram window appears with the SSMS error dialog:
    ===================================
    Attempted to read or write protected memory. This is often an indication that other memory is corrupt. (Microsoft.VisualStudio.OLE.Interop)
    Program Location:
       at Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.QueryStatus(Guid& pguidCmdGroup, UInt32 cCmds, OLECMD[] prgCmds, IntPtr pCmdText)
       at Microsoft.VisualStudio.Platform.WindowManagement.DocumentObjectSite.QueryStatus(Guid& pguidCmdGroup, UInt32 cCmds, OLECMD[] prgCmds, IntPtr pCmdText)
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.QueryStatus(Guid& pguidCmdGroup, UInt32 cCmds, OLECMD[] prgCmds, IntPtr pCmdText)
       at Microsoft.Internal.VisualStudio.Shell.Interop.IVsTrackSelectionExPrivate.Register()
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConnectSelectionContext()
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.Activate()
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.viewManager_ActiveViewChanged(Object sender, ActiveViewChangedEventArgs e)
       at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
       at Microsoft.VisualStudio.PlatformUI.ExtensionMethods.RaiseEvent[TEventArgs](EventHandler`1 eventHandler, Object source, TEventArgs args)
       at Microsoft.VisualStudio.PlatformUI.Shell.ViewManager.SetActiveView(View view, ActivationType type)
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ShowInternal(ShowFlags showFlags)
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.<Show>b__26()
       at Microsoft.VisualStudio.ErrorHandler.CallWithCOMConvention(Func`1 method)
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.Show()
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.MarshalingWindowFrame.<Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame.Show>b__7a()
       at Microsoft.VisualStudio.Shell.ThreadHelper.Invoke[TResult](Func`1 method)
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.MarshalingWindowFrame.Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame.Show()
       at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VirtualProject.CreateDesigner(Urn origUrn, DocumentType editorType, DocumentOptions aeOptions, IManagedConnection con, String fileName)
       at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VirtualProject.Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ISqlVirtualProject.CreateDesigner(Urn origUrn, DocumentType editorType, DocumentOptions aeOptions, IManagedConnection
    con, String fileName)
       at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ISqlVirtualProject.CreateDesigner(Urn origUrn, DocumentType editorType, DocumentOptions aeOptions, IManagedConnection con, String fileName)
       at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDocumentMenuItem.CreateDesignerWindow(IManagedConnection mc, DocumentOptions options)
       at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDocumentMenuItem.InvokeDesigner(IManagedConnection connection)
       at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDocumentMenuItem.Invoke()
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ToolsMenuItemBase.MenuInvokedHandler(Object sender, EventArgs args)
    Version info taken from Sql Server  Management Studio/Help/About dialog:
    Microsoft SQL Server Management Studio      12.0.2000.8
    Microsoft Analysis Services Client Tools    12.0.2000.8
    Microsoft Data Access Components (MDAC)     6.1.7601.17514
    Microsoft MSXML                             3.0 4.0 5.0 6.0
    Microsoft Internet Explorer                 9.11.9600.17358
    Microsoft .NET Framework                    4.0.30319.18444
    Operating System                            6.1.7601
    DLL versions
    c:\Program Files(x86)\Common Files\microsoft shared\Visual Database Tools
    dsref80.dll  version 12.0.21005.1
    c:\Program Files(x86)\Common Files\microsoft shared\MSDesigners8
    msdds.dll    12.0.21005.1
    msddsf.dll   12.0.21005.1
    msddslm.dll  12.0.21005.1
    msdds.mp.dll 12.0.21005.1
    msddsp.dll   12.0.21005.1
    c:\Program Files(x86)\Common Files\microsoft shared\MSDesigners8\Resources\1033
    msddsui.dll 12.0.21005.1

    Hello,
    There is a Connect item related to this issue. This is the link of that Connect item:
    https://connect.microsoft.com/SQLServer/feedback/details/730985/smss-crashes-when-creating-new-database-diagram
    Try the workarounds posted there (Workarounds section).
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Unable to fetch columns; Invalid state/No Suitable Driver

    Hi!
    I'm trying to populate a combo box with data from a MySQL database (or any other database for that matter), I create a JDBC connection source, and set the following:
    URL = jdbc:mysql://localhost:3306/test
    Driver = org.mysql.jdbc.Driver (i have also tried org.gjt.mm.mysql.Driver)
    Username = anonymous
    Password = <blank>
    Next I create a NBJdbcRowSet and set:
    Command = SELECT * FROM foo
    Connection Provider = connectionSource1 (the above connection source)
    Now if I click the elipses next to Default Column Values, I get the message 'Unable to fetch columns; Invalid State'
    If I replace the NBJDBCRowSet with a NBCachedRowSet, the error becomes 'Unable to fetch columns; No Suitable Driver'.
    The database is browseable in the runtime tab, and the table exists (I can run SQL queries and get the expected results). The anonymous account exists and has access to the tables in question (the same setup is used in a few different applications, all of which work fine). Using the root account gives the same results. Using the PointBase example database gives the same results:
    Driver: com.pointbase.jdbc.jdbcUniversalDriver
    URL: jdbc:pointbase:server://localhost:9092/sample
    Details of setup:
    OS: Windows XP Pro SP2
    IDE: Sun Java Studio Enterprise 7 2004Q4
    Java version in use: 1.4.2_05 (as packaged with the studio)
    MySQL: v5.0.7-beta-nt
    Connector: MySQL Connector/J 3.0.17-ga
    PointBase: As came with Studio Enterprise
    I should mention that I can get DB connectivity in my app, I can create a comboBox and set the model to 'nBCachedRowSet1: name' and the contents of that field appears in my comboBox, however I need to create about a dozen tables and I don't relish the thought of manually creating models for each one ;)
    Any suggestions are appreciated!
    Cheers!
    Darren

    Hi Thanks for your reply.
    I've retried with PointBase and the Sample DB:
    * New project. New JFrame.
    * Create ConnectionSource, NBJdbcRowSet, ComboBox
    * Config ConnectionSource:
    - Driver: com.pointbase.jdbc.jdbcUniversalDriver
    - URL: jdbc:pointbase:server://localhost:9092/sample
    - Username/pass: as per PointBase setup
    * Config NBJdbcRowSet
    - ConnectionProvider: connectionSource1
    - Command: SELECT * FROM CUSTOMERINFO
    - Default Column Values: <open GUI>, <Fetch Columns>, "Unable to fetch columns; Invalid State"
    So this is where I get the problem, I'm not sure if i've buggered it up though, so I continue to see if I can get data:
    - Add Column: NAME
    - OK, Close
    * Config ComboBox
    - Open Model dialog
    - Select Mode: ComboBoxEditor
    - RowSet: nBJdbcRowSet1 (this throws the error again)
    - Column: NAME (entered manually, dropdown is empty)
    - OK, Close
    * Run app
    Errors!
    Seems like the GUI builder did something wrong - it generated a bunch of functions for each thing i added, like this:
    public void setJComboBox1(JComboBox val) {
    this.jComboBox1 = val;
    and the project won't compile. I figure out it should be like this:
    public void setJComboBox1(javax.swing.JComboBox val) {
    this.jComboBox1 = val;
    but the functions aren't doing anything anyway, so I delete them all. I'm starting to think my installation is borked.
    Project now compiles and runs, but there's no data, and I get:
    ClassNotFoundException: com.pointbase.jdbc.jdbcUniversalDriver
    At this point i should probably find the jar with that driver in it and mount this/add it to the classpath, but the boss has decided we'll use Borland Delphi 2005 .NET anyways, so I won't take this any further...
    Thanks for your help guys!
    Darren

  • Errors encountered using Database Diagram in JDeveloper 11g

    Tried to bring an existing MySQL 5.0 database schema into Database Diagram in JDev. Several problems encountered as listed below:
    1. For any columns that are with VARCHAR type and the length is greater than 255, I got "Display Width must be less than or equal to 255". Why JDeveloper sets such limitation even the DBMS allows? What I can do with it? I only want to do the ER modeling or do the reverse engineering here.
    2. I also got "A Foreign key constraint must define at least one column" for some tables that do have FK defined properly. The message seems suggest there is FK defined on NO column. It's not possible to create any constraint without specifying corresponding column(s) in the first place. So I feel this is a misleading message. But what's the really problem behind?
    Has anybody run into this? Any input is highly appreciated! Thanks.

    The details of the error code is like this:
    java.lang.ArrayIndexOutOfBoundsException: 4
         at oracle.jdbc.driver.T4C8TTIdty.marshal(T4C8TTIdty.java:465)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:329)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:490)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:202)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:474)
         at oracle.jdeveloper.db.adapter.AbstractConnectionCreator.getConnection(AbstractConnectionCreator.java:117)
         at oracle.jdeveloper.db.adapter.DatabaseProvider.getConnection(DatabaseProvider.java:233)
         at oracle.jdeveloper.db.adapter.DatabaseProvider.getConnection(DatabaseProvider.java:156)
         at oracle.jdevimpl.db.adapter.CADatabaseFactory.createConnectionImpl(CADatabaseFactory.java:60)
         at oracle.javatools.db.DatabaseFactory.createConnection(DatabaseFactory.java:372)
         at oracle.javatools.db.DatabaseFactory.createDatabase(DatabaseFactory.java:142)
         at oracle.jdeveloper.db.DatabaseConnections.getDatabase(DatabaseConnections.java:633)
         at oracle.jdeveloper.db.DatabaseConnections.getDatabase(DatabaseConnections.java:560)
         at oracle.dbtools.raptor.utils.Connections$ConnectionInfo$ConnectRunnable.doWork(Connections.java:1083)
         at oracle.ide.dialogs.ProgressRunnable.run(ProgressRunnable.java:161)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:615)
         at java.lang.Thread.run(Thread.java:595)
    I'm using JDeveloper 11g Technology Preview 3 to connect and got this error. I've try Jdeveloper 10g version 10.1.2, it can connect successfully.

  • Change the cardinality of a database diagram

    Is it possible to change the cardinality in the database diagram. I tried double clicking the lines etc nothing worked. the default that comes up when i put a foreign key is not always right.

    Hi
    When you draw the FK between 2 tables the cardinality is semantically defined depending on the optionality of the foreign key columns in the FK constraint.
    When the Create Foreign Key dialog appears it defaults to creating a new column in the FK table. By default this is set as optional so the FK is created as 0..1:M. If you wish you can check the 'Set new columns to Not Null' box and the cardinality is set as 1:M. You cannot use the diagram to change that cardinality.
    It is not semantically possible to have a M:M in the database and therefore you cannot model this in the diagram (you are doing Physical modeling in the diagrammer)
    It's not possible to change the cardinality in the diagram and have the underlying optionality of the FK columns change. But I have requested this as a result of your question.
    Many thanks for the question
    rgds
    Susan Duncan
    JDeveloper PM

  • How to create one to one relation in database diagram

    Hi!
    I'd like to create a database diagram in JDeveloper 10g. Is there any possibility to create a one-to-one relation between two tables?
    Thanks in advance,
    Jim

    This seems to be the same problem that I am having. I was trying to create a database diagram with tables imported from the database. I have two tables having a 1 --> 0..1 relationship. However when I pulled these tables on to a database diagram , it displayed as a 1 --> * relationship. I also realized that JDeveloper does not allow you to change the cardinality in a database diagram.
    As a workaround, I created a class diagram and named the classes the same as the database tables. Then I used UML connectors to show the relationships with the correct cardinality. Since I did not need to show the column names on the diagram, it was sufficient for my purpose. I hope this bug is fixed soon, otherwise I will have to use some other tool to create database diagrams.

  • Unable to adjust column mapping

    Hi,
    I have an LOV where I've 4 items from the same table DONOR_TAB
    COLUMN NAMES RETURN ITEM
    FIRST_NAME DONOR_TAB_BLK.FIRST_NAME
    DONOR_CODE DONOR_TAB_BLK.DONOR_CODE
    MIDDLE_NAME DONOR_TAB_BLK.MIDDLE_NAME
    LAST_NAME DONOR_TAB_BLK.LAST_NAME
    I need to add one more item to the LOV
    CITY_NAME DONOR_TAB_BLK.CITY_NAME
    All the above reside in the same block DONOR_TAB_BLK
    CITY_NAME is in the block where all the previous 4 items reside i.e FIRST_NAME,DONOR_CODE,MIDDLE_NAME,LAST_NAME.
    But CITY_NAME belongs to CITY_MASTER_TAB table whereas the previous 4 items belong to DONOR_TAB table.
    When i add CITY_NAME to the record group for LOV and compile , i get the message "Unable to adjust column mapping for form ouptut"
    Why is this? I know i've committed some error somewhere but i'm not sure where.
    Can u help me?

    Are you using Designer to add LOV to a Module Diagram and then generate a Form?
    Or are you using Forms Builder to create record group for LOV?

  • Database diagram issue

    Hi,
    In the database diagram, the datatype of the fields are displayed even if the "show datatype of the column" option is unchecked. Is this a bug? Please let me know.
    Thanks

    Yes this is bug 4613035 and is fixed for the 10.1.3.1 release.
    Regards,
    Lisa
    JDev QA

  • Database Diagram Cardinality in 11g

    I am creating a database diagram in jdev 11g, I can drop foreign key relationships between the table objects, but they always default to * to 0..1
    and I can't seem to see a way to change the cardinality. Anyone know how this is done.
    Orlando

    Hi,
    It depends which method you are using to create the FK and the makeup of the underlying columns of the key
    Also depends which is your 'source' and 'target' table (when drawing the FK or dragging columns) - source is the '1' side and target is the 'm'
    Using the diagrammer you cannot explicitly select the FK line and change the cardinality
    Try doing the following in the diagram and see the differences in cardinality:
    1. create 2 tables (a, b) with no PK defined
    select the FK object in the drawing palette -click on a and drag to b
    the Create FK dialog opens and you can create a PK based on any col in 'a' and the same col in 'b' will be used as the FK column (if it doesn't exist in 'b' it will be created.
    This is 0..1:M
    2. select the FK line and delete it
    mark what was the FK column in 'b' as 'connot be null'
    select the FK object - again drag from 'a' to 'b'
    same FK is created - but this time, as FK column in 'b' is not null - cardinality is 1:m
    3. delete the FK again
    select the PK reference in 'a' and drag it to 'b'
    FK is created in 'b' - 0..1:m and a new column is created for the FK
    but if you double click on the FK in 'b' and change the Local Column to the original FK column (that is not null) the cardinality will change to 1:m
    (note - click next to col name and a dropdown will appear to allow you to select another column)
    4. delete the FK and also delete the PK from 'a'
    select a column from 'a' and drag to 'b'
    UK is created in 'a' and a FK in 'b' with 0..1:m cardinality
    Hope this helps
    rgds
    Susan

  • Database Diagram Tool

    Anyone recommend a tool to produce pretty Database Diagrams?
    Ideally, something that can read our Orcacle 8i Database. i.e. if we add a column - it will automatically add to the diagram (so that the diagram and the database are in sync - I think this is called reverse engineer). Something free or cheap would be nice!

    You are in luck, it's been discussed fairly recently:
    erd diagrams
    ER Diagram

  • Database diagram error

    Hi,
    Viewing SQL Server 2000 tables, when I try to create a database diagram, I get the following error when dragging a table onto the diagram : "columns of type int cannot have a size specified". I can create java classes by dragging the tables across but not an ERD.
    Any suggestions?
    Using 10g on XP. Project is using JDK1.3.2
    Cheers
    Eddie

    Hi Eddie,
    Unfortunately the Database Diagrammer is only supported with Oracle Databases in the current release. The support will be increased in the future to support non-Oracle Databases.
    Thanks,
    Lisa Sherriff
    JDev QA

  • How to get only one line between tables in database diagram?

    Hi!
    I'm using jdev 10.1.3. I've got a database schema with a lot of tables. I would like to have them in one database diagram in compact view with only ONE line between two tables even if there are more foreign key columns between the two tables. In the shema there are a lot of foreign keys with multiple columns and the diagram is hard to read.
    How to archieve this?
    Thanks,
    Carsten.

    hi,
    u should use the same variable across all your queries.In the WAD there is a propoerty "display same variable once". Check that.
    hope it helps,
    regards,
    Parth

Maybe you are looking for