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. :)

Similar Messages

  • Add new column in PO Schedule line.

    -Currently Container# and Port is stored in table EKET
    -Add new columns in PO schedule line items and show the above two fields
    Please help me in this.
    How to add above two fields in standard transactions ME21n/Me22n/Me23n
    The answer is User Exit.
    The next question is how to find,write,configure an user exit.

    .

  • Add new column in RFUMSV00 program

    Hi,
    I am new in abap. I have requirment to add new column in VAT report. I have copy RFUMSV00 program to  'Z'  program and want to add new column in 'Z' program. The column is BSEG-ZNUOR(Assignment).How can i add a column in report and how to retrive data from BSEG table, If any one have code like this requirment , please give me some idea about this.
    Thanks in advance.
    Regards,
    Sourav

    you need to read program carefully first possible than do debug.than find the exact location where system ALV generates here you need to add your field.
    May be i it helps you.
    search with term in mention prg ASSIGN gt_alv TO <gt_alv>.    you will get idea where you need to add your own field
    Edited by: Amit Gujargoud on Aug 27, 2008 9:44 AM

  • How to add new column in Report ME2L

    Dear Sir,
    We are using ME2L for various purposes . In the ME2L report we need to add 2 new columns i.e Item Delivery Date and WBS Element .
    Although in the standard ME2L report , after the basic list generation , there have been provided 2 icons for getting the report displayed  with either WBS Element or with Delivery Date .  It means we can not get both the column Delivery Date and WBS Element  available simultaneously in the standard ME2L report .
    We request you to kindly guide us as how can we add these column in the ME2L report pl .  We are on ECC-6.0 and not having enhancement package 4.0 .
    Kindly help us pl .
    Regards
    Sonia Agarwal

    HI  Pradeep,
    Goto the transaction code (Change Report) GR32.
    Give you library name and report name
    And click on the column (application tool bar or F7) button then place the curser on the screen where you want column (please note you have to keep curser on the header section u2013Red column text) right click and insert element. Then you select formula as selection element  and enter. You will get the enter formula box. Then you can type your formula and continue. This will add new column to the report.
    How to enter formula: you can see the formula components in that id and description.
    Id is columns that are present and description indicates explanation of that column.
    Enter formula according your requirement.
    Examples:
    Enter formula screen:
    ID :    des
    X001  amount
    X002  pt000
    X003  test
    1. Enter formula as: ( X001 u2013 X002)
    The above formula is for fist column u2013 second column.
    2. ( ( X001 u2013 X002) / X003) * 100
    First column u2013 second column and devide by third column after that multiple with 100.
    Hope this will help you
    Regards
    Manohar

  • Add new column to report S_ALR_87013568

    All,
    I have given a requirement to add a new column in the sap standard report S_ALR_87013568.
    Any info how to enhance this report.
    1. one suggestion given by my collegues saying we need to new report. I don't have any info how this report is created. is this report created using report or some other tool ?
    2. Cloning of the same report into a new name and make changes.  is it right way ?

    This report is developed by using report painter.
    you will be able to add new column by changing th report layout / form. you can do this in CJE4. or else create new form by copying the form 11ERL1E and change the columns. then you create a report in CJE1 assigning the above form.

  • How to add new column in report painter

    Hi Experts,
    I want to add new column in report painter which as to calculate the previous column . value in the new column should be the precentage of previous column existing on left side...

    HI  Pradeep,
    Goto the transaction code (Change Report) GR32.
    Give you library name and report name
    And click on the column (application tool bar or F7) button then place the curser on the screen where you want column (please note you have to keep curser on the header section u2013Red column text) right click and insert element. Then you select formula as selection element  and enter. You will get the enter formula box. Then you can type your formula and continue. This will add new column to the report.
    How to enter formula: you can see the formula components in that id and description.
    Id is columns that are present and description indicates explanation of that column.
    Enter formula according your requirement.
    Examples:
    Enter formula screen:
    ID :    des
    X001  amount
    X002  pt000
    X003  test
    1. Enter formula as: ( X001 u2013 X002)
    The above formula is for fist column u2013 second column.
    2. ( ( X001 u2013 X002) / X003) * 100
    First column u2013 second column and devide by third column after that multiple with 100.
    Hope this will help you
    Regards
    Manohar

  • Add new columns under schedulines tab in SO

    Hi Gurus,
    Can we add new columns in SO schedulines tab?Example between Delivery Date and Order qty.
    I know that changes in standard programs are not advisable, but I'm not sure if it is actually applicable using user exists or others.
    Thank you.

    hi,
    why dont you try status profile in sales document type?
    create status profile in BS02,
    assign status profile in VOV8-transaction flow-status profile
    regards
    senya

  • Is it possible to add new columns with format "Text" once a table is linked to a form

    Is it possible to add new columns with format "Text" once a table is linked to a form in Numbers for iPhone or is it impossible and thus a serious bug?(Rating stars and numeric vales seem to work.)
    Those bugs happen both for new speadsheets as well as existing onces, like the demo. When you are in the form only the numeric keyboard shows up.
    Pat from the Apple Store Rosenstrasse/Germany approved that it looks like a Bug during the Numbers Workshop I was in: It is not possible to add new columns with format "Text". I reported the error for Version 1.4 but there is no update nor do I get statement of understanding the issue.

    Hi Knochenhort,
    I see what you are talking about now. Without knowing how the program actually works, I think this is what's going on:
    When you add a new column to an already existing table (with already existing formats), the new cells come already formatted like the previous column. So when you add a column to the end of the demo table, the cells are already formatted like stars, and when you add a column to the beginning, they're already formatted like number.
    I think this is why it's different when if you add columns to a table with blank (unformatted) columns. In that case, the new cells aren't already "tainted" with a set format, so you can change to text format without issue.
    It seems like the problem is that you can't format cells that are already formatted as "number" as "text" format (even if it doesn't look like they are, because they are blank). IMO, this is a bug! This is why you don't see this issue when adding columns to a new table, because the new cells don't already come with a format.
    To workaround, you can highlight the body cells after adding the new column, and delete the cells. This will "clear" the formatting, so you can then go in the inspector, format them as text, and the correct keyboard will pop up.
    Hope that helps!

  • How to add new column in screen painter

    Hi
             I have try to add new column on existing screen and test screen in se51, the column is added in position correctly. But when I run program call this screen, the added column is placed as the last column.
    Please help.
    Thanks

    Thank for your replied.
              I have check the table control, it has fix column. So, I set fix column to 0 at table control but when execution by program call it's still not update what I have changed. (On test screen in se51, it come out correctly and updated)
    So, I don't know why I use program call this screen, the screen is not updated what I have try to change but, when execute in test screen it come out correctly
    PS. I have check attribute, it's numbered right.
    Please help !!
    Edited by: VerdamFK on Oct 4, 2010 8:11 AM

  • 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 payment@dblink
    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).

  • How to add new columns in predefined matrix  in system form

    Hi all,
    I am new to SAP B1. I am going to add New column to Good Receipt PO matrix. I faced the one error " Matrix Line Exists " While adding new column to good receipt PO matrix".
    =========================================================
    Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
                 oMat = oForm.Items.Item("38").Specific
                   oCols = oMat.Columns
                    oCol = oCols.Item("U_MyCol")
            If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD And pVal.BeforeAction = True And pVal.FormType = "143" Then
                Try
                    oForm = SBO_Application.Forms.Item(pVal.FormUID)
                    oMat = oForm.Items.Item("38").Specific
                    oCols = oMat.Columns
                    'oCol = oCols.Item("U_MyCol1")
       oCol = oCols.Add("U_MyCol1", SAPbouiCOM.BoFormItemTypes.it_EDIT)
                    oCol.TitleObject.Caption = "Qty Accepted"
                    oCol.Width = 40
                    oCol.Editable = True
                    oCol = oCols.Item("U_MyCol1")
                Catch ex As Exception
                    SBO_Application.MessageBox(ex.Message)
                End Try
            End If
    oDBDataSource = oForm.DataSources.DBDataSources.Add("PDN1")
            ''oEdit.DataBind.SetBound(True, "PDN1", "U_QtyAccepted")
    ============================================================
    And i also added for Datasource to Databind. what there is no result ??i wanted Clear information regarding this to add new columns in matrix in  middle of Matrix items. I wanted Clear coding& information for this to add new Columns in Matrix ?help me regarding this asap??
    Regards
    ANAND

    Anand,
    If you use the "search" feature of this forum and type "add column", you will find many posts that may help you such as this one ...
    How to add a column on sales order matrix?
    HTH,
    Eddy

  • Add New Column in ALV Report of Standard SAP ME28.

    Hi anybody,
    I want add new column in alv report of standard SAP Program ME28 Screen.
    Add Last PO Price column inside ALV Report ME28 Screen.
    Can u please anybody tell me how to add new column in ME28 Screen.
    Thanks
    S.Muthu.

    Try to find any BADI for the same
    Follow the below steps to find out what all BADI's are called when you press any button in any transaction.
    1) Goto se24 (Display class cl_exithandler)
    2) Double click on the method GET_INSTANCE.
    3) Put a break point at Line no.25 (CASE sy-subrc).
    Now
    4) Execute SAP standard transaction
    5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
    6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
    7) This way you will find all the BADIs called on click of any button in any transaction.
    OR
    Also one more option is to copy ME28 and, make modifications to the copied program.

  • Add new column at line item level in MIR7 transaction

    Hi All,
        I would like to know how to add new column at line item level for GL Account
       tab  in MIR7 transaction. could you please let me know how do i add new
       column in MIR7  transaction. Please let me know is there any user exit or any
       other wat to do it.
    Thanks,
    rao

    Hi,
    The customer include CI_FMBL can only be used with FMPEP and not with other transaction like FMBB.
    Technically speaking, the structure CI_FMBL must be part of many other interfaces like the one use by BAdI 'FMKU_BUDGET_EVNT'.
    In order to add such customer fields in FMPEP, you have to use the BAdI 'FMBW_CUSTOMER'. For instruction, you have to look at the note 1356725 and the instruction of paragraph 30. Please read the instruction and start to do your implementation.
    With the BAdI 'FMBW_CUSTOMER', you can use the PBO and PAI for handling the customer fields. There is no other place to populate these customer fields. Do you want to use customer fields in FMPEP? Please check note 1356725 for reference.
    I believe this answer your inquiry.
    Best Regards,
    Vanessa Barth.

  • Add new column without disrupting formulas

    Hello,
    I'm working on a monthly traffic report, in which I will be adding a new column at the beginning of the spreadsheet and inputting the current month's numbers.
    I would like to create simple formulas that always reference the first and second columns. Presently, Numbers updates my formulas every time I add a new column. If I add a column before the first one, my formula edits itself so that it's now referencing the second column.
    How do I format my formulas so it always looks at the first column, even if I add new columns at the start of the table?
    I've attached a snippet of my report, to give you an idea.
    Thank you!

    Magic,
    If your formula is in a separate table, there is a third type of "non-relative" reference that is sometimes more compact than INDIRECT and OFFSET. INDEX will reference a table without specifying the starting cell explicitly. Here's an example:
    The expression in cell A2 of the Summary table is:
    =INDEX(Traffic, 1,2)
    The syntax for INDEX is: INDEX(Range, RowOffset, ColumnOffset).
    Regards,
    Jerry

  • Add new column to template - rtf

    Hy,
    I want to add new columns to a template.
    My records have different number of columns, I know the number of them from a parameter. I want to generate a table with dynamic numbers of columns.
    Somebody can help me?
    My xml is:
    <DATA_RECORD_2>
         <col1>header 1</col1>
         <col2>header 2</col2>
         <col3>header 3</col3>
    </DATA_RECORD_2>
    <DATA_RECORD_2>
         <col1>coloana 1.1</col1>
         <col2>coloana 1.2</col2>
         <col3>coloana 1.3</col3>
    </DATA_RECORD_2>
    And I want my table:
    header 1 header 2 header 3
    coloana 1.1 coloana 1.2 coloana 1.3
    thanks.
    Leo.

    Please refer http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e12187/T421739T481157.htm#4535399

Maybe you are looking for