EA2 - strange column order in "Columns" tab

Hi,
when I click on a table in the left panel, I'd expect the columns in the "Columns" tab appear in the same order as the table has been defined (i.e. ordered by column id). But instead the columns are ordered by primary key. Of course I can doubleclick the column id heading to get the correct order, but when I switch to another table the columns are again sorted by primary key.
If I didn't miss a preference, I'd suggest to change this behaviour to column id sorting by default.

Sorry I missed that. Here's the query we use on that:
with pri_cols as ( SELECT cols.column_name column_name, cols.position column_position
                                                       FROM all_constraints cons, all_cons_columns cols
                                                       WHERE cons.constraint_type = 'P'
                                                       AND cons.constraint_name = cols.constraint_name
                                                       AND cons.owner = cols.owner
                                                       and cols.table_name = :OBJECT_NAME
                                                       and cons.owner = :OBJECT_OWNER
                                                       ORDER BY cols.table_name, cols.position )
select c.column_name, case when data_type = 'CHAR' then data_type||'('||c.char_length||decode(char_used,'B',' BYTE','C',' CHAR',null)||')'
                                   when data_type = 'VARCHAR' then data_type||'('||c.char_length||decode(char_used,'B',' BYTE','C',' CHAR',null)||')'
                                   when data_type = 'VARCHAR2' then data_type||'('||c.char_length||decode(char_used,'B',' BYTE','C',' CHAR',null)||')'
                                   when data_type = 'NCHAR' then data_type||'('||c.char_length||decode(char_used,'B',' BYTE','C',' CHAR',null)||')'
                                   when data_type = 'NUMBER' then
                                             case when c.data_precision is null then 'NUMBER'
                                             else data_type||'('||c.data_precision||','||c.data_SCALE||')' end
                                   when data_type = 'NVARCHAR' then data_type||'('||c.char_length||decode(char_used,'B',' BYTE','C',' CHAR',null)||')'
                                   when data_type = 'NVARCHAR2' then data_type||'('||c.char_length||decode(char_used,'B',' BYTE','C',' CHAR',null)||')'
                                   else data_type end data_type,
decode(nullable,'Y','Yes','No') nullable,
c.DATA_DEFAULT,column_id, sub.column_position pk,com.comments     
from sys.all_tab_Columns c,
sys.all_col_comments com,
pri_cols sub
where c.column_name = sub.column_name(+)
and c.owner = :OBJECT_OWNER
and c.table_name = :OBJECT_NAME
and c.table_name = com.table_name
and c.owner = com.owner
and c.column_name = com.column_name     
order by sub.column_position nulls last,column_id
It's supposed to place the pk columns in order followed by the other columns by column_id.

