The order of the table columns to Srini Chavali

OK I made a mistake Srini Chavali.
So why dont you try to help me now beyond just warn me about burocratic issues, what you really should had done instead just to block the answers of my former question ?
The question is:
How to influence the order of the table columns in time of transformation logic to relational ?
Nelson Alberti da Rosa

because exist an order among primary key columns that was definied in the logical model and it he can't see that.fixed :
function addPKcolumns(list,table){
     pk = table.getPK();
     if(pk!=null){
          pcols = pk.getColumns();
          for(var i = 0;i<pcols.length;i++){
               col = pcols;
               //in fact don't need this check, because PK columns are processed first
               if(!list.contains(col)){
                    list.add(col);
function addFKcolumns(list,fkeys){
     for(var k=0;k<fkeys.length;k++){
          fcols = fkeys[k].getColumns();
          for(var i = 0;i<fcols.length;i++){
          col = fcols[i];
          if(!list.contains(col)){
               list.add(col);
//adds mandatory or oprional columns to list depending on mand parameter
function addMandatoryOptColumns(list,cols, mand){
     for(var i = 0;i<cols.length;i++){
          col = cols[i];
          if(col.isMandatory() == mand && !list.contains(col)){
               list.add(col);
tables = model.getTableSet().toArray();
list = new java.util.ArrayList();
for (var t = 0; t<tables.length;t++){
     list.clear();
     table = tables[t];
     cols = table.getElements();
     // add PK columns to list
     addPKcolumns(list,table);
     // add FK columns to list
     addFKcolumns(list,table.getFKAssociations());
     //add mandatory columns
     addMandatoryOptColumns(list,cols,true);
     //add optional columns
     addMandatoryOptColumns(list,cols,false);
     //use list to reorder columns
     ord_cols = list.toArray();
     for(var n = 0;n<ord_cols.length;n++){
          table.moveToIndex(ord_cols[n],n);
     //prevent reordering from enginnering, can be changed with UI
     table.setAllowColumnReorder(false);
     table.setDirty(true);

Similar Messages

  • How to change the order of the columns in system matrix?

    Hi all,
    Is there any way to change the order of the columns in system matrix through SDK, without doing it from 'Form settings'??

    Hi ,
    is this true for the 'Active' property also , in CPRF table? I want to check whether the Item is active or not becuse, when I m trying to copy the value in item which is not active, I m given error. Is there any way to change or active the 'Active' flag in form settings at run-time?
    Any clue?
    Thanks in advance,......
    Binita

  • Is it possible to change the order of the fields in the int table?

    Hello
    Is it possible to change the order of the fields in the int table?
    Lets say itab has the following fields :
    F1, F2, F3
    I would like to see it as F2 F3 F1
    Thanks

    >
    Comandante Che Guevara wrote:
    > Lets say itab has the following fields : F1, F2, F3
    >
    > I would like to see it as F2 F3 F1
    What do you mean by "like to see" ? You can WRITE the fields in any order you want. If you want to display the internal table in an ALV you can manipulate the fieldcatalog.
    If you want something else other than display the field, you have to explain your req. in detail.
    BR,
    Suhas

  • Problem with the order of the columns of a ALV

    I have a problem with a ALV, variants we keep this ALV does not record the order of the columns
    Thank you

    I suppose you want to change the sequence of columns of a ALV. If you can change it by clicking 'settings' of right-top corner of ALV. After done you can save the new settings into a new. If you find some abnormal behaviour, please check the settings by WDA component "wd_analyze_config_user".
    FYI.
    [http://help.sap.com/saphelp_nw70/helpdata/en/32/f26f73d81e11d1a26f0000e8a5a614/frameset.htm]

  • How to change the order of the columns in the Message List in Mail?

    In Mail, in the Message List, is it possible to rearrange the column order of Subject, From, Date, Attachments, etc?
    The upgrade to Snow Leopard changed the order of the above and I want to keep the old order that I had with Leopard.
    Also, there is a column which has a black circle in it. What does it mean? I don't mean the smaller black circle, because that shows which emails been read and which are not yet read.
    Thank you.
    Lorna

    To arrange columns, click on column title (To or From) and drag right or left.
    The black dot column shows the type of message. There will be a counterclockwise arrow if the email is a response to a previous email or there will be an icon of a note if the message is a note

  • The order of the columns in GROUP BY doesn`t matter?  why?

    I did a little test and find out that the order of the columns in GROUP BY does not matter to ORACLE.
    Why? How does oracle do GROUP BY exactly?
    Could anyone show me its processing logic? maybe in pseudo-code?
    Thanks in advance.

    I mean,
    I thought oracle would group data based on the order of the columns in the GROUP BY LIST.
    For example: for select deptno, job, count(*) from emp group by deptno, job;
    I thought, oracle first would group the data based on deptno (10,20,30), e.g. in deptno=30, we got 6 employees.
    and then, group this 6 employees based on JOB (CLERK, SALESMAN, MANAGER).and
    for select job, deptno, count(*) from emp group by job, deptno;
    first would group the data based on JOB (CLERK, SALESMAN, MANAGER) e.g., for CLERK, we got 4 employees,
    and then, group this 4 employees based on deptno (10,20, 30).and to me, it seems that in some circumstances, their result could be different.
    So, I wonder if the order of the columns in GROUP BY Clause matter?

  • For all entries changes the order of the itab

    Hi Experts
                 In the following query i have used two internal tables namely it_first and it_zlist.
                The material inwhich the it_zlist is different sorting order
          After executing this query, the order of the material inwhich the it_first is different from the it_zlist.
                 What could be the reason, pls explain me on this.
    select matnr test zsno ztnam from zmaster1
                into corresponding fields of table it_first
                      for all entries in it_zlist
                      where matnr = it_zlist-matnr.
    Thanks in advance.
    Regards
    Rajaram

    for all entries u should specified all primary key.
    sort by u condition.
    Effect
    If the addition FOR ALL ENTRIES is specified before the language element WHERE, then the components comp of the internal table itab can be used as operands when comparing with relational operators.
    The internal table itab must have a structured line type and the component comp must be compatible with the column col.
    The logical expression sql_cond of the WHERE condition can comprise various logical expressions by using AND and OR. However, if FOR ALL ENTRIES is specified, there must be at least one Comparison with a column of the internal table itab, which can be specified either statistically or dynamically (Release 6.40 and higher). In a statement with a SELECTstatement with FOR ALL ENTRIES, the addition ORDER BY can only be used with the addition PRIMARY KEY.
    The whole logical expression sql_cond is evaluated for each individual line of the internal table itab. The resulting set of the SELECT statement is the union of the resulting sets from the individual evaluations. Duplicate lines are automatically removed from the resulting set. If the internal table itab is empty, the whole WHERE statement is ignored and all lines in the database are put in the resulting set.
    Notes
    In Release 6.10 and higher, the same internal table can be specified after FOR ALL ENTRIES and after INTO.
    The addition FOR ALL ENTRIES is only possible before WHERE conditions of the SELECT statement.
    If the additions PACKAGE SIZE or UP TO n ROWS are specified together with FOR ALL ENTRIES, they are not passed to the database system but are applied instead to the resulting set once all selected rows on the application server have been imported.
    With duplicated rows in the resulting set, the addition FOR ALL ENTRIES has the same effect as if addition DISTINCT were specified in the definition of the selection quantity. Unlike DISTINCT, the rows are not deleted from the database system but are deleted on the application server from the resulting set.
    Addition FOR ALL ENTRIES is only possible for WHERE conditions of the SELECT statement.
    Example
    Exporting all flight data for a specified departure city. The relevant airlines and flight numbers are first put in an internal table entry_tab, which is evaluated in the WHERE condition of the subsquent SELECT statement.

  • In-list: does oracle follow the order of the items in the in-list?

    We have a partition table, each partition has one day's data. And we are using 4 partitions, every day the oldest partition will be truncated so that it could be reused next day. Some data will be sit in more than 1 partitions, and we need to get the newest data. The current partition has a partition_key=MOD(TRUNC(SYSDATE) - TO_DATE('01-JAN-2005', 'DD-MON-YYYY') + 1, 4).
    If oracle obeys the order of the items in the in-list, then the following sql should work and has the least cost. But I am not sure whether oracle run time engine will obey the order. I recalled Lewis had said run time engine might not follow the plan in the execution plan (explain plan).
    select *
      from tab
    where id=:id and partition_key in
           (MOD(TRUNC(SYSDATE) - TO_DATE('01-JAN-2005', 'DD-MON-YYYY') + 1, 4),
            MOD(TRUNC(SYSDATE) - TO_DATE('01-JAN-2005', 'DD-MON-YYYY') , 4),
            MOD(TRUNC(SYSDATE) - TO_DATE('01-JAN-2005', 'DD-MON-YYYY') -1, 4),
            MOD(TRUNC(SYSDATE) - TO_DATE('01-JAN-2005', 'DD-MON-YYYY')-2, 4)) and rownum=1;If oracle doesn't follow the order in the in-list, does oracle follow the order of subquery in "union all", such as
    select * from
           select * from tab where where id=:id and partition_key =MOD(TRUNC(SYSDATE) - TO_DATE('01-JAN-2005', 'DD-MON-YYYY') + 1, 4)
              union all
           select * from tab where where id=:id and partition_key =MOD(TRUNC(SYSDATE) - TO_DATE('01-JAN-2005', 'DD-MON-YYYY') , 4)
              union all
           select * from tab where where id=:id and partition_key =MOD(TRUNC(SYSDATE) - TO_DATE('01-JAN-2005', 'DD-MON-YYYY') - 1, 4)
              union all
           select * from tab where where id=:id and partition_key =MOD(TRUNC(SYSDATE) - TO_DATE('01-JAN-2005', 'DD-MON-YYYY') - 2, 4)
    where rownum=1

    Is there an Oracle version number on your database?
    Is "Lewis" Jonathan Lewis? If so please post a link to his comment so we can read it and understand what you are referring to.
    If your table is indeed partitioned then please post the DDL that created it ... not every column but at least the partition key
    and the partioning template.
    Please also post your explain plan report generated from your DML statements by dbms_xplan.display.
    We can not help with what we can not see.

  • How do I change the order of the fields in my pdf form?

    I am using pdf. form I made in Acrobat and distributing with Adobe FormsCentral.  We use a table format for our teachers to fill out their field trip schedules and therefore use many different fields.
    How can I change the order of the fields (not for tabbing, we figured that out)...so that when we receive our notification email, I can see the inforamtion in a specific order (Date, Time, School, Program, etc).
    We would also like this same order to appear in the "View Responses" table.  I know you can drag and drop the order in the table but we have over 100 fields and that is going to take a really long time.
    Please help???
    DATE
    TIME
    To start/finish
    Name of Program  
    TEACHER’S
    NAME
    TEACHER’S EMAIL
    # OF
    STUDENTS
    Setup in
    Room #
    03-21-14
    Solids vs. Liquids
    03-21-14
    Solids vs. Liquids
    03-21-14
    Solids vs. Liquids
    04-11-14
    Solids vs. Liquids
    04-11-14
    Solids vs. Liquids
    04-11-14
    Solids vs. Liquids

    What do you mean by the "order they appear in the pdf structure"?  What is the "Pdf structure"? 
    thank you for your help... this is really upsetting, as I thought we finally found a solution with Adobe Forms : (
    We really need the fields to report back in a specific order and wouldn't have time to rearrange over 100 fields with every form that is submitted. We receive about 10-20 different forms a day (same form layout, just some of the fields will have to be prefilled depending on school/teacher reservation... so we have to name each form a different name, for each school).
    Thank you again and maybe one day they will change that.  Is there anyway to set it up in the web verison of Adobe FormsCentral to look similar to the table we have created?
    DATE
    TIME
    To start/finish
    Name of Program  
    TEACHER’S
    NAME
    TEACHER’S EMAIL
    # OF
    STUDENTS
    Setup in
    Room #
    03-21-14
    Solids vs. Liquids
    03-21-14
    Solids vs. Liquids
    03-21-14
    Solids vs. Liquids
    04-11-14
    Solids vs. Liquids
    04-11-14
    Solids vs. Liquids
    04-11-14
    Solids vs. Liquids

  • ITunes 10.6.3 keeps generating incomplete downloads AND it rearranges the order of the playlist when I burn a playlist to an mp3 cd

    iTunes 10.6.3 keeps generating incomplete downloads AND it rearranges the order of the playlist when I burn a playlist to an mp3 cd.
    I purchased an album on iTues from my MAC book Pro & the song downloads were incomplete. The song length shows correctly in the column, but they cut off between 1/4 & 1/2 way through the songs. Now, I dwonloaded it on my iPhone 4 through my itunes account after the purchase & the songs play fine. This happened with the very next song I purchased, as well.
    I got around this issue, then created mp3 versions of all the songs, put them in their own playlist, then "Burned an mp3 disc." When it completed, the songs were in a different order.
    Are there any fixes for either of these problems/bugs?

    iTunes: How to set the play order of songs on an MP3 CD - http://support.apple.com/kb/HT2455

  • HT1660 How do I change the order of the songs in a playlist?

    How do I change the order of the songs on a playlist.  The songs seem to have rearranged themselves.

    When viewing a playlist the left most column of numbers is the Play Order. If you click the heading of this column then it should restore the previously defined order. You will also be able to drag tracks up and down the list. If you decide to sort on another column heading, say Album by Artist, you can right-click the playlist name and then click Copy to Play Order to ensure the new order is copied to any device that syncs with the library.
    tt2

  • Sometimes when I put a CD in memory the order of the tracks is changed in memory from what is was on the disc.  I would rather have in the same as the original disc.  Is that possible?

    Sometimes when I put a CD into iTunes the order of the tracks is changed.  How can I avoid this?

    The order in which the tracks are displayed depends on the column selected in list view.  Select the album column to display tracks in album order.

  • Does the Order of the tablesjoins in Where clause matter in ORDERED hint?

    The ORDERED hint requests that the tables listed in the FROM clause of a SQL statement be joined in the order specified. But does the order of the join in "where" clause matters?
    Will be there any performance difference between below query? The order of the table in the FROM clause remains the same, but there is a difference in the order of conditions in the WHERE clause
    SELECT /*+ ORDERED */ a.fp_i f
    FROn iw_owner.revenue_fpct b,
    dw_owner.fp_dinn c,
    dw_owner.nanaged_at_dinn a,
    dw_owner.at_dinn_curr d,
    iw_owner.na_progran e,
    dw_owner.fp_dinn_curr f,
    dw_owner.fpn_of_at_dinn g
    WHERE a.nacc_dinn_i = b.nacc_dinn_i
    AND b.fp_dinn_i = c.fp_dinn_i
    AND a.acc_i = d.acc_i
    AND a.acc_nacc_c = e.npn_pro_c
    AND a.fp_i = f.fp_i
    AND b.org_fpn_dinn_i = g.org_fpn_dinn_i(+)
    AND c.fp_i IN ('JG 04')
    AND b.dte_dinn_i BETWEEN '1-Apr-2011' and '30-Apr-2011'
    SELECT /*+ ORDERED */ a.fp_i f
    FROn iw_owner.revenue_fpct b,
    dw_owner.fp_dinn c,
    dw_owner.nanaged_at_dinn a,
    dw_owner.at_dinn_curr d,
    iw_owner.na_progran e,
    dw_owner.fp_dinn_curr f,
    dw_owner.fpn_of_at_dinn g
    WHERE c.fp_i IN ('JG 04')
    AND b.dte_dinn_i BETWEEN '1-Apr-2011' and '30-Apr-2011'
    AND b.fp_dinn_i = c.fp_dinn_i
    AND a.nacc_dinn_i = b.nacc_dinn_i
    AND a.acc_i = d.acc_i
    AND a.acc_nacc_c = e.npn_pro_c
    AND a.fp_i = f.fp_i
    AND b.org_fpn_dinn_i = g.org_fpn_dinn_i(+)
    Thanks

    Gangadhar Reddy wrote:
    Does it matter the order of first 2 tables?This question makes me really wonder. It's fairly easy to see how explain changes when using hints.
    Your question indicates that you do not look at explain plans?
    Then why are you asking about hints in the first place?
    Using hints is something you do when you want to force a specific execution plan as part of some investigation, because you know something that the optimizer does no, or you have found a bug in the optimizert.
    In all cases you know exactly what you are doing.
    The /*+ ORDERED */ is all about you telling the optimizer to join the tables in the order you specified them in the from clause.
    As to your original question, there exists a similar ORDERED_PREDICATES hint.
    Regards
    Peter

  • What is the risk of changing the order of the security providers?

    I have developed a SFTP solution for Webmethods. Webmethods has IAIK (class iaik.security.provider.IAIK) as its default DH provider. To get the SFTP solution to work, I had to change the DH provider to SunJCE.
    I did that through changing the order of the security providers in the
    java.security file
    in C:\j2sdk1.4.2_13\jre\lib\security
    Now it is
    security.provider.1=com.sun.crypto.provider.SunJCE
    security.provider.2=sun.security.provider.Sun
    security.provider.3=com.sun.net.ssl.internal.ssl.Provider
    security.provider.4=com.sun.rsajca.Provider
    Before it was
    security.provider.1=sun.security.provider.Sun
    security.provider.2=com.sun.net.ssl.internal.ssl.Provider
    security.provider.3=com.sun.rsajca.Provider
    security.provider.4=com.sun.crypto.provider.SunJCE
    security.provider.5=sun.security.jgss.SunProvider
    A lot of other webmethods services uses the same server, so if we change the order of the security providers, it will affect all of these. So what I want to know is what is the risk of changing the order of the security providers?

    Check here for compatibility of 3rd party Software you may be using...
    http://roaringapps.com/apps:table
    Also note that Rosetta is no longer supported in Lion and Mountain Lion...
    You will need more RAM... Get the Maximum you can for your Mac...
    It is important to get the Correct and Matching RAM
    See Here  >  OWC RAM  >  http://www.macsales.com
    The above site also has videos on how to Install RAM should you need it...

  • The order of the keys in a Map (or something to replace Map)

    Hello,
    I got a map from a third map API, it stores the key and value in a certain order.
    I should dispaly them without changing the order.
    I made a simulation by:
                   for(int j=1; j<=5; j++) {
                   map.put("Column Title "+j, "item ("+i+", "+j+")" );
                   }     When I displayed it (In a web application JSP Taglib ...) by                     
              Set set = map.keySet();
              Iterator ite = set.iterator();
              while (ite.hasNext()) {
                   String columnName = (String)ite.next();
                   outSB.append("<td><b>"+columnName+"</b></td>");
              I found it displayed as
    Column Title 5 | Column Title 3 | Column Title 4 |Column Title 1 |Column Title 2
    It is not
    Column Title 1 | Column Title 2 | Column Title 3 |Column Title 4 |Column Title 5
    Therefore, I lost the control of the order.
    How can I control this order of key? (I don't want it be sorted but respect the order that the data were put!!!)
    Thanks.
    Penyou

    OleVV wrote:
    I haven't tried this myself, but I believe you will want to study the SortedMap interface and its implementing classes.Thanks.
    As I said in my question, I don't want to sort the keys. Because those keys and their orders are defined by a third part. For example, it some one askes to diaply in the following order:
    Firstname | Lastname | Iterm
    If I sorted, it would be either
    Firstname | Iterm | Lastname
    Lastname | Iterm | Firstname
    I am not satisfied with this.

Maybe you are looking for

  • Can you have more than one submit button on a form?

    I'd like to divide a form so that there are two sections, each with their own submit buttons.  Is it possible to have more than one and if so, how do you "create" a button?

  • Analyzer for excel - timeout

    Hi, I installed the plugin excel of BI Publisher When I try to connect to the analyzer for excel, and the query takes longer than 15 minutes. Exceed the time. Where I can to modify this parameter? In Weblogic? Thanks.

  • STO line item deletion after  PGI

    Dearr all, I have the following cycle,  STO--> VL10B-> Delivery Note creation> Picking -> PGI--> MIGO STO has 4 line items and I have done MIGO referring the delivery note. Later I found out that line item 1  material is wrong, now I want to cancell

  • Canceling a service contract

    Hi, I am passing a future cancellation date for a service contract through a custom BAPI . The date is getting passed, but the billing plan line items are not getting deleted. I have to manually go into the service contract and select the date again

  • HT201263 iPhone update ends with unknown error occured (14)

    And not only this - it keeps showing the USB - iTunes picture on the screen of the phone. I can not go any forward nor backward. Totally stuck. My first negatuve experience with Apple is really frustrating. I have tried also all of the recommendation