Adding new column to table now page is blank in Apex

thinking this altered table and messed up table id call. How can I fix?

Hello,
Are you talking about a report, a form, ...?
You can adapt the sql or the item or the process to fix the problem.
Regards,
Dimitri
http://dgielis.blogspot.com/
http://www.apex-evangelists.com/

Similar Messages

  • 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.

  • Check 2 tables(Table A and Table B) and figure out new columns present in Table A and add these new columns to Table B

    How to check 2 tables(Table A and Table B) and figure out new columns present in Table A and add these new columns to Table b.
    DDL-
    Create table A
    ( A INT,
    B INT,C VARCHAR(2)
    Create table B
    A INT,
    B INT
    Any advice on the best approach or method to achieve this.
    I understand that I need to check the schema of the columns and then do a match between 2 tables and find new columns and then alter my target table
    Mudassar

    Can you try this..
    CREATE TABLE A ( A INT, B INT, C VARCHAR(2) )
    CREATE TABLE B ( A INT, B INT )
    Declare @ColumnVar nvarchar(128),@DatatypeVar nvarchar(128)
    SELECT @ColumnVar=x.COLUMN_NAME, @DatatypeVar=x.DATA_TYPE
    FROM INFORMATION_SCHEMA.COLUMNS AS x
    WHERE TABLE_NAME = 'A'
    AND NOT EXISTS ( SELECT *
    FROM INFORMATION_SCHEMA.COLUMNS
    WHERE TABLE_NAME = 'B'
    AND COLUMN_NAME = x.COLUMN_NAME )
    Declare @SQL VarChar(1000)
    SELECT @SQL = 'ALTER TABLE B ADD ' + @ColumnVar + ' '+ @DatatypeVar
    Exec (@SQL)
    select * from B
    Please Mark This As Answer if it helps to solve the issue
    http://stackoverflow.com/questions/2614101/alter-table-my-table-add-column-int

  • 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

  • Adding new column to Webdynpro Table

    Hi
    How can I add a new column, already one of my friend has added a table to the view in webdynpro, there are 4 columns presently maped to BAPI
    I need to add 2 new columns to the webdypor table and map it to BAPI.
    please suggest me. basically I am enhancing the screen.
    regards
    kiran

    Hi,
    May be there is a constraint defied on the newly added column that it can not be null ?
    Thanks,
    Sutirtha

  • Adding a new column in table control of MIGO

    Hello,
    I want to add a column in the itemlist table control (screen 200) of MIGO to show the batch's case qty.  I used an example in BAdI MB_MIGO_BADI to add a new header tabstrip but the itemlist table is still pointing to MIGO's table control screen 200 ( used in subscreen SUB_ITEMLIST ).   I want to show my table control which has the added column instead.  
    Does anyone have any ideas how to do this ?
    Thanks.
    TTran

    Hi....
    1. Goto that screen layout and make it change mode.
    2. Follow the menu path -> goto-> secondary window-> dictionary/ program fields
    3. select the reuired field
    4. drag that into your table control , cretes new column
    5. Also capture icon in the left side i.e. T for text make that in header area of new field.
    6. Double click on this , give some name.
    7. Save check activate
    Thanks,
    Naveen.I

  • Adding new columns & New dataware house Tables

    Hello Gurus,
    We are using OBIEE 7.9.6, with Oracle EBS OLTP. I would like to show a new colum in an existing dash board report that requires new column in datawarehouse table & staging table. I also have a requirement to add new custom datawarehouse table to create a new report. Does anyone know the step by step approach to do this with details such as BI tools that are required?
    Any pointers on this is greatly appreciated!
    Thanks,
    Chandra

    Please read this:
    Oracle® Business Intelligence
    Data Warehouse Administration Console User’s Guide
    Version 10.1.3.4
    E12652-01
    Figure 8–1 Process Flow to Add New Object to Data Warehouse
    Pg 59

  • Adding new column in an existing report which was build using Union

    While working in OBIEE 11g I encounter an issue.
    My existing report was build using UNION at Criteria Tab in Analysis. Now I have a requirement to add a new column into the same report. For each criteria I have added the new column but when I go back to the "Result Columns". I see a new field added but it is not allowing me to open or edit column properties for that new column & at the same time it is not allowing me to navigate to other tabs like Results, Promts, and Advanced.
    I don’t want to build this report from scratch. Is there any workaround to get it resolved?

    Hi,
    Just check it once the new added column data types are mismatched or not?
    and the new added column should be navigated into excluded section, so u should edit the report and dragged into the table column section.
    Thanks..

  • How to add a new columns in table contorl in standard screen.

    Hi All,
    I am working on a enhancement for transaction VA01. I have to add few column for tab Additional Data B. In this tab  column are displayed in table control. Now i have to add two more column in table control. Could you please help me to find out the exit and the way to populate the new columns.
    Thanks
    Piyush Mathur

    Hi Piyush,
              That table control might have been created using an internal table i.e declared in the exit. Add two more fields which you want to that internal table. And come to the layout and create table control once again using that internal table.
    Reward if helpful.
    Regards,
    Ramana

  • How to add a new column in a SWITCHER PAGE

    Hi,
    I am working on iexpense and i have to add two new fields (column) in expense line GRID in iexpense Allocation page.
    for that i modified the VO and added my attributes and by personalization wanted to add a new column to that ...but its not happening......
    Could any one please explain any alternative way to get rid of that....
    Regards,
    prakash

    Yes i am trying to add by personalization only.. and i am giving all the credential correctly..but still i am not getting the new column .....
    for that i have modified my VO also.... to add that new attribute and given that attribute name and new VO name in the desired field while doing personalization.....
    is there any alternative soultion is there ..by which i can add it?
    Thanks
    Prakash

  • Change "Date" From a Column in Table A, to New Column in Table B:

    I'm trying to pull a Date from TABLE_A, and change the year to a current date, and popluate this into a new table. I also want to pull the PK of TABLE_A over, so that I can create a link back to the master record.
    In my example I'm useing SYSDATE for my current date. Once I get the script working, I want to pull the Calander_Date from my "Current Calendar" in APEX.
    1. INSERT INTO TABLE_B (NAME_ID,Date,New_Date VALUES (
    2. NAME_ID , (This is a Column FROM TABLE_A),
    3. DATE, (This is also a Colum From TABLE_A)
    4. TO_CHAR(DATE,'DD')||'-'||
    5. TO_CHAR(DATE,'MON')||'-'||
    6. TO_CHAR(SYSDATE,'YY') )
    7. FROM TABLE_A
    8 WHERE TO_CHAR(DATE,'MON') = TO_CHAR(SYSDATE,'MON');
    Needless to say, this doesn't work!!! I'm very new to SQL and APEX. I've also tried embedding SELECT STATEMENTS, as shown below, but still now dice (Trying to figure out out to calculate the TO_CHAR FROM DUAL and from TABLE_A for the "DATE" Column)
    1. INSERT INTO TABLE_B (NAME_ID,Date,New_Date VALUES (
    2. SELECT NAME_ID FROM TABLE_A,
    3. ELECT DATE FROM TABLE_A,
    4. SELECT TO_CHAR(DATE,'DD')||'-'||
    5. SELECT TO_CHAR(DATE,'MON')||'-'||
    6. SELECT TO_CHAR(SYSDATE,'YY') ) FROM
    7. FROM NAMES
    8 WHERE TO_CHAR(DATE,'MON') = TO_CHAR(SYSDATE,'MON');
    Depending on the modifications I make I usually get the following two errors:
    ORA-0933: SQL Command not properly ended (in the first example)
    ORA-00936: Missing Expression (in the second example).
    Appreciate any thoughts you all might have!!!
    LEONHARK

    So here's a question: are the different pieces of the day stored in the same column in Table A, or different columns? If they are the same, you can simplify a lot of your data copy procedure to:
      insert into TABLE_B (NAME_ID, SOME_DATE, NEW_DATE)
       values (select KEY_ID, to_date(ORIG_DATE,'DD-MM-YYYY') from TABLE_A
      where to_date(ORIG_DATE,'MM') = TO_DATE(SYSDATE,'MM'));If the dates are stored in individual fields in Table_A, use something like:
      insert into TABLE_B (NAME_ID, SOME_DATE, NEW_DATE)
       values (select KEY_ID, to_date(ORIG_DAY || '-' || ORG_MONTH || '-' || ORIG_YEAR,'DD-MM-YYYY') from TABLE_A
      where to_date(ORIG_DATE,'MM') = TO_DATE(SYSDATE,'MM'));An alternate for your where clause that uses a range of dates instead of a specific month is
      where to_date(ORIG_DATE,'DD-MM-YYYY') between TO_DATE('01-01-2007','MM-DD-YYYY') and TO_DATE('12-31-2007','MM-DD-YYYY');A couple of advantages: a date comparison is much faster than a string comparison and more accurate to what you want. Convert the strings to dates rather than the dates to strings. In my opinion, dealing with dates can be one of the biggest headaches for those learning SQL. There are a lot of good helps out there, but you will want to familiarize yourself with the TO_DATE() and TO_CHAR() functions, because you will use them a lot!
    Also, store dates as DATE datatypes! Do NOT store them as text! You will save yourself a lot of headaches and your queries will run much faster if you use DATE datatypes.

  • 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 make new column in table changing depending on other columns

    hi
    i have table and i want to add new column that calculate the deference between two other columns.
    i create the column and i could loop in the content of the table but i could not update the entries in the new columns.
    regards
    Said

    Hi!
    did u try creating a node for the same? create a value node for the table with 3 value attrbutes, one for each column. then in the init method of that view, just create 3 arrays, setting the value in the first two array. then make use of this code for setting the difference in the thrid column
    IPrivateUIView.I<valuenode> tab_node = wdContext.node<valuenode>();
    for(int i= 0; i<6;i++)
         IPrivate<view>.I<valueelement> num_ele = tab_node.create<valueelement>();
         num_ele.set<valueattribute1>(num1<i>);
         num_ele.set<valueattribute2>(num2<i>);
         num_ele.set<diffvalueattribute>(num1<i>-num2<i>);
         wdContext.node<valuenode>().addElement(num_ele);
    this will surely work .
    Do let me know the results.

  • Null Pointer Exception When Adding New Row on Table

    Hello JheadStart Team
    I have used detail group with table layout , when I am clicking on AddRow button on detail table , I encounter NulllPointer Exception . I have traced the code and fount that in JhsCollectionModel when adding new row following
    condition occurs :
    DCIteratorBinding ib = getRangeBinding().getIteratorBinding();
    int rangeSize = ib.getRangeSize();
    int rowsInRange = ib.getAllRowsInRange().length;
    because getAllRowsInRange is Null then the error raise.
    My JheadStart ver is 10.1.3.3.85 .
    Detail Group with table layout setting is :
    Use Table range=true
    Show New Row at top=true
    New Rows:empty
    Show Add New Row Button :true
    Regards

    Given the build you are using, I assume you are an Oracle employee.
    Is this correct? if so, please post your question to the [email protected] mailing list.
    Steven Davelaar,
    JHeadstart team.

  • EIS Adding New Columns

    I have an new Column (Order_Key) in one of my tables in the star schema. How do I get the Metadata Model and Metaoutline to recognize this new column without deleting the table in the Metadata Model?Thanks.....

    Unfortunatley there is no "refresh" button! You will need to view columns in model. If you then right-click on table and selct columns and selct a column of the same type. If you then "add" and type in the physical name of the new column, it should show up.Pete Singleton www.analitica.co.uk

Maybe you are looking for