New column isn't populated

I have an existing table and corresponding form that needed to have a couple of columns added.
I started by altering the table to add the column:
alter table my_tab add new_col_a number;and then I added a text box to the form and titled it new_col_a. The form only deals with this table. When you run the form the data you entered into the text box does not show up in the table - there is no error message.
I went back into the form and made sure that the properties of the next text box were set correctly, I even explicitly stated the column name under the database portion of the properties. Still no glory.
This is a 6i form I am working with. I am sure that it is something silly, but I am at a loss on what to do next.
Thanks, Tony

Database Properties
Database Item Yes
Column Name NEW_COL_A
Query Only No
Query Allowed Yes
Query Length 30
Case Sensitive No
Insert Allowed Yes
Update Allowed Yes
Update null No
Lock Record No
The block only has one trigger KEY-PREV-ITEM
PREVIOUS_FIELD;
IF (:SYSTEM.RECORD_STATUS <> 'QUERY') THEN
  determine_amt;
END IF;The determine_amt is just a select into variable query, nothing in there that looks like a problem.

Similar Messages

  • Urgent Query: Populating a new column

    I want to add a new column in a table. The column should then become the primary key. AT present the table (say table1) does not have a primary key.
    The table has a column col1 and other columns also.
    Col1
    BBBC
    AAAA
    ABCD
    AAAA
    CDEF
    The data in the primary key column should poupulated with incrementing integer according to the col1 data alphabetically arranged eg.
    Col1 pri_key
    AAAA 1
    AAAA 2
    BBBC 3
    CDEF 4
    How to populate such data without writing umpteen insert into statements.
    Thanks
    Edited by: user11062526 on Apr 16, 2009 4:56 AM
    Edited by: user11062526 on Apr 16, 2009 4:57 AM

    You can do it in this way:
    SQL> conn kamran/kamran
    Connected.
    SQL> create table test (name varchar2(10));
    Table created.
    SQL> insert into test values('BBBC');
    1 row created.
    SQL> insert into test values('AAAA');
    1 row created.
    SQL> insert into test values('ABCD');
    1 row created.
    SQL> insert into test values('CDEF');
    1 row created.
    SQL> select * from test;
    NAME
    BBBC
    AAAA
    ABCD
    CDEF
    SQL> select rownum, name from test order by name;
        ROWNUM NAME
             2 AAAA
             3 ABCD
             1 BBBC
             4 CDEF
    SQL> select rownum, a.* from (select name from test order by 1) a;
        ROWNUM NAME
             1 AAAA
             2 ABCD
             3 BBBC
             4 CDEF
    SQL> alter table test add (col2 number);
    Table altered.
    SQL> select * from test;
    NAME             COL2
    BBBC
    AAAA
    ABCD
    CDEF
    SQL> declare
    cursor my_cur is
    select rownum, a.* from (select name from test order by 1) a;
    begin
    FOR my_rec IN my_cur LOOP
    update test set col2=my_rec.rownum where name=my_rec.name;
    END LOOP;
    commit;
    end;
    PL/SQL procedure successfully completed.
    SQL> select * from test;
    NAME             COL2
    BBBC                3
    AAAA                1
    ABCD                2
    CDEF                4
    SQL> select * from test order by name;
    NAME             COL2
    AAAA                1
    ABCD                2
    BBBC                3
    CDEF                4
    SQL>- - - - - - - - - - - - - - - - - - - - -
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com

  • Add a field in a form after creating a new column in a table

    Hi,
    I have searched extensively in the help menus and tutorials and maybe I have missed this, but after adding a new column to a table. How do I update the form so that when data is entered into the form it is populated in the table? Is there a tutorial or explanation of the process somewhere?
    Thanks,

    Hi
    That has to be done manually but it is simple. Create a new item of the desired type e.g. Text Item, Select List by Right clicking on the region and select Create Page Item. A wizard will start where you will select the desired type. Press next and enter the name of the item. e.g. P3_LAST_NAME. Press Next and Enter a label for the Item. Press next and choose Source Type as Database Column when asked. Press Create button.
    Hope it helps.
    Zulqarnain
    MaxApex Hosting
    http://www.maxapex.com

  • Issue adding a new column to OBIEE presentation layer

    Hi,
    I am pretty new to OBIEE so this may be a silly question. I am facing some problems trying to add a new column from a physical table the OBIEE presentation layer.
    Below are the steps I followed:
    Task: add a product category set to the presentation layer.
    Steps:
    1) First verified that the product category set is being populated in the W_PROD_CAT_DH table in the datawarehouse. this was done by running the following sql
    SELECT W_PROD_CAT_DH.TOP_LVL_PRODCAT_NAME
    FROM W_PROD_CAT_DH, W_INVENTORY_PRODUCT_D
    WHERE W_PROD_CAT_DH.integration_id = W_INVENTORY_PRODUCT_D.INV_PROD_CAT1
    This sql gave the right category value.
    2) created a "Alias" of the table W_PROD_CAT_DH in the OBIEE Admin tool physical layer. (done by right clicking W_PROD_CAT_DH >>New Object>> Alias)
    3) named the Alias of W_PROD_CAT_DH as "Dim_W_INV_MKT_CAT" and created a key of the alias named "integration id" on the column "integration_id"
    4) opened the pre-existing alias of W_INVENTORY_PRODUCT_D the alias was called "Dim_W_INVENTORY_PRODUCT_D" and added a key called "MKT_CAT" on the column "INV_PROD_CAT1" in this alias (Dim_W_INVENTORY_PRODUCT_D of the table W_INVENTORY_PRODUCT_D)
    5) in the alias of the "W_INVENTORY_PRODUCT_D" called "Dim_W_INVENTORY_PRODUCT_D" added a "Foreign Keys" the expression of the key is following: ("Oracle Data Warehouse"."Catalog"."dbo"."Dim_W_INV_MKT_CAT"."INTEGRATION_ID" = "Oracle Data Warehouse"."Catalog"."dbo"."Dim_W_INVENTORY_PRODUCT_D"."INV_PROD_CAT1")
    Logical layer
    6) Opened the existing logical folder called "Dim - Inventory Product" and clicked on "Sources" tab then double clicked the source "Dim_W_INVENTORY_PRODUCT_D" and added a new mapping under "Map to these tables" under "General" tab. The column that was added was the physical alias "Dim_W_INV_MKT_CAT"
    7) added a new column mapping to the same logical table source (Dim_W_Inventory_PRODUCT_D) this new mapping was a column from the alias "Dim_W_INV_MKT_CAT" (column name "TOP_LVL_PRODCAT_NAME")
    Presentation Layer
    8) dragged the newly added column (TOP_LVL_PRODCAT_NAME) from the logical layer "Dim - Inventory Product" to the presentation layer "Product" folder.
    ISSUE
    after adding everything and checking global consistency and save and checking-in my work when i login from the front end presentation services. I see the newly added column is showing under the "Product" folder. on dragging the column by itself to the Ad-Hoc analysis I can see the different values of the category. On adding a second column from the same logical folder (Dim - Inventory Product in logical layer) i still see the right product name and corresponding category. BUT when I drag any other column from any other folder (such as "Day" from "Time" or any fact values) the result does not fetch any data (message: The specified criteria didn't result in any data.)
    I am not sure if I am missing any step but I know I am mapping the new table alias to the inventory_product_d since i see right results on creating analysis of columns in those two folders. but no other folders give me any data.
    I also know that the logical folder "Dim - Inventory Product" is joined with other tables as I can see results when i do not add the newly added catagory column but other folder and other columns of "Dim - Inventory Product"
    I would really appreciate any insight to this very much. we are using OBIEE 11.1.1.6 with the Oracle 11.5.10 Adaptor (SDE_ORA11510_Adopter)
    I will try to upload some screenshots if needed but presently not sure if its something really simple.

    Hi Prassu,
    thanks for the responce. and Apologies for the delay in getting back to you.
    1) 1.First of all set the logging level to 3 in the admin tool save it.
    You can get the SQL query from here
    settings(Answers right top)-->Administration-->manage sessions-->view log
    When I try to do this I get the following message. and no log files.
    Error
         Log Could Not Be Retrieved
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 27002] Near <3790667783>: Syntax error [nQSError: 26012] . (HY000)

  • Adding new column in Report

    Hi All,
    I need to add regulation requirement ID and Description in Risk and Control Matrix report(F7).
    I have done the table entry in the required view cluster those are:
    VC_GRFNREPCUST
    VC_GRFNREPCOLUMNSC.
    I am able to see the new column in the report output but the entire column is blank. When i try for regulation the value is populated but not for regulation requirement.
    Am i missing any configuration?? I am struggling for an week.
    Please help if you already come across this requirement. I highly appreciate for your time and help.
    Thanks
    Gourab

    Hi Gourab,
    You can check for the table: V_GRFNREPCOLUMN
    Which lets you to do the following:
    1) Copy an existing report
    2) Check all the technical adjustments
    3) change the columns for this report
    See if this helps.
    Regards,
    Ameet

  • How to add new columns in materialized view

    We are using Oracle 10g Release2.
    We need to add new columns to a prebuilt fast refresh materialized view. We want to add 4 new columns in this table and make them part of select statement in the materialized view. We can drop the view but we cannot do complete refresh after that because the paymentsInfo table has a creation_timestamp column which is populated by before row insert trigger with systimestamp. If we did the complete refresh, all values in this column shall be changed.
    CREATE MATERIALIZED VIEW  paymentsInfo
    ON PREBUILT TABLE
    REFRESH FAST
      ON DEMAND
      START WITH SYSDATE
      NEXT SYSDATE+5/1440
      WITH PRIMARY KEY
    DISABLE QUERY REWRITE AS
    SELECT PAYMENT_ID,BATCH_REFERENCE, TRANSACTION_REFERENCE, NO_OF_TRANSACTIONS, DEBIT_ACC_NUM,... from [email protected]
    I want to know is there any other way to add new columns without losing any changes from the master table.
    Thanks.

    There is no way to add new Columns to Materialized view. To add new columns, it has to be dropped and re-built again.
    Extract from Oracle Documentaion:
    Use the ALTER MATERIALIZED VIEW statement to modify an existing materialized view in one or more of the following ways:
      To change its storage characteristics
      To change its refresh method, mode, or time
      To alter its structure so that it is a different type of materialized view
      To enable or disable query rewrite
    If you have a problem of Complete refresh, then It may be beneficial to get the backup of the MView; Drop and re-create it with modified definition; Restore the backup data leaving the new columns untouched (assuming they are to be kept as fetched from the Master site).

  • Add New Column to a ViewObject?

    I'm experimenting with 10.1.3. I've created a view object, and dropped a table on a jsp with it (using ADF faces). Now, I have added a column to the query in the view object, but it isn't automatically getting added to the attribute list.
    For example, the original query was:
    select last_name||', '||first_name Name from employees
    and it was changed to:
    select last_name||', '||first_name Name, email from employees
    The only way I can see to get the new column is to add it by using the 'New' button, and then manually setting the name and data type. It seems like it should be automatically picked up, or refreshed somehow, since I can't imagine queries being that stable over time as underlying tables and user needs change, and anytime you invoke a manual process you are A) introducing more opportunities for bugs and B) wasting time anyway.
    Am I missing something?

    Interesting behavior. When I go to the jsp that has the grid, I can just drag the new column into the grid. What I had been doing was adding it into the SQL tab on the view window, testing the query, and then expecting it to be available as an attribute right then and there, so I could change the hint, label, etc. and THEN go drop it on the page. I hadn't even looked to see if it were available at the page level since it wasn't there on the viewobject yet.
    My recommendation would be that the view object attributes be refreshed first, otherwise you've added another step to go through, but of course, I'm just lazy. :)

  • Adding new column to production database

    I have to add a new timestamp column, that defaults to the current date/time, to an existing production database. The table is large - 150M records. I am trying to understand the ramifications of adding a new column to a table this large that gets hit often, mostly with inserts and reads. The column does allow null values and I am not going back and populating existing records with a value. Basically, I am looking for some best practice guidelines - how to prepare, what to expect, what other processes should be followed along with this schema update.

    Radiators wrote:
    Thanks, I have not found any %TYPE or %ROWTYPE dependencies on the table I am altering. But at the same time I do not understand how these types of dependencies would invalidate packages. I wouldn't be breaking any %TYPE dependency because I am not dropping columns, only adding a new one. And according to documentation for %ROWTYPE - "If columns are later added to or dropped from the table, your code can keep working without changes." Can you point me to Oracle documentation that describes your concern in detail? Thanks.you can test it yourself
    SQL> CREATE TABLE abc (c1 NUMBER);
    Table created.
    SQL> INSERT INTO abc
      2       VALUES (99);
    1 row created.
    SQL> CREATE OR REPLACE PROCEDURE test_proc
      2  AS
      3     v   abc%ROWTYPE;
      4  BEGIN
      5     SELECT c1
      6       INTO v
      7       FROM abc
      8       WHERE ROWNUM = 1;
      9  END;
    10  /
    Procedure created.
    SQL> SELECT object_name, status
      2    FROM user_objects
      3   WHERE object_name = 'TEST_PROC';
    OBJECT_NAME                STATUS
    TEST_PROC                    VALID
    SQL> ALTER TABLE abc ADD (c2 VARCHAR2(10));
    Table altered.
    SQL> SELECT object_name, status
      2    FROM user_objects
      3   WHERE object_name = 'TEST_PROC';
    OBJECT_NAME                 STATUS
    TEST_PROC                     INVALID
    SQL> you should also consider the chance that some where if people are using "select * into" using this table, which will fail since you added new column. i don't see any unusual performance bottlenecks by adding a new column. in case of the backups, yes the earlier backups will not have the column. if you restore it, you will see earlier table structure itself. i have one specific question. why are you not attempting this in development/test environment first? even if it is a simple insert, it's always important to do it in test environments before attempting on production db. one thing for sure i know is, after adding column, you will have to recompile all the invalid dependencies. i think, it's better if you attempt it in test db and come up with any issues you see rather than asking a general question where problematic scenarios are plenty and rarely unknown before hand.

  • How to make new column of Interactive Report permanent

    Hi,
    after changing the query of an interactive report (adding a new column) you have to add the column from the Actions Menu -> Select Columns function of the report.
    But this change isn't permanent. After i logout and login again, or a user goes to the specified report, the column isn't visible.
    Is it possible to make this permanent, because the only solution i have found it to recreate the report, which is not a good idea.
    Thank you.
    Teo
    Edited by: temm on Sep 14, 2011 11:21 AM

    Hi,
    Login to Apex builder. Run page where you have IR.
    Select columns you like display. Then from action menu save report default layout.
    Regards,
    Jari
    Edited by: jarola on Sep 14, 2011 11:23 AM
    See documentation
    http://download.oracle.com/docs/cd/E23903_01/doc/doc.41/e21674/bldapp_rpt.htm#sthref1287

  • New Column Still Defaulting To Value From Deleted Column With Same Name

    This is strange. I had a managed metadata column called "Document Category" attached to multiple content types and set to a default value (different in each library). Then I deleted the column (all instances from libraries and references from
    content types as well), and created a new site column with the same name, but a Choice field instead. The libraries that had a default value for the original column, are still populating new documents using the original default value, and it's showing up as
    something like 88;#Hospital Correspondence|4b1e8da6-8653-492a-3e45e6c56c38 . The column is still a choice field, so I don't even know why it allows this value. Does anyone know why this is happening or how to fix it?

    Hi  Vince,
    Thank you very much for sharing your solution here. It  would be helpful for others who encounter similar issue.
    Thanks again,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Eric Tao
    TechNet Community Support

  • Getting Error while creating a new column in a list or library in a site collection - Sharepoint 2013

    Hi,
    I am getting below error when i create a new column in a library or list,
    "Save Conflict
    Your changes conflict with those made concurrently by  another user. IF you want your changes to be applied, click back in your browser, refresh the page, and resubmit your changes"
    Any help please.
    Smile Always

    Hi,
    I have done a test in my SharePoint 2013. And I can re-appear your issue.
    Per my test, I found that If  there are more than one user create a new column in
    a library or list at the same time, when we
    click ok after the other users, we will get the error.
    Or if we open a library or list in two windows with the same user, when we
    create a new column in a library or list in two windows
    at the same time, we will get the error.
    To resolve your issue, refresh your page and
    create a new column again.
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • How can i add to a listBox items near in a new column other items ?

    The items on the right i changed the property of the listBox1 righttoleft to Yes.
    My problem is i want to build a new column for the number so each number i'm adding will be next on the left to the belong item string. And not under it like now.
    1. Maybe i need to use another control and not listBox ?
    2. How can i add column/s and also maybe adding a title to each column like: Names Id Number....?

    If you want columns, you should consider a
    ListView or
    DataGridView.

  • Can we add a new column in report which is not in table.

    Hi All,
    Can we create a new column in report which is not in table.
    I have two columns in my table completion_date, manufacture_date. If the difference between the completion_date and manufacture_date is 0, -1, 1 then the new column of the report will say on time against each record or else will display late. Any suggestion how to proceed on this
    Regards
    Edited by: User_Apex on May 16, 2011 5:54 AM

    Standard report then, NOT an interactive report (which if you were using, you could build a computation and report on that)..
    Then the adding a column in the query would be your best best...
    Thank you,
    Tony Miller
    Webster, TX
    There are two kinds of pedestrians -- the quick and the dead.
    If this question is answered, please mark the thread as closed and assign points where earned..

  • How to Create a new column from two different result sets

    How to Create a new column from two different result sets, both the result set uses the different date dimensions.

    i got solutions for this is apply filters in column formula it self, based on the requirement.

  • Adding new  column to LOV Page , from  extended VO

    Hi All,
    I did a vo extension regarding a LOV (in maintainence user),to add extra columns required. VO Extension is done and able to see that extended vo in page But iam unable to add those extra fields in my LOV page through personalization .
    i.e iam trying to add those columns by giving view instance and view attribute ....and apply .....return to application .......HERE IAM NOT ABLE TO SEE MY ADDED FILED . Can any one please help .
    Thanks.

    Hi Hussein,
    I tried the above link, but i did not get the answer for my requirement..
    Is it possible to add a new column in the LOV using forms personalization?
    Currency Code - This is the only column i have it in the LOV for now.. I just wanted to add one more column Currency Code, Currency Name...
    So when the user click the LOV, they can see both Currency Code and Currency Name...and select one of the Currency in the field.
    Please let me know.
    Thanks,
    Genoo

Maybe you are looking for