Similar Messages

  • How to show Primary_key in Column Tab - Oracle SQL Developer 2.1.1.64

    How to show Primary_key in Column Tab or It bug? i can not see. thank you for answer.

    This was removed for performance reasons, but a lot of us asked for it to go back in.
    Don't know if it is currently planned, so better request this at the SQL Developer Exchange, so other users can vote and add weight for possible sooner implementation.
    Regards,
    K.

  • Columns tab in User Defined Report

    I've written a few user defined reports, but so far I've just filled in the SELECT command. I'm looking at the tab labeled "Columns" and trying to understand how that affects the report formatting.
    Am I right in assuming that this is equivalent to the COLUMN command in SQL*Plus? So "Name" maps to the column name in the SELECT, right? "hAlign" and "vAlign" are pretty self explanatory, and valid values for these are listed in the on-line help. But what about "Format"? What are valid values for this field? Do I use the format values from SQL*Plus, like "A30" for a 30 character wide column?
    Finally, is there a way to specify that a column is not to be displayed? I have a primary key that I don't want to display, but I do need to include in the SELECT, because the report has a Child query that needs to use this as a bind variable for a foreign key.

    <p>
    I've found part of the answer to my own question:
    </p>
    <p>
    Formats for the "format" field in the Columns tab are the formats used in the java.text.MessageFormat class. For example, you can use:
    </p>
    {0,date,yyyyMMdd hh:mm:ss}<p>
    The zero means the first argument; it will always be zero because we are only formatting one column. The second part tells what kind of formats to use, date or number. There is also a "choice" format type, which is related to number - works sort of like the DECODE function. The third part is the format itself, which can be one of several default formats like "currency", "percent" and "integer" for numbers, or "short", "medium", "long" or "full" for dates. I used an explicit format.
    </p>
    <p>
    I still don't have an answer to the second part of my question: How do I include a column in my query to be used as a bind variable in a child query, but exclude it from the report?
    </p>

  • Default Columns in Process form (Default Column Tab in form designer)

    Hi,
    'UD_RACF_RV_KEY' this is the default column present in process form default column tab. After Reconciliation for Racf when I try to reapply the matchin rule I got exception like :
    Class/Method: tcRCE/insertProcessData encounter some problems: Column 'UD_RACF_RV_KEY' not found
    Any idea why this exception?
    Thanks

    Form Version Control Utility
    http://download.oracle.com/docs/cd/E14899_01/doc.9102/e14762/appc.htm#sthref384
    Search the formums and google for more help on the topic.
    -Kevin

  • VA01 Sales order - Header-- Accounting tab need to add a field

    Dear All,
    The requirement is,
    1. I need to add a field in Sales order.
    Path for the same is as follows:
    VA01> Goto> Header--> Accounting tab
    2. The field will be a date field that needs to calculate date on.
    a)create a new field. ex - zchdt (chq due date)
    b)when customers enters value in Assignment,
    i.e vbak-zuonr
    after that trigger logic is
    3.vabk-kunnr = knvv-kunnr
    a)sy-date + knvv-kvgr2 (exclude sundays)
    example - 14 sept + 30 days = 14th october
    should populate value - 14th october i.e. field (zchdt)
    4. This activity needs to be triggered before the sales order is saved.
    kindly know whether this is possible or not.
    if possible how & which exit & also with example code.
    if you could give me your contact(cell no).
    Regards,
    Nagendra D.S.
    Mobile - +91 9819899082

    Hi All,
    VA01 Sales order - Header--> Accounting tab need to add a field. field name - zchdt(cheque due date)
    when customer enters value in Assignment i.e zuonr & after that trigger logic is
       1.     vbak-kunnr = knvv-kunnr
       2.     sysdat + knvv-kvgr2 (exclude sundays)
    example - 16 sept + 30days = 16 oct
    in field zchdt value 16 oct as to populate
    Pls help me in the code.
    Regards
    Nagendra

  • How do I change the order of open tabs?

    I currently have approximately a dozen tabs open, of which most are required to be viewed in a particular order. Is there a way to change the order of these tabs? If there is not, holding onto one of the tabs without sliding it sideways could become a method of "unlocking" the selected tab, allowing it to be moved up or down the list (I sure think it sounds like a good, and mostly easy, possible future addition to the app).
    Thanks for your time,
    Adam

    Adam, unfortunately at this time this is not a feature of Firefox for Android. To move the tabs you would have to close it out and open them in the order you wanted them to appear.
    If this is a desired feature however, I would recommend leaving feedback about this in input.mozilla.org.

  • Modify Sales order Item additional tab B

    I need to modify Sales order item additional tab B ...by removing the exisitng fields and should add some new fields ....which is ok. But does it have any impact becoz the same screen fields coulbe used in any of the other transaction .......i  just wanted to know if we remove the fields from sale orde item additional tab B and some new details will have some impact

    Hi,
    Before making any modifications check "Where-used". If it is in some other program other than the VA01/02/03, then better consult your lead before modifying.
    If you do not find, go ahead and make the changes confidently.
    Regards,
    Subramanian

  • Need to modify Sales order Item additional tab B

    Hello all,
    I need to modify Sales order item additional tab B ...by removing the exisitng fields and should add some new fields ....does it have any impact on this screen could be used in any of the other transaction .......i  just wanted if we remove the fields and some new details will have some impact
    Regards,
    KK

    Additional data B is used to add your own fields also known as custom fields in sales order.
    Custom fields can be added to tables VBAK & VBAP (depending on header or item). Similarly you can remove fields if you don't require it anymore.
    In short, your requirement can be met but you have to take help of ABAP consultant since it requires maintenance of user exits and modification of screens.

  • How do i make a tab active and make it stay that way always. If i put a website in my home page in order for the tabs to open automatically in that same homepage , this setting is not working, every time I open a tab , a white window appears .

    How do i make a tab active and make it stay that way always. If i put a website in my home page in order for the tabs to open automatically in that same homepage , this setting is not working, every time I open a tab , the window appears white .

    By default Firefox opens a blank page for a new Tab, there is no setting to change that action without installing an add-on.
    New Tab Homepage extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/777

  • How to change the order of the tabs in featured news?

    Hi,
      I use the 'Featured News' widget on my company website and it has 10 tabs. The newest item is at the top but when I add a new tab it goes to the bottom and I can find no way of changing the order of the tabs so that everytime I add new news I have to copy each tab and it's content down one place in order to get an empty tab at the top to put the new news item in. This takes an unneccesssarily long period of time. Can someone please let me know if there is an easy way to change the order of the tabs?
      Thanks very much ;0)
            Justine

    Just click on the title tab until it is isolated (one click before the text is highlighted) and move the tab to the position you want.
    Thanks for your reply. I've done this in the past but found that the position of the tab in terms of it's place in the hierachy doesn't change so if I move the top tab down one, the way you've described and then upload the page I find that the second tab down (which was the first previously) displays first. How can I change the 'position of the tabs interms of their hierachy in the widget?
      Thanks again
         J

  • Purchase order Condition control tab?

    Hi,
    Here in the purchase order condition control tab I need to get Price Date and Price date category. Presently they are not appearing in my purchase orders. When I go to screen layout, I am not able to get those fields to configure.
    Could please anybody help me urgently?
    Thanks,
    Bhairav

    Hi
    GOTO----> OLME--> PO -> Define Screenlay out at Document level -> There Choose your Field Selection ( NBF  and ME21N)... and go into to details--> And select the field selection group  Quantity and Price and Double Click--> There you choose the field  <b>PRICING DATE CONTROL</b>    and  Check it as a Required Entry or Optional Entry and save . <b>DO IT FOR BOTH NBF and ME21N FIELD SELECTION.</b>
    Now when ever you make PO in ME21N.....You will get Pricing Date Category and  Price Date Fields in  PO-> Item Details---> Condition Control Tab.
    Reward if useful
    Regards
    S.Baskaran
    Message was edited by:
            baskaran srinivasan

  • Purchase Order ME23n  - communication tab - where these values stored

    Dear all
    Can someone tell me where the
    Purchase Order ME23n  - communication tab - where these values stored
    I am not able to find it.
    Regards,
    Venkat

    Table EKKO. All fields in communication tab are available here
    EKKO-IHREZ  Your Reference
    EKKO-VERKF  Responsible Salesperson at Vendor's Office
    EKKO-TELF1  Vendor's Telephone Number
    EKKO-UNSEZ  Our Reference

  • Subsinvprocess in the sales order header --- billing tab and in the custom

    Hello All
    there is a field SubsInvProcess in sales order header - billing- tab and in the customer master - billing tab
    what was the functionality of this field. I never worked with it
    kindly help on this one. 
    Thanks,
    prasad

    Dear Vara prasad,
    The value of this field is if you want to print the invoices that are being posted manually you can activate this field.
    It will be directly proposed from customer master to sales document, where you can change.
    Please let me know if you want any further clarifications.
    Please go through this thread also for further reference.
    Clarification for usage of Subsequent Invoice Processing in Customer Master
    Thanks&Regards
    Raghu.k

  • Table for field "delivered" in production order header general tab

    Hallo everyone,
    I am looking for the field "Delivered" in the production order header on tab General. Can anyone tell me in which table it is stored?
    Thanks and regards,
    Jessica

    Hi,
    Field "ELIKZ" ("Delivery Completed" Indicator) is available in Table "AUFM" (Goods movements for order).
    Here You can co-relate this with field "AUFNR" (Order Number)

  • View Column info not displaying in Columns Tab

    Running XP SP2 and SQL Developer 1.5.1 5440
    When looking at views that are using tables from another schema. I don't see any of the columns information. I have DBA role
    In rel 1.1.2.25 2579 I see them just fine. (Both loaded on machine right now)
    Is this a bug or do I have a setting problem?

    Barry,
    As a "disclaimer", the points below are based on my usage of SQL Developer and things that bug me about how it works or doesn't work - I know that there are more important things to fix than a number of these.
    On to the basics ... and the most basic of the basics for a tool like SQL Developer:
    1) Problems with data dictionary queries in navigator or object tabs:
    - Triggers not listed in Table tab if trigger owned by different schema to table owner
    - Index columns not listed in Table tab if index owned by different schema to table owner
    - View columns not listed in View tab if view owned by different schema to current user
    - Dependencies not listed in Table/View tab if other object owned by different schema to object owner
    - Performance of Table Node (outer join added in 1.5.1)
    - there are a lot of other posts about the supplied data dictionary queries not producing the right results and I often find that I am querying the data dictionary directly in a SQL Worksheet for information that should be correct in the navigator/object tabs
    Basic things that I expect to work in a tool like SQL Developer (or to work given that they have been included):
    1) Popup Describe problems
    - schema name is case sensitive, so doesn't find owner.object
    - synonym overrides schema name (OWNER.OBJECT will describe local OBJECT synonym instead of OWNER's object)
    - position based object name selection includes punctuation
    2) Bind variables that work properly in PL/SQL (both Execute Statement and Run Script)
    3) Package decomposition in object navigator doesn't report variables or constants of custom types and lists object.column%type constants as "constant"
    4) Exporting query results re-executes query to display Export dialog - this presents as SQL Developer freezing after selecting the Export menu option for queries that take a long time for first record to appear
    I would use SQL Developer more (or more of SQL Developer) if:
    1) More integrated file based development - I still do the bulk of my object creation (largely PL/SQL and views) editing in Wordpad and running via SQL*Plus largely because I get better error reporting.
    - display the compile message tab when using the compile button for a file
    - show errors doesn't work for views
    2) Running Reports hang SQL Developer - I still have my SQL scripts for my common queries, which I can run through SQL Worksheet in a much friendlier fashion (I can cancel them and they don't hang SQL Dev) than I can run reports
    Problems that detract from the "polish" of SQL Developer, but don't really have a big impact on usage but discourage me from trying to "convert" non-techie TOAD using colleagues:
    1) Multiple TNSNAMES files read - generates multiple entries
    2) Export of long string literals causes ORA-972 error
    3) "Statement Processed" feedback is extremely sensitive to spaces ("create Statement Processed" where two spaces between the create and view keywords) and assumes simple statements ("create unique Statement Processed" or "create or replace force Statement Processed" as examples)
    I think that makes 10 basics to fix (although some as just issues that make the tool look unpolished), however, it does seem as though testing in the following areas could be significantly better:
    1) Regression testing - a number of bugs seem to crop up again after being fixed in earlier versions
    2) Navigator/object tab queries - especially with multi-schema applications (ie Oracle eBusiness Suite) and just generally objects owned by other schemas
    3) Performance with large DBs in terms of object count (ie Oracle eBusiness Suite)
    As a final note, it is my impression that SQL Developer development has been unbalanced in focusing too much on including new functionality (which is good) and not enough on getting existing functionality right (which is better).
    I hope this helps (and wasn't too long) ...
    theFurryOne

Maybe you are looking for

  • 2007 Mac Mini with Netgear Rangemax WPN824 - poor internet

    Hi I've had my mac mini for a couple years and I've used both an old Linksys wireless B router and a newer Belkin G router both with great reception and speed. I just moved and have a Netgear B/G router. All of the other computers on it have great re

  • ITunes background disappeared!

    I'm not sure what happened here, but the background for iTunes has disappeared. I can still see the songs and menu, more or less, but I'm seeing my desktop (or whatever window I have open) in the background. This is a pain, because I can't drag and d

  • Cant open Hyperlinks on my computer, how do I fix?

    Cant open Hyperlinks on my computer, how do I fix? OS X version 10.9.5. Terryfrombinghamton

  • Values in sample editor

    This may be a stupid question but in the sample editor what do the values on the side of the wave represent? I would think its a measure in mV but I'm not sure, I need to find out the decibel level of a recording I made so any help doing this would b

  • PF status for secondary ALV

    Hi all, I have a selection screen in my report and the output has a primary ALV and one secondary ALV. I have set PF status for the Primary ALV and on clicking a button in the application toolbar, the secondary ALV gets displayed. Now my pbm is when