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

Similar Messages

  • Columns incorrectly omitted when using states: AdvancedDataGridColumn, includeIn

    When setting the includeIn property of any column in an AdvancedDataGridColumn array, the first column that is set to include is the only column shown, regardless of the includeIn or excludeFrom directives of the other columns.  The code below should show a datagrid with two columns, but only the first one appears.
    Does anyone have any idea why?  The behavior is correct for regular DataGrid, only incorrect for AdvancedDataGrid.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application 
    xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="
    library://ns.adobe.com/flex/spark"xmlns:mx="
    library://ns.adobe.com/flex/mx"currentState="
    A">
    <s:states>
    <s:State name="A"/>
    </s:states>
    <mx:AdvancedDataGrid>
    <mx:columns>
    <mx:AdvancedDataGridColumn headerText="col 1" includeIn="A"/>
    <mx:AdvancedDataGridColumn headerText="col 2" includeIn="A"/>
    </mx:columns>
    </mx:AdvancedDataGrid></s:Application>

    This does not work for me, as I've added functionality to select which columns should be visible. Setting visible to false will hide the column initially, but this column will be listed in the select visible column options.
    That's why I need to understand what is wrong when using includeIn/excludeFrom.

  • Column order in ALV using in portal environment does not work

    Hello,
    I set the columns order of an ALV table ( in WD ABAP ).  For one portal user these settings are not applied. ( columns seems to be in random order )  For the other users it works fine. I tried to see the differences between the portal users, but did not find anything.
    I guess it is some portal user personalization setting problem.
    Anyone knows how to fix this?
    Thanks,
    Tamas

    Tamas,
    I think user has done some personalisation or if you are Netweaver 701 you can rearrange the columns in a table
    Thanks
    Bala Duvvuri

  • 'duplicate column name'-Exception when using identical objects

    Hi all,
    we're currently experiencing problems when using one single object instance for two different members of a mapped class. Here is an excerpt from our ToplinkMapping.java which shows the relevant parts:
    public ClassDescriptor buildQuotationDefDescriptor() {
    RelationalDescriptor descriptor = new RelationalDescriptor();
    descriptor.descriptorIsAggregate();
    descriptor.setJavaClass(de.hvb.ha.data.QuotationDef.class);
    // Descriptor Properties.
    descriptor.setAlias("QuotationDef");
    AggregateObjectMapping commonQtyMapping = new AggregateObjectMapping();
    commonQtyMapping.setAttributeName("commonQty");
    commonQtyMapping.setReferenceClass(de.hvb.ha.data.type.VolumeDT.class);
    commonQtyMapping.setIsNullAllowed(false);
    commonQtyMapping.addFieldNameTranslation("commonQty_value->DIRECT", "value->DIRECT");
    descriptor.addMapping(commonQtyMapping);     
    AggregateObjectMapping wideningQtyMapping = new AggregateObjectMapping();
    wideningQtyMapping.setAttributeName("wideningQty");
    wideningQtyMapping.setReferenceClass(de.hvb.ha.data.type.VolumeDT.class);
    wideningQtyMapping.setIsNullAllowed(false);
    wideningQtyMapping.addFieldNameTranslation("wideningQty_value->DIRECT", "value->DIRECT");
    descriptor.addMapping(wideningQtyMapping);
    well, if we now assign one object-instance of VolumeDT to both members, i.e. like:
    VolumeDT vol = new VolumeDT();
    quotationDef.commonQty = vol;
    quotationDef.wideningQty = vol;
    we end up in the mentioned SQL-Exception, because toplink produces the following SQL-Statement:
    UPDATE T_QUOTATIONTARGET SET WIDENING_QUANTITY = 0.0, WIDENING_QUANTITY = 0.0 WHERE …
    but we've expected something like:
    UPDATE T_QUOTATIONTARGET SET COMMON_QUANTITY = 0.0, WIDENING_QUANTITY = 0.0 WHERE …
    Any idea we can prevent this behavior and still use one object-reference for both members??
    Appreciate any help!

    Thanks for the reply but unfortunately the mentioned change didn't fixed the problem. The sql-statement produced by toplink still looks like the one mentioned above. Moreover, the mentioned change couldn't be managed by the Workbench (which we use in the project to create the mappings), could it?
    We currently use TopLink Version 10.1.3.3.
    Since you've asked I post the relevant parts of the Parent-Mapping (and again its Parent), so sorry for the verbose post:
    public ClassDescriptor buildQuotationORMWrapperDescriptor() {
    RelationalDescriptor descriptor = new RelationalDescriptor();
    descriptor.setJavaClass(de.hvb.ha.server.businessobjects.techapi.instrument.toplink.quotation.QuotationORMWrapper.class);
    descriptor.addTableName("T_QUOTATION");
    descriptor.addPrimaryKeyFieldName("T_QUOTATION.SEQ_KEY");
    // Descriptor Properties.
    descriptor.useSoftCacheWeakIdentityMap();
    descriptor.setIdentityMapSize(300);
    descriptor.useRemoteSoftCacheWeakIdentityMap();
    descriptor.setRemoteIdentityMapSize(300);
    descriptor.setSequenceNumberFieldName("T_QUOTATION.SEQ_KEY");
    descriptor.setSequenceNumberName("Quotation");
    descriptor.setAlias("QuotationORMWrapper");     
    // Query Manager.
    descriptor.getQueryManager().checkCacheForDoesExist();
    OneToManyMapping quotationDefsMapping = new OneToManyMapping();
    quotationDefsMapping.setAttributeName("quotationDefs");
    quotationDefsMapping.setReferenceClass(de.hvb.ha.server.businessobjects.techapi.instrument.toplink.quotation.QuotationDefORMWrapper.class);
    quotationDefsMapping.dontUseIndirection();
    quotationDefsMapping.privateOwnedRelationship();
    quotationDefsMapping.useCollectionClass(java.util.ArrayList.class);
    quotationDefsMapping.addAscendingOrdering("orderBy");
    quotationDefsMapping.addTargetForeignKeyFieldName("T_QUOTATIONTARGET.SEQ_KEY", "T_QUOTATION.SEQ_KEY");
    descriptor.addMapping(quotationDefsMapping);
    and now the parent of QuotationORMWrapper:
    public ClassDescriptor buildPersistentInstrumentDescriptor() {
    RelationalDescriptor descriptor = new RelationalDescriptor();
    descriptor.setJavaClass(de.hvb.ha.server.businessobjects.techapi.instrument.toplink.PersistentInstrument.class);
    descriptor.addTableName("T_INSTRUMENT");
    descriptor.addPrimaryKeyFieldName("T_INSTRUMENT.INSTR_ID");
    descriptor.addPrimaryKeyFieldName("T_INSTRUMENT.INSTR_KEYTYPE");     
    // Descriptor Properties.
    descriptor.useSoftCacheWeakIdentityMap();
    descriptor.setIdentityMapSize(300);
    descriptor.useRemoteSoftCacheWeakIdentityMap();
    descriptor.setRemoteIdentityMapSize(300);
    descriptor.setAlias("PersistentInstrument");
    OneToOneMapping quotationMapping = new OneToOneMapping();
    quotationMapping.setAttributeName("quotation");
    quotationMapping.setReferenceClass(de.hvb.ha.server.businessobjects.techapi.instrument.toplink.quotation.QuotationORMWrapper.class);
    quotationMapping.useBasicIndirection();
    quotationMapping.privateOwnedRelationship();
    quotationMapping.addTargetForeignKeyFieldName("T_QUOTATION.INSTR_ID", "T_INSTRUMENT.INSTR_ID");
    quotationMapping.addTargetForeignKeyFieldName("T_QUOTATION.INSTR_KEYTYPE", "T_INSTRUMENT.INSTR_KEYTYPE");
    descriptor.addMapping(quotationMapping)
    I hope I don't missed any relevant parts. By the way, where could I log a bug for this issue and can it be considered a bug?
    Thanks in advance!
    Message was edited by:
    user630939

  • Pivot table total on a computed column not showing when using a filter

    I have this strange issue. I will try to explain.
    I have three columns in my report - Delivered Qty, Opened Quantity, and the third one is computed that is (Delivered Qty - Opened Qty). The data is displayed in a table by quarter. So basically I have Quarter, Delivered Qty, Open Qty, Not Opened Qty. I also have the total row. A pie chart shows the opened vs. un-opened quantities. It all works fine.
    The issue is when I add a prompt and the corresponding filter, the total for the computed field is blank. This happens whether it is pivot table or a regular table. That causes the pie chart to show 100% for the Opened qty.
    When I remove the filter, it works again. I can see the total for the computed field and the pie chart looks great.
    Can anyone please help me? I have a number of hours trying to play around with this and also looked in the forum to see if any one might have already discussed similar issue in the past. I could not find any.
    Thanks.

    I found the issue with my table total not showing up. Basically the new materialized view had its own data table alias. However, in the filter I was using date columns from different date table alias (copy and paste problem). As soon as I changed to the right date columns from the associated alias table, the row total showed up.
    Thanks anyways for your support.

  • Extra column names selected when using the 'popup describe' for selecting columns

    Hi,
    In SQL Developer 3.2.20.09, if you use the popup describe function on a table and individually select some columns using Ctrl + click (not shift click which would select a range of columns), and then drag them to the SQL worksheet so the column names come across, it will include all columns between the individual columns that were  selected.
    For example if I choose column 1 and 5, it will include columns 1,2,3,4,5 when I drag them across.
    Simple to reproduce on any table, just open the SQL worksheet, type the name of a table, open the popup describe and select some columns.
    regards,
    Steve

    This isn't happening in v4 EA2 so it appears to be fixed.

  • Editable table column ordering

    Before I embark on a lengthy process of handling drag and drop events, I thought I'd ask the collective knowledge if there was an easy way to create a table in which the operator can modify the order of the columns? I want the operator to be able to reorder the columns, ideally by selecting a column header and dragging it left and right to move its position relative to its neighbours.
    Thanks in advance,
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

    Looks good, only missing the logic for the table data itself. See attached...
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness
    Attachments:
    DragandDropColumns with data.vi ‏22 KB

  • How to auto scroll a table to last row when using Active Data Service?  11g

    Hi all,
    Has anyone got any experience with the ADF Active Data Service?
    I am using an af:table in combination with the ADF Active Data Service and I want the table to scroll to the latest row when new data arrives.
    It is basically a simple setup:
    The value attribute of my table points to a bean that extends CollectionModel and implements ActiveDataModel. This works perfectly. A soon as I receive new data in my bean, the table is automatically updated (e.g. a new row is inserted). I use JDev version: 11.1.1.3
    The problem is that I can not get the scroll bar to move down to the last row automatically when new data arrives. The auto scroll only works for the client that actually performs a submit. In other words the person that submits the new data, will see his scrollbar move down, this is because I added the following code:
    RowKeySet rowkeysset = chatTableBinding.getSelectedRowKeys();
    rowkeysset.clear();
    rowkeysset.add(getRowKey());
    AdfFacesContext.getCurrentInstance().addPartialTarget(this.chatTableBinding);
    This does not work for the clients that receive the new data via the Active data model. Apparently the active data service partially refreshes the table, but not in such a way that it sets the selected row to the last row?
    My table definition:
    <af:table value="#{pageFlowScope.chatBean.instantMessagingChatwindowBean}" var="row"
    id="t1" columnStretching="last" rows="10"
    styleClass="AFStretchWidth" autoHeightRows="10" contentDelivery="immediate"
    horizontalGridVisible="false"
    verticalGridVisible="false"
    disableColumnReordering="true" displayRow="last"
    rowSelection="single"
    binding="#{pageFlowScope.chatBean.instantMessagingChatwindowBean.chatTableBinding}"
    inlineStyle="height:80px;">
    p.s.
    The table is used to show incoming chat message.
    I am building a chat client (taskflow) in a Webcenter application. The concept is similar of that presented by Lucas Jellemain in his blogpost on building a Google Talk Client http://www.oracle.com/technetwork/articles/jellema-googletalk-094343.html

    Dan,
    This is a thanks for posting your findings. You saved me quite some time.
    <af:selectBooleanCheckbox id="showOnlyActiveSubscriptions" selected="true"
    label="Show only active services:"
    value="#{servicePortfolioBean.showOnlyActiveSubscriptions}"
    autoSubmit="true" />
    <af:table binding="#{servicePortfolioBean.serviceTable}" ...
    partialTriggers="showOnlyActiveSubscriptions">
    Of course, when I add a "ValueChangeListener" to the selectBooleanCheckbox, the PPR stops working. :( I wonder why?

  • How to override the default order UOM when using BAPI_PO_CREATE1...

    Hello Experts,
    How do I force BAPI BAPI_PO_CREATE1 to use my declared purchase order unit of measurement instead
    of getting it in the material master data? For example, material A has a default purchase UOM of CV, but
    when I create a PO using material A I want the purchase UOM to be EA instead of the default CV.
    How do I do that?

    Sorry settings in inforecord problem.

  • Finder Column View Broken when using NAME

    Hi fellow Apple nerds,
    I have found a rather frustrating problem in OSX 10.8 Finder.
    When I use column view in finder I want to have my columns orgainised so I can see the whole name of the files and folders in each column.
    Now this is the problem, when I "arrange" by "kind" the column contents is split into its various kinds of files.  THe problem is if I double click on the column to rezice it, it will only resize to the contents in the first type of files.
    Read it carefully, its a little hard to explain but you can try it for yourself.  You cannot get the column to show the whole file names of the other types of files until you return to the "name" arrange view.
    I find this very frustrating as I like to have my file sorted into the types and also display the full file names.

    I just discovered it only happens with files
    on Windows network shares, so I guess it must be
    something to do with that.
    Ah, that makes sense. Finder is reading the metadata entries, no problem on the Mac, but they might not even exist on the Windows server. And even they are part of the file, as may be the case with, for instance, EXIF data from the camera and/or Photoshop, the pieces of the Spotlight process that Finder uses isn't reading them on the network share. Spotlight doesn't work well over a network.
    Since I don't use networking, I suggest you try posting your request in the Network forum:
    http://discussions.apple.com/forum.jspa?forumID=733
    Someone there might have a work-around or other suggestion.
    Francine
    Francine
    Schwieder

  • Tabular form default column value bug when using named notation?

    Hi,
    I am using Application Express 4.0.2.00.07
    After exporting and importing an application, the default value of a tabular form column results in an "ORA-00907: missing right parenthesis" error.
    My original application uses named notation while calling my function (no problem here):
    Report Attributes > Column Attributes > Tabular Form Attributes > Default type = PL/SQL Expression or Function > Default = pkg_customers.some_funtion (*in_param =>* :P15_FK_CUSTOMER_ID).
    When I change this in my imported application to ... > Default = pkg_customers.some_funtion (:P15_FK_CUSTOMER_ID) everything works fine again.
    Is this a known bug or is there something I do not see?
    Regards,
    Frederik Van de Velde.

    yes it is
    p_column_default=> 'calpa_pkg_klanten.fun_sm_betreft_default (in_pk_klant_id => :P9_FK_KLANT_ID)',
    p_column_default_type=> 'FUNCTION',
    by default it is set exactly the same, but when running the page the tabular form does not render because of the usage of " =>".
    thx

  • Adobe Captivate 6 Content master slide order changes when used

    Hi,
    I'm using Captivate 6 to create a template. I made a content master slide with a specific order.
    But when i insert this content master slide, the object order changes.
    Is this normal? And is there a (simple) way to fix this?
    Thanks in advance

    Thanks for your repy,
    the exact version is captivate 6.0.1.240
    This is the content master slide i made:
    This is what happens when i insert the slide:
    I'm experiencing the same problem when i insert the slide on a blank project.

  • Table cells collapse incorrectly when using colspan

    I'm trying to create a table layout using the following:
    <table>
    <tr>
    <td>Image</td>
    <td colspan="2">Image</td>
    </tr>
    <tr>
    <td colspan="2">Image</td>
    <td>Image</td>
    </tr>
    </table>
    It should look like:
    1 | 2 2
    1 1 | 2
    Instead it looks like:
    1 | 2 2
    1 1 | 2
    Since there are no rows with all 3 cells the middle cell vanishes (same effect using display:none).

    A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.
    The helpers at that forum are more knowledgeable about web development issues.
    You need to register at the mozillaZine forum site in order to post at that forum.
    See http://forums.mozillazine.org/viewforum.php?f=25

  • Create Table Column position matters?

    Hi All,
    I am just confused the saying that the column positioning in creating tables does not matter for relational database?
    Do you agree or disagree.
    For me I do not agree. Why?
    SQL>  create table a (a char(10),b number);
    Table created.
    SQL> create table b (b number, a char(10));
    Table created.
    SQL> insert into a values ('a',1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> insert into b select * from a;
    insert into b select * from a
    ERROR at line 1:
    ORA-01722: invalid numberSo it does matter.
    Thanks

    KinsaKaUy? wrote:
    Ok maybe I interpreted it in the wrong way : )
    Can you help me handle this issue.
    I have a table EMP with more than 500 columns, and with 10,000 rows.
    The developer asked to modify a column ATTRIBUTE1 from VARCHAR2(10) to NUMBER;
    It says that the column needs to be empty to change datatype, so I created a backup:
    CREATE TABLE EMP_BAK AS SELECT * FROM EMP;
    TRUNCATE TABLE EMP;
    ALTER TABLE EMP MODIFY(ATTRIBUTE1 NUMBER);
    How can I insert it back using...INSERT INTO EMP SELECT * FROM EMP_BAK;
    To aggraviate the situation the designer wants to move the column position from 100th place to 10th place.
    Assuming that you can not reason them out, how do you make this task easier?
    ThanksInstead of creating a new table and your above mentioned complications you could follow the below method i guess.
    ALTER TABLE EMP ADD DUMMY_ATTRIBUTE1 NUMBER;
    UPDATE EMP
    SET ATTRIBUTE1 = DUMMY_ATTRIBUTE1
    WHERE 1=1;
    COMMIT;
    UPDATE EMP
    SET ATTRIBUTE1 = NULL
    WHERE 1=1;
    COMMIT;
    ALTER TABLE EMP MODIFY ATTRIBUTE1 NUMBER;
    UPDATE EMP
    SET DUMMY_ATTRIBUTE1 = ATTRIBUTE1
    WHERE 1=1;
    COMMIT;
    ALTER TABLE EMP DROP COLUMN DUMMY_ATTRIBUTE1;

  • Problem with the table view's _visibleBounds when used on a scroll view

    I've had numerous problems with getting a table view to work on a scroll view since the table view keeps resizing (http://discussions.apple.com/thread.jspa?threadID=2618816&tstart=0)
    I have created the views in IB. The scroll view is attached to the controller's view, and is assigned as the controller's view. The frame size of the scroll view is 320x436. I am manually setting the content size in code:
    UIScrollView* tempScrollView = (UIScrollView*) self.view;
    tempScrollView.contentSize = CGSizeMake(320, 720);
    The table view's frame's width/height is set to 280x88 in IB (i.e the size of two cells), and the header and footer are set to size 0.
    However, when I run the code, the table view is smaller, it is only 280x68. I have looked in the debugger, and the table view's _contentSize (of its scroll view) is 280x88; however, the _visibleBounds property is 280x68.
    I've tried looking into the documentation for the UITableView class, but can't find anything on the _visibleBounds property, or where it is being set and how to force it to the correct size.
    If anybody has any advice, I'd appreciate it.

    I can get around this problem by going to the scrollview which the tableview belongs to, and unchecking the Autoresize Subviews box.
    But if anybody knows about the _visibleBounds property, or the rules which are applied when resizing subviews, I'd be interested.

Maybe you are looking for

  • Had an error message " Installer failed to initialize" what can I do next ?

    I have Windows 8 platform and Had an error message " Installer failed to initialize"  when re installing Creatve Cloud what can I do next ? Also I am not able to down load any trials Also I cannot get student yearly plan for CC membership in Australi

  • FM to assign Users to Organizational Unit

    Hello Experts, In CRM, is there any way to add Users/Business Partners to Organizational Unit programatically? OR will it be manual process(PPOMA_CRM) in all landscapes(DEV, QA and  PROD) ? If there are any standard Function Modules to do it please s

  • Changes not updating in website

    I recently reinstalled Dreamweaver and had to import our website into the new version and now when I make changes and "put" them it accepts them says the link to the site is fine and the files are correct on the remote server, but when I open the web

  • Is it dangerous to play Zynga games these days?

    Hi, here in Germany there are several warnings about the security gap in Flash player that is currently being used by cyber criminals to access computers. I deactivated the Flash, but now I am unable to play Zynga games. Is it really that dangerous t

  • Upgrading to 8.1.7.2 causes the most basic XML Usages not to work anymore

    Any ideas? I try the following and get: declare queryCtx DBMS_XMLquery.ctxType; result clob; begin DBMS_JAVA.SET_OUTPUT (1000000); queryCtx := DBMS_XMLQuery.newContext('select * from dual'); result := DBMS_XMLQuery.getXML(queryCtx); DBMS_XMLQuery.clo