DEFECT: Ignores new PK Column order

I have an existing table with an existing primary key.
I add a new column to that pk and place it as the first column in that key.
The column is actually added as the last column in the key, not the first column in the key.
I have to physically drop the pk and create it afresh in order to add a new column to the front of the key.

David, until (and if) this gets fixed, it might save time to copy the script from the DDL node so you can manually edit the order in a worksheet. If I edit a table through this option, I almost always copy the script to a worksheet: for revision, saving as history, or for implementing the same in the production DB.
Regards,
K.

Similar Messages

  • How to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx?

    Dear SharePoint Developers,
    Please help.
    I need to know How to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx?
    I think this is a "sealed column", whatever that is, which is  shown in SPD 2013 as a column of content type "document, folder, MyCustomContentType".
    I know when I set the column order in my custom Content Type settings page, it is correct.
    But, when I load the NewDocSet.aspx page, the column order that I set in the settings page is NOT used for this "sealed column" which is bad.
    Can you help?
    Please advise.
    Thanks.
    Mark Kamoski
    -- Mark Kamoski

    Hi,
    According to your post, my understanding is that you want to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx.
    Per my knowledge, if you have Content Type management enabled for the list or library (if you see a list of content type with the option to add more), the display order of columns is set for each content type.
    Drill down into one of them and you'll see the option under the list of columns for that content type.
    To apply the column order in the NewDocSet.aspx page, you need to:
    Select Site Settings, under Site Collection Administration, click Content type publishing. In the Refresh All Published
    Content Types section, choose Refresh all published content types on next
    update.
    Run two timer jobs(Content Type Hub, Content Type Subscriber) in central admin(Central Administration--> Monitoring--> Review timer jobs).
    More information:
    http://sharepoint.stackexchange.com/questions/95028/content-types-not-refreshing-on-sp-online
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Schema Comparisons - Ignore column order

    I'm using SSDT for the first time and I want to be able to ignore column ordering when doing schema comparisons.
    There was a setting in GDR that I cannot find called - "Force table column order to be identical" - does this still exist?
    Also in the old sqldeployment file there was an IgnoreColumnOrder setting. Cannot find either of these.

    It's unfortunate that the general attitude of Microsoft seems to be geared towards coming up with excuses and explanations instead of solutions. I was excited to use schema/data compare in VS2013 but found that it's basically useless to us because of the
    lack of this feature. I'm just glad there are other reasonable programs on the market to do comparisons (RedGate, for example).
    It's evident that each year Microsoft becomes even more detached from reality. People complained about IE, Microsoft didn't solve the problems, and now hardly anyone uses IE. No one is going to use this shoddy comparison tool for the same reasons. You're
    just wasting people's time with incomplete products like this, and that's frustrating and builds resentment in the people who are paying to use your products and services. I'll have no problem jumping ship for any given Microsoft product the second a competitor
    releases something better.

  • Any way to force an "Ignore Column Order" w/ SSDT (even if custom code)?

    This used to be an option in the old VSDBCMD and VS DB Projects. Apparently it was lost when the move was made to SSDT. There has been some minor discussion of possibly bringing it back, but I was wondering if anything could be done to work around this in
    some way? I know that there is a Codeplex project for DacFx and some discussion on working around things like index options. I'm hoping it's possible in some way to work around the column order issue.
    Backstory - a well-intentioned DBA was trying to NULL out some columns, but decided that scrubbing would take too long so dropped the columns and added to the end of the table in one environment. That's a table with a couple hundred million rows and would
    take quite a while to rebuild, likely filling the log in the process. It would also disrupt ETL against that table.  It's not a production environment or we'd just try to get every other environment to match. That's not something we can do here so are
    forced to manually work around it in this one environment every time we need to make changes.

    That is a good question, to do this requires two functions and a restart of Bridge all done automagically
    Copy and paste the script into ExtendScript Toolkit
    This gets installed with Photoshop and can be found:-
    PC: C:\Program Files\Adobe\Adobe Utilities
    MAC: <hard drive>/Applications/Utilities/Adobe Utilities
    Start Bridge
    PC: Edit - Preferences - Startup Scripts
    Mac: Adobe Bridge menu - Preferences - Startup Scripts
    At the bottom click the "Reveal Button" this will open the folder where the script should be saved.
    Close and restart Bridge.
    Accept the new script.
    To use:
    Tools - Backup Manual Sort
    This will backup the hidden manual sort file .BridgeSort to .BridgeSortSave
    Tools - Restore Manual Sort
    This will copy the .BridgeSortSave back to .BridgeSort and will close and restart Bridge so that the manual sort is restored.
    if( BridgeTalk.appName == "bridge" ) { 
    var backUpManSort = new MenuElement( "command","Backup Manual Sort", "at the end of Tools" , "backupms" );
    var RestoreManSort = new MenuElement( "command","Restore Manual Sort", "at the end of Tools" , "restorems" );
    backUpManSort.onSelect = function () {
    var fileSort = new File(app.document.presentationPath +"/.BridgeSort");
    var fileSave = new File(app.document.presentationPath +"/.BridgeSortSave");
    if(fileSave.exists) fileSave.remove();
    fileSort.copy(fileSave);
    fileSave.hidden=true;
    RestoreManSort.onSelect = function () {
    var fileSort = new File(app.document.presentationPath +"/.BridgeSort");
    var fileSave = new File(app.document.presentationPath +"/.BridgeSortSave");
    if(!fileSave.exists){
    alert("No backup file exists");
    return;
    app.document.sorts = [{ type:"string",name:"document-kind", reverse:false }];
    if(fileSort.exists) fileSort.remove();
    fileSave.copy(fileSort);
    fileSort.hidden=true;
    app.document.chooseMenuItem("mondo/command/new");
    app.documents[0].close();
    app.document.sorts = [{ name:"user",type:"date", reverse:false }];
    Hope this works for you.

  • Physical Column Order

    Is there a way to influence the physical column order when generating objects for an Oracle 11g database?  It looks like the DDL that is generated has the columns in a random order.  Even though I order the columns in the way I want on the columns tab of a table, when I click the review tab, the DDL generated seems to ignore any ordering I try to establish.  I am using PowerDesigner 16.5 SP02.  Do others see this behavior?

    Hi,
    I'm using 16.5. SP03 PL2 and when I create a new table with a some columns and change the order I can see the changes in the Preview tab and when I do "Generate Database" the DDL is right as well.
    br
    Stefan

  • Report Does Not Follow Select Column Order

    Hi all,
    Apex 2.2 on 10gXE
    I always encounter this problem, the display column on report does not follow the select column sequence order in the "region source".
    It is very tedious clicking the up/down arrow one-by-one in the "report attributes" especially if the display columns are plenty like 40 columns.
    Is there a fix/patch or alternative tips for this bug?
    Thanks a lot,
    Edited by: 843228 on May 24, 2011 10:32 PM

    Apex 2.2 on 10gXEStart by upgrading from this old unsupported version.
    >
    I always encounter this problem, the display column on report does not follow the select column sequence order in the "region source".
    It is very tedious clicking the up/down arrow one-by-one in the "report attributes" especially if the display columns are plenty like 40 columns.
    Is there a fix/patch or alternative tips for this bug?
    >
    This is not a bug. APEX maintains the original column order of the report. This avoids problems downstream in areas like the processing of <tt>g_fnn</tt> arrays in declarative tabular forms, where the assigned arrays are column-order dependent.
    APEX 4.x fixes column ordering bugs that could lead to report corruption, and includes drag-and-drop column ordering in the new tree view in addition to the up/down arrow re-ordering.
    If you really want column order to follow that in the source query, the workaround is to create a new report using the modified query.

  • I can't sort a single column only (ignoring the next column)

    I can't sort a single column only (ignoring the next column) in NUMBERS

    Numbers sorting follows a database model in which each row is a 'record' rather than a collection of unrelated data items. When a table is sorted, the integrity of the individual records (rows) is maintained.
    If you need to sort a single column, that column (or its data) must be separated from the rest of the table.
    That can be done using copy/paste (as described above by Wayne), or by taking the column to be sorted out of the table, dropping it on the sheet to form a new, single column table, doing the sort, then returning the column to the original table.
    The 3 1/2 step process takes longer to describe than to do.
    Regards,
    Barry

  • Column order in SQL Query (PL/SQL function returning a query)

    Hi,
    when I define a PL/SQL function returning a query inside a region, I often find that the column order is arbitrarily changed.
    How do I enforce the column order ?
    Bye,
    Flavio

    I removed the 11th column called service_name from this dynamic query: and now the report says: report error:
    ORA-01403: no data found. I messed around with the Headiuns Type. It was set to Custom. I changed it to Column Names. There is no difference.
    I am not sure how to fix?
    declare topqry varchar2(32000);
    whereqry varchar2(32000);
    finalqry varchar2(32000);
    var_status varchar2(100);
    division_status varchar2(50);
    office_status varchar2(1000);
    user_status varchar2(1000);
    overdue_status varchar2(1000);
    begin
    if :P10_FALLBACK = 'All' then
    var_status:= ' and vp.status in (''FA'',''FBA'',''FBI'',''25%'',''50%'',''90%'',''Closed'') ';
    elsif :P10_FALLBACK = 'Active' then
    var_status:= ' and vp.status in (''FA'',''25%'',''50%'',''90%'',''FBA'') ';
    elsif :P10_FALLBACK = 'FB' then
    var_status:= ' and vp.status in (''FBA'',''FBI'') ';
    elsif :P10_FALLBACK = 'Closed' then
    var_status:= ' and vp.status in (''Closed'') ';
    elsif :P10_FALLBACK = 'Inactive' then
    var_status:= ' and vp.status in (''FBI'') ';
    end if;
    if :P10_DIVISION = 'All' then
    division_status:= ' and vp.vms_division in (''News'',''Ad Services'') ';
    elsif :P10_DIVISION = 'News' then
    division_status:= ' and vp.vms_division in (''News'') ';
    elsif :P10_DIVISION = 'Ad' then
    division_status:= ' and vp.vms_division in (''Ad Services'') ';
    end if;
    if :P10_OFFICE = '%' then
    office_status:= ' and OFFICE_ID in (select office
    from VMS_OFFICE_ACCESS
    where user_id = lower(:P0_user) ) ';
    else
    office_status:= ' and OFFICE_ID in :P10_OFFICE ';
    end if;
    if :P10_LIMIT_USER = '%' then
    user_status := ' and SALESPERSON in (select first_name || '' '' || last_name
    from VMS_PROSPECT_users u
    join vms_office_access o
    on u.office_id = OFFICE
    where o.user_id = lower(:P0_USER) ) ';
    else
    user_status:= ' and SALESPERSON in (:P10_LIMIT_USER ) ';
    end if;
    if :P10_SHOW_OVERDUE = 'Show' then
    overdue_status:= ' and target_close_date <= sysdate ';
    var_status:= ' and vp.status in (''25%'',''50%'',''90%'',''FBA'') ';
    else
    overdue_status:= ' and FIRST_APPOINTMENT between
    nvl(to_date(:P10_FIRST_APPT_START, ''mm/dd/yyyy''),FIRST_APPOINTMENT) and
    nvl(to_date(:P10_FIRST_APPT_END,''mm/dd/yyyy''),FIRST_APPOINTMENT) ';
    end if;
    topqry := 'SELECT OFFICE_ID ,vp.PROSPECT_ID ,ENTRY_DATE ,ACCOUNT , NEXT_CONTACT_DATE ,ACTION_STEP ,
    TARGET_CLOSE_DATE ,vp.STATUS ,SALESPERSON ,vp.SALES_TYPE ,service_name , FIRST_APPOINTMENT ,MODIFY_DATE ,EST_ANNUAL_REVENUE ,EST_INCREMENTAL_REVENUE ,
    pi.NOTES , pi.SALES_TYPE ,pi.STATUS ,Contact ,Origin_Source FROM VMS_PROSPECTING_ITEMS pi right outer join VMS_PROSPECTS vp on vp.PROSPECT_ID = pi.PROSPECT_ID left outer join VMS_SERVICES vs on vs.service_ID = pi.service_ID where 1 = 1 ';
    whereqry := ' and (not exists (select *
    from VMS_PROSPECTING_ITEMS i3
    where vp.prospect_id = i3.prospect_id)
    or exists (select *
    from VMS_PROSPECTING_ITEMS i2
    where i2.order_id = pi.order_id
    and active = ''Y'' )) and instr(upper(ACCOUNT),upper(nvl(:P10_ACCOUNT,ACCOUNT))) > 0 ';
    whereqry := whereqry || var_status || division_status || office_status || user_status || overdue_status;
    finalqry := topqry || whereqry;
    return finalqry ;
    end;

  • Interactive report column order not working properly

    Hi All,
    Can anyone help me with this situation:
    Example:
    1)
    First of all I created a interactive report with this simple query
    Select 1 col_A, 2 Col_D from dual
    2)Later I modified the query like this
    Select 1 col_A, 1 col_C, 2 Col_D from dual
    But when I run the report the new column added appear in the end?
    I already tryed to reorganize the column order in the navigator menu, but the issue remains.
    Any ideas?
    Thanks

    Hi,
    Login to APEX builder. Run your page.
    Select columns from report action menu and save default layout.
    Regards,
    Jari

  • Datagrid Column Ordering from Recordset?

    I often populate my datagrids with a recordset, an array of record objects, by passing the recordset in the dataprovider constructor. However, this results in unpredictable column ordering i.e. it doesn't correspond to the order of the fields in the record object. I know you can define the columns and then use add item to add the records to resolve this, but I'm curious why the datagrid doesn't order the columns according to the record object field order in the first place and why the order can actually change between renderings of the datagrid?

    Thanks for the response. I understand the method to order the columns, I'm more curious why doing something like this:
    var arr:Array = new Array();
    arr.push({label:"item 1b", qty: 1});
    arr.push({label:"item 2b", qty: 2});
    var dp:DataProvider = new DataProvider(arr);
    results in the columns being randomly ordered. It be nice if the data grid always produced columns in the order of
    label   qty
    Its probably rooted in the fact a for..in loop doesn't get values from an object in a useful order either.

  • Customer Aging - Column order

    Hi
    A user had 2 separate windows open for Customer Receivables Aging. She used a filter option on the one window which resulted in the column order in window 2 to become mixed up.
    Now when you run the aging report it looks like this-
    0-30, Future remittance, Customer Name, 120+, 31-60, 61-90, 91-120, Interest, Customer Code.......
    The 'Form Settings' icon is greyed out for this window. Is there a way to reset this?
    (Welcome to the wonderful world of SAP Business One users).
    Regards

    Hi,
    Whenever a user opens Aging Report two instances, then the columns of the other instance always display incorrectly.
    It seems that the system behavior.
    PS :  Peter, please post a new thread for your query if it is unresolved as sometimes others cannot determine you asked a question or not (as this thread is closed).
    If your user is facing this issue on a single instance then you need to log a SAP Support ticket to get it investigated.
    Regards,
    Jitin
    SAP Business One Forum Team

  • Can't change column order from document content type

    Hi,
    I noticed a strange error in our SharePoint 2010 environment:
    We are using a SharePoint 2010 Enterprise Edition which was migrated from a MOSS 2007 Enterprise Edition with one central document library.
    In this library are several content types plus the given document content type which was already there.
    When I try to edit the column order in the document content type settings the following error occurs:
    Server Error in '/' Application.
    Object reference not set to an instance of an object.
    Description:
    An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and
    where it originated in the code.
    Exception Details:
    System.NullReferenceException: Object reference not set to an instance of an object.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location
    of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [NullReferenceException: Object reference not set to an instance of an object.]
    Microsoft.SharePoint.ApplicationPages.ChangeFieldOrderPage.OnLoad(EventArgs e) +376
    System.Web.UI.Control.LoadRecursive() +65
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2427
    This error only occurs with the document content type. Furthermore I am not able to reproduce this error on other libraries except when
    I am using a template from this library.
    I tried to delete this content type but every time an error occurs which is saying that the content type is still in use. I checked the entire library and all informations from the SharePoint Manager 2010 Tool but the content type is definitely no longer in
    use.
    I appreciate every little bit of help regarding this problem.
    PS:
     There is also another error concerning every content type in this library: I can’t create a new or use the standard Microsoft document information panel template because every time I try to there also occurs an error which
    states out a NullReferenceException regarding the metadata of this library. But that is another story which is next on my to-do list. First I would like to solve the first error concerning the column order.
    Thanks and regards,
    Thomas K.

    Hi TKellner,
    Thanks for your post.
    1.      
    Please try to use the code below to check whether the Content Type is in used.
    http://www.learningsharepoint.com/forum/sharepoint-2007-programming/check-where-the-content-type-is-used-in-sharepoint-site/
    2.      
    Can you open the Document Library in SharePoint Designer 2010? Also, can you open the template file correctly?
    Share the result.

  • Column order is changed in criteria tab ,result tab column order unchanged

    I created a report in sample database with these columns in 11.1.1.6
    1- C50 Region 2 D1 Office, 3 P1 Product 4 1-Revenue and 5 C1 Customer Name
    Hit Results and I can see the result in this order.
    If I change column order in result tab to say 1,5,2,3,4, result tab table view is updated. Now if I go back to criteria tab, column order remains the same ( 1,2,3,4,5)
    This may be expected functionality in 11.1.1.6 but was not the case in 10g. This may be due to changes allowed in html layer.
    Now if I go back to criteria tab and reorder columns (say 1,3,2,4,5) and then click result, result tab columns are not ordered as set here. Result tab continues to show 1,2,3,4,5
    I saved the report with order 1,3,2,4,5 and log back in, order remains 1,2,3,45/ I believe if I restart presentation services, it will be come OK. The only way is to create a new report that I know now other than restarting presentation service.
    Question
    Have you observed this?
    If yes, what is the solution, how can result tab refresh with the order of the columns in criteria tab?
    Bhupendra

    Hi,
    In OBI 11g,the column order in the criteria tab and the results tab are not coupled to each other.
    When you create the report for the first time, both are in sync. If you need to reorder the columns, goto result tab and click on edit report, in the columns and measures section of the report, reorder the columns the way you desire.
    Save the report and the report should have the columns in the order you have set.
    P.S : this is not a bug !
    Thanks,
    Vineeth

  • New Logical Column using repository variables

    Hello all,
    Can anyone let me know how we create a new logical column in OBIEE 11g in the BMM layer using the repository variables..Is there any way/chance to create such new logica columns.If so please let me know how we will be doing that

    This is alwayz possible.
    Here is the syntax.
    CASE WHEN VALUEOF(VAR1) ='ABC' THEN
    "Sample App Lite Data"."".""."F10 Revenue Facts (Order grain)"."Units"
    WHEN VALUEOF(VAR1) ='XYZ' THEN
    "Sample App Lite Data"..."F10 Revenue Facts (Order grain)"."Discnt_Value"
    END

  • Table Column Ordering Matters when using Forms6i

    Just an FYI on something strange that we encountered...
    We have a Forms application that calls a function within a Package stored in the database. The only parameter to the function is a PL/SQL record that is based on the columns of a table. Our users need to run the application against 2 different database instances. We receve an "ORA-04062: Signature of Package has changed" error message when running the Form against the database that we DID NOT compile the form against. The reason is because the column ordering of the table that the record is based upon is different between the 2 databases.
    Here are the details:
    Setup:
         2 different databases. ( devDB and prdDB )
         1 table:
              On devDB:
                   create table test_file (file_id NUMBER,
    description VARCHAR2(256)
              Same table on prdDB but with different column ordering:
                   create table test_file (description VARCHAR2(256),
    file_id NUMBER
         1 database package in both databases:
    CREATE OR REPLACE PACKAGE PS_TEST AS
         SUBTYPE tr_file IS TEST_FILE%ROWTYPE;
         FUNCTION Create_File( r_file     tr_file ) RETURN NUMBER;
    END PS_TEST;
         1 Oracle Form that fills the tr_file record with data and calls PS_TEST.Create_File passing in the tr_file record.
    Results:
         If the above Form is compiled on the database devDB, trying to run the Forms Executable against prdDB will generate an error message stating: ORA-04062: Signature of Package has changed. If the above Forms executable is run against devDB, everything works fine. The problem is that when the Oracle form is compiled it apparently captures the tr_file signature from the package, which would be something like ( file_id, description ) on devDB since it is specified as %ROWTYPE. When this compiled form is ran against the prdDB database, the package signature is different because the tr_file signature would be something like ( description, file_id ) on prdDB because of the column ordering. The error doesn't occur if you recreate the "devDB" table with the columns in the same order as "prdDB". This would only be a problem with using the %ROWTYPE with PL/SQL records.
    So it appears that column ordering does matter in some situations.
    Thanks.

    would create a cell renderer only once -- the same
    JTextPane is used to render any cell in the table that
    shares the same renderer.Thanks for the reply. It's something I'm going to look into, but I do create only one renderer, and use that one renderer to create new JTextPane subclasses when getCellRendererComponent() is called - hence, there is one renderer, but there are multiple instances of the actual rendered component.
    In the meantime, I'm just marking up the text with HTML to create the presentation I want, and it works okay. It'd be nice if I can get it working with Styles, though.
    Thanks again,
    - Chris

Maybe you are looking for