Code Insight.... Cloumn Names?

Hi Guys,
I was recently using SQL Worksheets and toyed with the code insight, and noticed that if I type in the schema name, code insight kicks in an provide a list of table names in that schema.
But when I reach the where section of my SQL and the code insight does not provide a list of column names for the table alias. That sucks! :o)
Am I missing something?
Example:
select *
from xx.(1) xse
where xse.(2)
(1) code insight provides list of table names.
(2) code insight does NOT provide a list of column name for table xse.

Might be worth posting this one over on the SQL Developer forum - I believe we get this functionality from SQL Developer in future releases of JDeveloper.
Thanks,
Brian

Similar Messages

  • Case of schema names with code insight

    I'm running SQL Developer 3.0.04. I want my SQL statements to be of the form "SELECT * FROM schema.table" but I can't seem to find the right code insight option to make this happen. There seems to be a way to make everything lowercase (including keywords) but the closest I can get to what I really want is "SELECT * FROM SCHEMA.table".
    How do I stop the schema name being upper-cased when using code insight without affecting the keywords?

    I don't think you're understanding the issue. This is about code insight, not about the tables being defined in lower case. Here's a step by step example:
    SELECT * FROM mys<ctrl+space> -> SELECT * FROM myschema
    SELECT * FROM myschema.f<ctrl+space> -> SELECT * FROM MYSCHEMA.fred
    when what I want is "SELECT * FROM *myschema*.fred"

  • 30EA2 code insight completion odities

    update statements seem not to be supported by code insight completion for table name:
    For example for table 'table_name':
    type 'update table_' and press ctrl-space does not complete table name.
    When table name is typed, completion for field names works.
    Completion of select statements:
    Type ' select ' (space is important)
    Popup show 'select * from' among others, select 'select * from' and get:
    'sSELECT * FROM'
    This happens only if select is the only statement on the worksheet.

    Try searching this has been answered.
    http://forums.oracle.com/forums/search.jspa?objID=f260&q=alias+insight
    -kris

  • BUG: Code Insight

    JDeveloper 11g Preview 2 on Windows XP
    Code Insight is not refreshing properly. Two use cases:
    1) Light grayed out indicator that member variable is not in use in a source file does not reliably disappear if you copy and paste exact member variable name into a method;
    2) Redline indicators demonstrating code syntax errors do not disppear if you correct the error. It happens with all sorts of errors after their correction: exceptions not being thrown or caught, methods not being implemented, etc...I have to shutdown JDEV process and restart to get them to go away.
    Nice interface if the annoying messages would go away when fixed.

    It is likely a threading issue which means that it does not happen reliably -- however, next time I encounter it -- i will record my JDeveloper session and upload the recording. The amount of code is probably not feasible. However, I bet you could reproduce if you did the following things:
    1) Create a couple of user libraries and import into your project;
    2) Create some simple class files and use classes from imported jars;
    3) create some member variables based on imported class files;
    4) Use the "generate getters and setters" from member variables by placing your cursor on class file name (I notice that the default behavior is not consistent -- sometimes it shows all the getter and setter methods of every variable with 1 randomly checked --- other times none are checked -- other times all are checked) and generate;
    5) continue doing this until you begin to get code insight errors to correct. Notice how the IDE begins to slow down as it appears to be processing much more in the background (also not good -- I am tempted to just turn code insight off and use the compiler);
    Anyway -- stay tuned

  • Table aliases and Code Insight Completion

    Oops, never mind, I see there are lots of threads on this... so the big question is: Does anyone know when this will be supported?
    One thing I am noticing with the new SQL Developer is that if you use table aliases (as we do here) that Code Insight Completion doesn't work. For example, if I type the following SQL:
    SELECT *
    FROM My_Table mt
    WHERE mt.
    At the point where I put the dot (i.e. mt.) I would assume that code insight would drop down a box showing me the columns in the alias mt (i.e. My_Table). But nothing happens. Now if I put the full table name My_Table in there (i.e. WHERE My_Table.) then the drop down occurs. But not if you use a table alias - and putting the full table name in defeats the purpose of using aliases.
    I know that in other SQL developers (such as PL/SQL Developer) this works fine and we are used to it working this way with aliases. Is there another way to get SQL Developer to do it this way? Or is this going to have to be a NEW feature later on?
    Thanks.
    Tom
    Message was edited by:
    tbsimpson

    Try searching this has been answered.
    http://forums.oracle.com/forums/search.jspa?objID=f260&q=alias+insight
    -kris

  • Code Insight Weaknesses / Issues

    Congratulations Oracle, SQL Developer is a great product.
    However, major gripe for our developers is the weakness of SQL Developer's code insight. For example
    a) Package names and or proc / func names - all of the results are always in uppercase, rather than the case they were compiled with. Our packages and package procedures are mixed case, because they are far more readible that way.
    1. I type P_ [press ctrl + space] I see :
    P_ACCOUNTS
    P_ACCOUNTPOSTINGS
    P_UTILS
    whereas I should see:
    P_Accounts
    P_AccountPostings
    P_Utils
    as this is the case of the compiled objects and this is how they appear in the navigator.
    2. I select P_UTILS and get P_UTILS in editor, then type ".", I see :
    INDEXEXISTS
    CONSTRAINTEXISTS
    OBJECTEXISTS
    whereas I should see:
    IndexExists
    ConstraintExists
    ObjectExists
    b) Object type names would be clearer than a glyph. I'd prefer to see function MYFUNC, rather than a glyph and MYFUNC.
    c) Code insight gives you no idea what parameter types are, and we can't seem to get the "parameter insight" facility working
    I type MY and invoke code insight :,
    SQL Developer would show : MYFUNC(PINPUT1,PINPUT2)
    TOAD would show : function MyFunc(pInput1 integer, pInput2 integer) return integer;
    and TOAD will maintain showing the parameters as I type them in. TOAD is far superior is this respect.
    We hope you can address this for the next version.
    Paul

    This insight will be overhauled. It has many issues. Including what you have listed.
    -kris

  • Code Insight deletes code!

    JDeveloper 10.1.3.2.0.4066
    I've been working with JDeveloper 10.1.2 for a number of years and make good use of the code insight features. However I've recently started to evaluate 10.1.3.2.0 and I've noticed a disturbing change in behaviour. If I place the cursor in the middle of an existing method call in my code (i.e. get|Name()) and invoke code insight with Ctrl-Space the feature now truncates my method call to the point where the cursor is placed, leaving get|().
    As far as I'm concerned, this is very BAD! I don't want any feature to EVER change my existing code without me performing a conventional commit action (left mouse-click or enter key)
    When this feature was non-intrusive I frequently used it to check for other methods on the object instance, or even check the return type for the existing method call. I can't think of any scenario where I would want the code to change unless I actually select an alternative method from the menu.
    Has anybody else had problems with this feature?
    Can I configure it to behave as it did in 10.1.2?
    What's the best way for me to feed back my discontent?
    Does anybody else agree with me that this is not a positive enhancement?!
    Matthew

    Thanks for reporting, I confirmed this behavior in 10.1.3 and the 11 technology preview.
    The good news are that in newer builds of 11 this has been fixed - so you shouldn't be seeing this in the future.
    I filed a bug (#6165291) on this to see if we can get it fixed in a 10.1.3 patch.
    (for now you can just press ctrl+z to return the code to its previous state).

  • Code Insight and mixed case PL/SQL identifiers

    Let’s assume I hava a package “Test” with a procedure “DoSomeReallyHardWork”.
    I would like code insight to complete a call of this procedure and preserve the original case.
    I don’t like “test.dosomereallyhardwork” and I strongly dislike “TEST.DOSOMEREALLYHARDWORK".
    Is there any way to achive this kind case preservation?
    I recompiled my code with PL/Scope turned on, but it seems that all identifiers are stored in uppercase. Bug or feature?

    The identifiers are case insensitve, so your code could as easily read
    create or replace procedure TestProc is
    ThisVarHasNoMeaning varchar2(100);
    begin
    ThisVarHasNoMeaning := 'Test';
    THISVARHASNOMEANING := 'Other';
    end TestProc
    You only have one identifier, but can have multiple capitalizations. While it would be nice if the declaration was the 'definitive' one, it looks like they've gone the easy route and uppercased them all for consistency.
    If you used _ (the This_Var) in your variable names, at least you could use initcap to pretty them up.

  • Code insight and possible side effects

    Hi,
    I'm using SQL Developer 1.2 on MacOSX 10.4.9 (MacBook Pro) and noticed the following problems:
    In SQL Worksheet, start typing a query and use the shortcut for code insight ie: "SELECT * FROM SCHEMA.EMPL":
    Nothing happens, no completion popup is displayed (first problem)
    Hit backspace to correct the table name : the backspace is disabled (second problem) as other keys (already mentionned in the forum).
    Load presets from preferences: keys are now working again (... except code insight)
    Regards
    FJ

    Hi,
    I downloaded the latest release of SQLDevlopper (multiplatform this time) and here is the error log linked to my actions.
    - Create a new connection, test it with success and save. - OK
    - Connect to the new connection:
    java.sql.SQLException: Fonction non prise en charge
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
    at oracle.jdbc.dbaccess.DBError.throwUnsupportedFeatureSqlException(DBError.java:690)
    at oracle.jdbc.OracleDatabaseMetaData.getDatabaseMajorVersion(OracleDatabaseMetaData.java:4028)
    at oracle.dbtools.raptor.InitializeConnectionListener.initConnection(InitializeConnectionListener.java:99)
    at oracle.dbtools.raptor.InitializeConnectionListener$1.run(InitializeConnectionListener.java:73)
    - Type query select * from myschema. :
    Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: oracle.jdbc.OraclePreparedStatement.setStringAtName(Ljava/lang/String;Ljava/lang/String;)V
    at oracle.dbtools.db.DBUtil.bind(DBUtil.java:748)
    at oracle.dbtools.db.DBUtil.bind(DBUtil.java:1094)
    at oracle.dbtools.db.DBUtil.executeOracleQuery(DBUtil.java:470)
    at oracle.dbtools.db.DBUtil.executeQuery(DBUtil.java:497)
    at oracle.dbtools.db.DBUtil.executeReturnArrayList(DBUtil.java:658)
    at oracle.dbtools.db.DBUtil.resolveName(DBUtil.java:1142)
    at oracle.dbtools.db.DBUtil.resolveName(DBUtil.java:1108)
    at oracle.dbtools.raptor.insight.CompletionInsight.getInsightData(CompletionInsight.java:236)
    at oracle.javatools.editor.insight.AbstractInsight.showInsight(AbstractInsight.java:777)
    at oracle.javatools.editor.insight.AbstractInsight.showInsight(AbstractInsight.java:707)
    at oracle.javatools.editor.insight.AbstractInsight.actionPerformed(AbstractInsight.java:502)
    at javax.swing.Timer.fireActionPerformed(Timer.java:271)
    at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Now the backspace key is not working till the reloadBuffers() function is called
    Hope this helps
    Message was edited by:
    user580108

  • EA1 - Error displaying code insight

    All,
    I recently tried to use the code insight feature. In the main worksheet, the cursor stops blinking and then it starts back up after a few seconds - the insight window never shows. But when I check the logging page, I see the following two error messages.
    SEVERE     200     0     oracle.dbtools.raptor.insight.InsightableOracleDatabase     
    SELECT object_type type, user owner, object_name, null column_name
    FROM all_objects
    WHERE rownum <=20 and object_type IN ('FUNCTION', 'PACKAGE')
    and owner = ?
    union all
    SELECT 'FUNCTION' type, owner, procedure_name object_name, null column_name
    FROM all_procedures
    WHERE rownum <=100  and object_type = 'PACKAGE'   and procedure_name is not null
    and object_name = ?
    SEVERE     201     78     oracle.dbtools.raptor.insight.InsightableOracleDatabase     
    ORA-00904: "OBJECT_TYPE": invalid identifierDan

    Indeed:
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
    PL/SQL Release 10.2.0.1.0 - Production
    CORE     10.2.0.1.0     Production
    TNS for Solaris: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    5 rows selected
    desc all_procedures
    Name Null Type
    OWNER NOT NULL VARCHAR2(30)
    OBJECT_NAME NOT NULL VARCHAR2(30)
    PROCEDURE_NAME VARCHAR2(30)
    AGGREGATE VARCHAR2(3)
    PIPELINED VARCHAR2(3)
    IMPLTYPEOWNER VARCHAR2(30)
    IMPLTYPENAME VARCHAR2(30)
    PARALLEL VARCHAR2(3)
    INTERFACE VARCHAR2(3)
    DETERMINISTIC VARCHAR2(3)
    AUTHID VARCHAR2(12)
    11 rows selected
    ++++++++++++++++++++++++++++++++++++++++++++
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Prod
    PL/SQL Release 10.2.0.2.0 - Production
    CORE     10.2.0.2.0     Production
    TNS for Linux: Version 10.2.0.2.0 - Production
    NLSRTL Version 10.2.0.2.0 - Production
    5 rows selected
    desc all_procedures
    Name Null Type
    OWNER VARCHAR2(30)
    OBJECT_NAME VARCHAR2(30)
    PROCEDURE_NAME VARCHAR2(30)
    OBJECT_ID NUMBER
    SUBPROGRAM_ID NUMBER
    OVERLOAD VARCHAR2(40)
    OBJECT_TYPE VARCHAR2(19)
    AGGREGATE VARCHAR2(3)
    PIPELINED VARCHAR2(3)
    IMPLTYPEOWNER VARCHAR2(30)
    IMPLTYPENAME VARCHAR2(30)
    PARALLEL VARCHAR2(3)
    INTERFACE VARCHAR2(3)
    DETERMINISTIC VARCHAR2(3)
    AUTHID VARCHAR2(12)
    15 rows selected

  • ANSI join syntax with code-insight

    I've noticed that SQL Developer 1.1.3 doesn't perform code-insight into table aliases when I use the ANSI join sytax. Is there a configuration option to make this possible or does it just not exist yet?

    Hi,
    Currently on SQL Developer 1.2, Windows XP, and Database 9.2
    I have the same problem too.
    The Code-Insight is unable to show the Code Completion for aliased table name in ANSI JOIN
    SELECT *
    FROM    Schema1.Table1 t1
    INNER JOIN Schema1.Table2 t2 ON t2.     -- cannot show the code-insightHowever the following code works just fine for the code-insight
    SELECT *
    FROM    Schema1.Table1 t1,
                  Schema1.Table2 t2
    WHERE t1.Field1 = t2.Field1Any suggestion?
    Regards,
    Buntoro

  • Autocomplete synonyms (Code Insight)

    SQL Developer Version 4.1.0.18 MAIN-18.37
    Before I upgraded from previous version everything worked just fine.
    The case is... I have created synonyms for tables that appear as tables for different users (Other User list). The table names are always the same, the difference is the user name.
    So as for user1 I have TblName, as for user2 I have u2_TblName and so on.
    Until recently when I started typing the name of the table I did get autocomplete propositions including synonyms, now I get list composed of user1.TblName, User2.TblName... There are no synonyms.
    Why do I want to have tho synonyms proposed? The names are simply shorter and take less space on screen
    When I select the proposition and get the full name user1.TblName and then delete the user1. part and run the statement everything works perfect! But still the Code Insight works differently and it kind of irritates me
    Anyone knows how to get the list of synonyms in Code Insight dialog?

    This has been retracted for [dictionary] performance reasons.
    set hidden param querySynonyms = true;
    to restore old behaviour.
    P.S. Seeing this question asked second time warrants a setting in the preferences.

  • Code insight is not working correctly in Jdev 10.1.3 (preview) and java 1.5

    The code insight does not work for me. I followed the advice of Steve Muench given here:
    http://radio.weblogs.com/0118231/stories/2003/01/17/whyIsntMyCodeInsightWorking.html
    but that did not change the problem. The problem seems to be related to new java 1.5 features. As soon as I start using generics the code insight is lost...
    Any clues what is going on? I s this easy to fix?
    -- example: (NOTE that iI use double (( )) to indicate generics definitions. the forum software would not let me put in the correct syntax!)
    package mypackage;
    import java.util.Set;
    public class tester1
    private Set ((Integer)) intSet = null;
    public tester1()
    intSet. ---- NO CODE INSIGHT POPS UP! (if i change to "private Set intSet = null;" it works)
    public static void main(String[] args)
    new tester1();
    P.S.
    Also, i noticed that the auto-import ist not working for the "Set((Integer))" line!
    Message was edited by:
    user444936

    thanks for the info.
    Hmm - too bad. I may have to switch to eclipse or something then, since my project involves some 1.5 parts and the missing code insights and import features are a real pain for me.
    Cheers,
    Jochen

  • Jsp taglibs in include files not detected, throws errors, no code insight

    I have a jsp which is included in all the other jsp. it looks something like this
    taglibs.jsp
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
    <%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
    <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
    test.jsp
    <%@ include file="/jsp/menu/taglibs.jsp"%>
    <html>
         <head>
              <title>Tours</title>
         </head>
         <body>
    <form:form commandName="testCommand">
                   <form:hidden path="tour.firstname" id="tour.firstname" />
    and so on.
    I am having 2 problems
    1. the jsp editor show errors all over the place saying
    element path not expected
    element commandName not expected etc.
    2. no code insights.
    but if i include the taglib def in test.jsp it dosn't show any error and also provides code insights. but seldom do people include all taglibs in all jsps.
    is there a way for Jdeveloper to show code insights in jsp pages which includes a jsp or like xml schemas could be added at some place(tools-pref-xml schemas) and when used anywhere, would provide code insights.

    am not sure, try with this
    <jsp:include   .../>

  • Action hard codes custom file name

    I recorded an action to crop and save for web. I have done this 1000's of times over the years, but in CS6 it is hardcoding a Custom File Name, and in the wrong format too boot.
    I am saving as JPG only and accepting the default name, which should leave me with an action that has no custom name, yet it does, and the custom name is of an HTML file name.
    So, when I run my action, it names every single file the same name, and never creates a jpg.
    This is a new bug in CS6. It wasn't here before.
    I can't figure out how to get around it????
    Kirk

    Figured out a way to work around this, but it is irritating. Instead of my action doing this:
    Flatten
    Crop (user interaction)
    Save For Web
    Close (without saving)
    I have to do this:
    Flatten
    Save as JPG (in same directory where I want the Web file to go)
    Crop (user interaction)
    Save For Web (Over top last saved file)
    Close (without saving)
    For some reason, when I use the save as JPG, it doesn't custom code the file name and when I save for web in the same place it also doesn't custom code the file name.
    I never had to do this before in all the years of using this type of action, and I use it ALOT!
    I have found that it sometimes does not hardcode the file name, but there seems to be no rhyme or reason.
    Kirk
    Photoshop CS6 on Windows7-64, haven't tested this on my MBP

Maybe you are looking for