How to dynamically display value in column header

Hi,
I have a requirement where in the user selects a particular value from a drop down list, and the same has to be displayed in the column header. For example, there are A,B,C,D types of quantities in a drop down list. Once the user selects these values and submits, the column header should display the quantity type selected. Kindly let me know how this can be achieved.
Regards
Snehith.

Hi Snehith,
In Layout Mode, Double click the Column in the Table, the Control Properties window is opened, switch to the "Display" tab, then press on the formula button next to the "Label:".
Use the Expression Builder to have the label be the value you want it to be: for example:
NSTR(#ID[ACA9TU]@MAX_ROWS,'Z3.0')
This formula takes a numeric field, formats it into a string and displays it.
For more information about how to build expression, please see:
http://help.sap.com/saphelp_nw70/helpdata/en/bd/90db4238bbf140e10000000a1550b0/frameset.htm
Regards.
Omer.

Similar Messages

  • To display values  in Column Header

    Hi,
    I wanted to display values from viewobject as a column header in af:table
    <af:column sortProperty="Qty" sortable="false"
    headerText="#{bindings.EmpPartHeader12.hints.Qty.label}"
    headerClass="TableNoHeader"
    inlineStyle="background-color:#D3D3D3; border-color:Gray; color:Black;"
    align="right" id="c1">
    <f:facet name="header">
    <af:outputText value="#{row.Qty}" id="ot8"
    />
    </f:facet>
    <af:outputText value="#{row.Cost}" id="ot4"/>
    </af:column>
    I am using <af:outputText value="#{row.Qty}" id="ot8"/> in header class of af:column but getting blank as column header.
    Please help on this.
    Regards
    Vasu

    Hi user13818315,
    Please specify in details what you want to display in column header ? Say there are 5 rows in your table do you want to display the first rows data as column header ?
    Please explain...
    Thanks
    --NavinK                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How To: Dynamically display value

    Hi,
    I have created a employee details form (all fields in this form not bounded with database). I want to display employee name based on employee code (Employee code field is a popup Lov (select ename,empno from emp)).
    Please help me !
    With Regards
    Satheesh Kumar

    Hi,
    Yes, Below I am providing details:
    I have 2 fields called Employee code and Employee Name
    Code entering time name will display:
    Step: 1 Create these 2 text items in an HTML region (P1_EMPCODE, P_EMPNAME)
    Step: 2 Create Application process through application shared componenets (Process point on Demad, Process Text " declare
    l_ename varchar2(100);
    begin
    select ename into l_ename from emp
    where empno = :P1_EMPCODE;
    htp.prn(l_ename);
    end;")
    Step 3: create an javascript under region source " <script language="JavaScript1.1" type="text/javascript">
    function f_Find_Ename ()
    var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=Find_Ename',0);
    get.add('P1_EMPCODE',html_GetElement('P1_EMPCODE').value)
    gReturn = get.get();
    if(gReturn)
    { html_GetElement('P1_EMPNAME').value = gReturn }
    else
    { html_GetElement('P1_EMPNAME').value = 'null' }
    get = null;
    </script>
    Step 4: Create onchange event on item 'P1_EMPCODE' HTML Form Element Attributes onChange="javascript:f_Find_Ename()";
    With Regards
    Satheesh Kumar

  • In BO 4.0,how to convert field values into column heading.

    Currently Product Codes are represented in "Code" and "Value" fields.
    Please retain the code and value fields, so that if the user adds another code and immediately needs to report on them they can through this functionality.
    Current:
    Fund Code
    Code
    Value
    ABC1
    Embassy Series
    XYZ123
    ABC1
    FMI
    19837
    ABC1
    Gladis Short Name
    FUJHAT
    Required:
    Fund Code
    Embassy Series
    FMI
    Gladis Short Name
    ABC1
    XYZ123
    19837
    FUJHAT

    Hi Archana,
    I think you need to use a Cross Tab on your report but also you will need to apply Sections on the Fund Code dimension.
    ie
    Section 1 - ABC1
    Crosstab
    Section 2 - ABC2
    Crosstab
    Section 3 - ABC3
    Crosstab
    With regards
    Gill

  • Webdynpro ABAP - ALV how can i display Total of Column

    Hi friends,
    Webdynpro ABAP - ALV how can i display Total of Columns.
    Please tell me any metod is there or any solution.
    Thanks,
    Kumar.

    Hi
    You can take help of following code snippet to create totals for a particular column
    Data: lr_function_settings TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings,
            lr_column          TYPE REF TO cl_salv_wd_column,
            lt_column type salv_wd_t_column_ref,
            ls_column type salv_wd_s_column_ref.
    Data:  lr_field_amnt type REF TO CL_SALV_WD_FIELD.
    * get reference of ALV component
      lr_salv_wd_table = wd_this->wd_cpifc_OVERVIEW_EARNED_ALV( ).
      wd_this->alv_config_table = lr_salv_wd_table->get_model( ).
    *  get function settings
      lr_function_settings ?= wd_this->alv_config_table.
    * display columns in correct order
      lr_column_settings ?= wd_this->alv_config_table.
      lt_column = lr_column_settings->get_columns( ).
      loop at lt_column into ls_column.
    CASE ls_column-id.
    when 'AMOUNT'
    * aggregate field
            CALL METHOD LR_FUNCTION_SETTINGS->IF_SALV_WD_FIELD_SETTINGS~GET_FIELD
              EXPORTING
                FIELDNAME = 'AMOUNT'
              RECEIVING
                VALUE     = lr_field_amnt.
    * create aggregate rule as total
            CALL METHOD LR_FIELD_AMNT->IF_SALV_WD_AGGR~CREATE_AGGR_RULE
              EXPORTING
                AGGREGATION_TYPE = IF_SALV_WD_C_AGGREGATION=>AGGRTYPE_TOTAL
              RECEIVING
                VALUE            = lv_aggr_rule.
    endcase.
    Regards
    Manas DUa

  • How can I display all the columns on the screen without scrolling from side to side?

    My clinic software has many columns. How can I display all the columns without having to scroll from left to right all the time?

    If the software you are using doesn't offer the ability to increase or decrease document size, as many do, then the only way is to increase your screen resolution. If that's not possible, maybe you can decrease your font size?  If you can't do any of these, I think you're out of luck!

  • How to return a record's column head given a record of a table.

    Hi:
    Do you know how to return a record's column head given a record of a table.
    For example, in a table with 3 columns "ID", "Education", "Age".
    Give you the record "Bachelor", how can you use a SQL to return the correspondent column head "Education"?
    Thanks for the big help.

    Have a look at http://java.sun.com/j2se/1.4.2/docs/api/java/sql/ResultSetMetaData.html.
    import java.sql.*;
    import java.util.*;
    ResultSet rs = stmt.executeQuery("SELECT * FROM testTable");
    ResultSetMetaData rsmd = rs.getMetaData();
    // loop through rsmd.getColumnCount() {
         String columnName = getColumnName(i);
         // run a query SELECT * FROM testTable WHERE columnName='Bachelor'
         // if rs !=null return columnName and break out of the loop
    }

  • How display costom report column heading

    Hi,
    I am having report region with different columns, in that one column heading needs to be start with lower case like "iST Status" but always it is showing "IST Status".
    Can any one help me how can i achieve this.
    Thanks and regards,
    Ibrahim Sayyed.

    >
    Update your forum profile with a real handle instead of "995226".
    I am having report region with different columns, in that one column heading needs to be start with lower case like "iST Status" but always it is showing "IST Status".This has been reported before. See +{thread:id=1022033}+
    Add this style sheet to the page HTML Header (or use your preferred CSS override method):
    <style>
    th.t13ReportHeader {
      text-transform: none;
    </style>If you're not using theme 13, modify the selector accordingly.
    Can any one help me how can i achieve this.Help us to help you. When you have a problem you should provide as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.

  • Passing prompt value to column header

    Hi experts
    I'd like to change the column header dynamically.
    the report is using presentation variable so it's displayed after the user had selected a value in the dashboard prompt and clicked on go.
    I'd like to have in the column header the value that the user had selected in the dashboard prompt.
    Is there anyway to do that??
    Regards

    Hi,
    Yes. you can do that by creating presentation variable.
    What you have to do is , create the presentation variable like LOCATION_NBR in the prompt, like this you can create as many as you want to display it in the header.
    The next step is to display the value the user selects in the prompt that should display in the header, for that , you can create narative and like the following things and achieve it.
    <table>
    <tr>
    <td bgcolot ="#00080" width="1500" height="25" align="center">
    The location No is @{LOCATION_NBR}
    </td>
    </tr>
    </table>
    Since we define the presentation variable in Prompt and use it narative view we able to display the header based on the customer choose it from prompt
    I hope the above explanation will resolve your requirement
    Regards
    Raj

  • Show the period value in column header using Text Variable

    We are using Posting Period & Financial Year to calculate YTD & MTD, for current year and previous years. These posting period and financial year characteristics are custom created characteristics we are using due to customer specific requirement.
    Input values are posting period, financial year and numeric value. To calculate previous year, I need to subtract numeric value from the input financial year. Every thing is working fine up to this.
    In the report I need to show the posting period and financial year values dynamically in each column header of the report for MTD, YTD for current year & previous year. I tried to achieve this using Text Variables, but I didn’t succeed. If some one can give me some idea to resolve this, it would be very helpful.
    I am excellent in ABAP coding. If you can specify me to code in User Exit, I can do it.
    Column headers should be 08.1999 Sales Qty, 08.2008 Sales Qty, 1999 Sales Qty, 2008 Sales Qty.

    Hi Abhinav,
    Try using the content text variables 0T_FYEAR and 0T_FPER3, when used in the head these variable should display the year and period specified in the RKF.
    e.g
    &0T_FPER3&. &0T_FYEAR& Sales Qty = 08.1999 Sales Qty
    If that doesnt work, try creating text replacement path variables referencing the variables you created for the year and period input. To do this click on the RKF and click on the dropdown by the yellow box next to the description on the general tab and select New Variable, enter the description, tech name and set processng by to Replacment Path, then select period as the ref. characteristic, then on the replacement path tab change replace variable with to variable and then select the variable you are using for the period input, save then hit ok, this is now a text representation of the variable your are inputing for period and can be used in the column headers, you will need to repeat the process for the fiscal year.
    Hope this helps
    Josh

  • Dynamic table  with  multilevel  column header

    Hi all ,
    Can u please tell me how to create dynamic internal table and display which has two level column header using alv.
    For example : |  amount   | year | Month     |
    in $
    in #
    oct
    nov
    Thanks in advance ,
    SA

    Hi SA,
    For your first question - Creating dynamic table refer code below...
    PARAMETERS: p_input TYPE i OBLIGATORY.
    START-OF-SELECTION.
    DATA: v_fieldname TYPE char30.
    DATA: v_char TYPE numc4.
    DATA: it_fldcat TYPE lvc_t_fcat.
    DATA: wa_it_fldcat LIKE LINE OF it_fldcat.
    DATA: gp_table TYPE REF TO data.
    FIELD-SYMBOLS: <gt_table> TYPE table.
    DO p_input TIMES.
    v_fieldname = 'COL'.
    v_char = sy-index.
    CONCATENATE v_fieldname v_char INTO v_fieldname.
    CONDENSE v_fieldname.
    CLEAR wa_it_fldcat.
    wa_it_fldcat-fieldname = v_fieldname.
    wa_it_fldcat-datatype = 'CHAR'.
    wa_it_fldcat-outputlen = 5.
    wa_it_fldcat-intlen = 5.
    APPEND wa_it_fldcat TO it_fldcat .
    ENDDO.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
    EXPORTING it_fieldcatalog = it_fldcat
    IMPORTING ep_table = gp_table.
    ASSIGN gp_table->* TO <gt_table>.
    Now you can use <gt_table> ..
    2. It is not possible to have multiple format column for ALV..
    Hope this solves ur prob..
    Enjoy SAP.
    Pankaj Singh.

  • How to Show total value in the header 2nd page but based on 1st page footer

    How to show total value in header in report builder but i have the total have related with the total in footer.
    Example
    ===============================================
    Page 1
    Empno Ename Sal
    1 Scott 1000
    2 ALlen 2000
    3 Susi 1000
    Total Sal Page 1: 4000
    ===============================================
    Page 2
    Total Sal Page 1: 4000 --> How to get it?????
    Empno Ename Sal
    4 Budi 1000
    5 Roger 200
    6 George 2000
    Total Sal Page 2: 3200
    Please Help..
    Thanks

    hmm .. what i would do is
    - create a placeholder column
    - create a field in the header and one in the footer
    - have the footer field reference the summary column
    - have the header field reference the placeholder column
    - create a fromat trigger on the footer field to
    store the value of the footer into the placeholder column
    so when the report is executed and the footer field is formatted, the format trigger stores the current value of the summary in the placeholder. then the pagebreak occures and the header field is formatted .. printing the value.
    there might actually be an easier way, just reference the two fields to the same summary column and in theory, since there is nothing happening between the time when the footer is formatted and the header is formatted, the values should be the same .. however this is a theory and i have not actually tested this. since reports does all kinds of fancy optimization this might have unexpected results, but it's worth a try.
    thanks,
    ph.

  • How To dynamically change values in custom form

    Hi,
    Requirement is to change values in custom form dynamically that are passed by Global variables through standard form .
    I have used forms personalization to call custom form and passing some parameters to custom form using global variables.
    Now i have to change values displayed in custom form(already opened) when user moves from one record to another record.
    I cannot change the standard form.Only i have write logic in custom form that dynamically changes values as user moves from one record to another in standard form.
    Global variables values will be different for each record.
    Pls let me know how i can achieve this.
    Regards
    Udit

    Udit,
    Your question should be posted to the Enterprise Business Suite (EBS) forum. This forum is dedicated to non-EBS forms development.
    Craig...

  • TableSorter + custom cell renderer: how to get DISPLAYED value?

    Hi!
    I have a JTable with a custom cell renderer. This renderer translates numerical codes, which are stored in the table model, into textual names. E.g. the table model stores country codes, the renderer displays the name of the country.
    Now, having a reference on the JTable, how can I get the DISPLAYED value, i.e. the country name? Is there some method like ....getRenderer().getText()?
    Thanx,
    Thilo

    Well, a renderer can be anything. It may be rendering an image not text so you can't assume a method like getText(). However, since you know the component being used to render the cell you should be able to do something like:
    TableCellRenderer renderer = table.getCellRenderer(row, column);
    Component component = table.prepareRenderer(renderer, row, column);
    Now you can cast the component and use get text.
    Another option would be to store a custom class on the table cell. This class would contain both the code and value. The toString() method would return the value. Whenever you want the code you would use the table.getValueAt(...) method and then use the classes getCode() method. Using this approach you would not need a custom renderer. This thread shows how you can use this approach using a JComboBox, but the concept is the same for JTable as well:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=417832

  • How to acquire display value of selected item on select list? Or...

    I have a select list generated from a SQL query that I need to get the display value from.
    Ideally, the display value and the submitted value of the select list would have been the same, but I can't seem to get APEX to allow populating a select list's display value and submitted value fields with the same database column.
    If you have any idea how to do either of the above, I'd love to hear from you here!
    Cheers,
    Ben

    you forgot the extra quotes I guess:
    declare
    l_sql VARCHAR2(4000);
    begin
    l_sql := 'SELECT product_name,project_name,information_access_system,dataset_name FROM v_dms_product WHERE product_name = ''' || :P24_CHOOSEPRODUCT || ''' GROUP BY product_name,project_name,information_access_system,dataset_name';
    return l_sql;
    end;

Maybe you are looking for

  • In Excel how to make a worksheet as default

    Hello , I have a Excel file called Report.xls . In this file there are many worksheets. Everytime I open this Excel  file, i want the second sheet as the default sheet which is visible to the user. The Excel file should always open with the second sh

  • IPhone 3G won't connect to D-Link DIR-655 Wireless N Router

    My wife and I picked up iPhone 3Gs last week, and we got home and instantly had issues connecting to our home's Wi-Fi. I assumed at first it was an iPhone issue, but think it's likely more an issue with my router. The router is brand new (two months

  • EDIINT AS2 Adapter in SAP XI

    Dear experts, I need to install an EDIINT AS2 adapter into my SAP XI. Have anybody can provide me the steps how to do this? Where can I get/download the AS2 adapter? Best regards,

  • [SOLVED] I cannot start any VM's in Virtualbox.

    I think I have all of the correct packages installed. I installed all of the following packages from the official repos. virtualbox-guest-dkms virtualbox-guest-modules virtualbox-host-dkms virtualbox-host-modules However, when I do "modprobe vboxdrv"

  • EFI Problems after last update anyway to downgrade ??

    Hello EFI Problems after last update anyway to downgrade ?? i have updated my MacBook 2010 EFI to MB71.0039.B0E which is 2.1 version after updating to this version the Boot time become much slower when i want to change boot partition and shutdown bec