Change the property of a row ... urgent!!!!!!!!!!!!!!

Hi All,
please help very urgenttt!!!!!!!!!!!!!!!!!!!
Breif overview of the Screen:
user selects a customer and clicks go button then the results will be displayed in a table(query bean).
user has an option to add a new row.
My Requirement:
Initially when the user clicks the go button all the records corresponding to the customer should be displayed and these records should be non-editable.when the user clicks the add button then the new row should be added and the row must allow the user to enter the values (editable mode).
please do help me in solving this.
thanks
ramya

Hi Ramya,
OAMessageTextInputBean source=(OAMessageTextInputBean)pageContext.getParameter("Source");
source.setDisabled(false);
The above command will disable the entire column.
You need to use SPEL expression to change the readonly property of individual row.
do following steps
1. Create a transient view attribute in your View Object. (eg XXReadOnly)
2. Set the readonly property as ${oa.viewobject.XXReadOnly} to all the columns of the Table
3. Now if you want to make the row read only then voRowImpl.setAttribute("XXReadOnly",new Boolean(true));
4. to make it editable call voRowImpl.setAttribute("XXReadOnly",new Boolean(false));
--Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • How to change the color of specific row in ALV tree

    Hi,
    I m using method set_table_for_first_display of a class CL_GUI_ALV_TREE.
    The req is to change the color of specific row. Now can anybody tell me how to change the color of ALV tree. As in ALV tree and in this method 'set_table_for_first_display', there is no parameter IS_Layout.
    Pls suggest...

    hi
    hope this code will help you.
    Reward if help.
    REPORT zsharad_test1.
    TABLES: ekko.
    TYPE-POOLS: slis. "ALV Declarations
    *Data Declaration
    TYPES: BEGIN OF t_ekko,
    ebeln TYPE ekpo-ebeln,
    ebelp TYPE ekpo-ebelp,
    statu TYPE ekpo-statu,
    aedat TYPE ekpo-aedat,
    matnr TYPE ekpo-matnr,
    menge TYPE ekpo-menge,
    meins TYPE ekpo-meins,
    netpr TYPE ekpo-netpr,
    peinh TYPE ekpo-peinh,
    line_color(4) TYPE c, "Used to store row color attributes
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
    wa_ekko TYPE t_ekko.
    *ALV data declarations
    DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE,
    gd_tab_group TYPE slis_t_sp_group_alv,
    gd_layout TYPE slis_layout_alv,
    gd_repid LIKE sy-repid.
    *Start-of-selection.
    START-OF-SELECTION.
    PERFORM data_retrieval.
    PERFORM build_fieldcatalog.
    PERFORM build_layout.
    PERFORM display_alv_report.
    *& Form BUILD_FIELDCATALOG
    Build Fieldcatalog for ALV Report
    FORM build_fieldcatalog.
    There are a number of ways to create a fieldcat.
    For the purpose of this example i will build the fieldcatalog manualy
    by populating the internal table fields individually and then
    appending the rows. This method can be the most time consuming but can
    also allow you more control of the final product.
    Beware though, you need to ensure that all fields required are
    populated. When using some of functionality available via ALV, such as
    total. You may need to provide more information than if you were
    simply displaying the result
    I.e. Field type may be required in-order for
    the 'TOTAL' function to work.
    fieldcatalog-fieldname = 'EBELN'.
    fieldcatalog-seltext_m = 'Purchase Order'.
    fieldcatalog-col_pos = 0.
    fieldcatalog-outputlen = 10.
    fieldcatalog-emphasize = 'X'.
    fieldcatalog-key = 'X'.
    fieldcatalog-do_sum = 'X'.
    fieldcatalog-no_zero = 'X'.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'EBELP'.
    fieldcatalog-seltext_m = 'PO Item'.
    fieldcatalog-col_pos = 1.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'STATU'.
    fieldcatalog-seltext_m = 'Status'.
    fieldcatalog-col_pos = 2.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'AEDAT'.
    fieldcatalog-seltext_m = 'Item change date'.
    fieldcatalog-col_pos = 3.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'MATNR'.
    fieldcatalog-seltext_m = 'Material Number'.
    fieldcatalog-col_pos = 4.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'MENGE'.
    fieldcatalog-seltext_m = 'PO quantity'.
    fieldcatalog-col_pos = 5.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'MEINS'.
    fieldcatalog-seltext_m = 'Order Unit'.
    fieldcatalog-col_pos = 6.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'NETPR'.
    fieldcatalog-seltext_m = 'Net Price'.
    fieldcatalog-col_pos = 7.
    fieldcatalog-outputlen = 15.
    fieldcatalog-datatype = 'CURR'.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'PEINH'.
    fieldcatalog-seltext_m = 'Price Unit'.
    fieldcatalog-col_pos = 8.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    ENDFORM. " BUILD_FIELDCATALOG
    *& Form BUILD_LAYOUT
    Build layout for ALV grid report
    FORM build_layout.
    gd_layout-no_input = 'X'.
    gd_layout-colwidth_optimize = 'X'.
    gd_layout-totals_text = 'Totals'(201).
    Set layout field for row attributes(i.e. color)
    gd_layout-info_fieldname = 'LINE_COLOR'.
    gd_layout-totals_only = 'X'.
    gd_layout-f2code = 'DISP'. "Sets fcode for when double
    "click(press f2)
    gd_layout-zebra = 'X'.
    gd_layout-group_change_edit = 'X'.
    gd_layout-header_text = 'helllllo'.
    ENDFORM. " BUILD_LAYOUT
    *& Form DISPLAY_ALV_REPORT
    Display report using ALV grid
    FORM display_alv_report.
    gd_repid = sy-repid.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = gd_repid
    i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
    i_callback_user_command = 'USER_COMMAND'
    i_grid_title = outtext
    is_layout = gd_layout
    it_fieldcat = fieldcatalog[]
    it_special_groups = gd_tabgroup
    IT_EVENTS = GT_XEVENTS
    i_save = 'X'
    is_variant = z_template
    TABLES
    t_outtab = it_ekko
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. " DISPLAY_ALV_REPORT
    *& Form DATA_RETRIEVAL
    Retrieve data form EKPO table and populate itab it_ekko
    FORM data_retrieval.
    DATA: ld_color(1) TYPE c.
    SELECT ebeln ebelp statu aedat matnr menge meins netpr peinh
    UP TO 10 ROWS
    FROM ekpo
    INTO TABLE it_ekko.
    *Populate field with color attributes
    LOOP AT it_ekko INTO wa_ekko.
    Populate color variable with colour properties
    Char 1 = C (This is a color property)
    Char 2 = 3 (Color codes: 1 - 7)
    Char 3 = Intensified on/off ( 1 or 0 )
    Char 4 = Inverse display on/off ( 1 or 0 )
    i.e. wa_ekko-line_color = 'C410'
    ld_color = ld_color + 1.
    Only 7 colours so need to reset color value
    IF ld_color = 8.
    ld_color = 1.
    ENDIF.
    CONCATENATE 'C' ld_color '10' INTO wa_ekko-line_color.
    wa_ekko-line_color = 'C410'.
    MODIFY it_ekko FROM wa_ekko.
    ENDLOOP.
    ENDFORM. " DATA_RETRIEVAL

  • How can I change the property of a graph running in another VI ?

    I know how to set a control value in another VI using the invoke node but what should I do to change the property of a control?

    Hi Zumdal,
    you can make a reference of your graph, copy it in a global variable that can be handled in a remote vi to change the property of the graph.
    I attach a sample LLB that contains a graph.vi and a property.vi.
    From the property.vi you can control the property of the graph.
    Good luck,
    Alberto
    Attachments:
    graph_property.llb ‏27 KB

  • How can I change the style of a row in tableview?

    Hi,
    How can I change the style of a row in tableview, for example ,I have 10 items in table view, and I'd like to change row 1,4,10 background-color:red; font-family:Arial ,Font-Weight:BOLD.
    Any suggestion?

    Yes, I knew how can I change the style using cell factory. there is a lot of work to do if it has so many columns in table view. we need to implement every cell factory, Do we have a simple way to change the whole row style , just like fabsav said, I 'd like to set the special row like this line:
    tableview.getItems().get(i).setStyle("myRowstyle"); And I found a bug if I implement my functionality with cell factory way, I can't change the cell style after rendering cell.
    protected void updateItem(Object object, boolean empty) {
          super.updateItem(object, empty);
    }updateItem() was only triggered while cell is being rendering, there is no way if I'd like to change the cell style after rendering event.
    Hi fabsav, How can I apply a CSS class to a specific row? Can you please provide a short example?
    Edited by: imtoocute on Aug 28, 2012 10:31 AM

  • Can we change the property of each element of an array using property node or by other methods?

    Hello all,
    Can we change the property of the elements of an array. For example:
    I have an array of combo-boxes. Can i have such a scenario that different combo-boxes of the array will have different items to select an item.
    I am able to set the different "values" in different combo-boxes bu using "to be more specific class" property node.
    But i could not set the different item list in different combo-boxes.
    Please give me the solution.

    Thanks a million dave!!!!!
    I have learnt a very new and innovative thing...
    I just wanna ask you one more question in the above context.
    Can i have listbox or combo-box in a table just like in an excel sheet where we can have listbox by using "data validation" property for different cells having different list.Can i have this in labview. Because for this i have to super-impose the combo-boxes on the table and treat them separately.
    We have to take those combo-box values and put in table and then store it.I have attached one VI to show the scenario.
    And this is the alternative solution of the array problem which u have already given. So please suggest me between the two or any alternative solution.
    Thanks,
    Ankit Madaan
    Attachments:
    Recording _Table.vi ‏19 KB

  • How do I change the property value priceInfo.amount?

    How do I change the property value priceInfo.amount?
    After changing the quantity field in the shopping cart and submit the form, I need to convert the field value priceInfo.amount and then set it again.
    How do I?
    Thank´s.

    Why do you need to convert this value and set it again?

  • On the login screen on my mac says a property name, the laptop changed hands and I'd like to change the property line name to my own, how do I do that?

    On the login screen on my mac says a property name, the laptop changed hands and I'd like to change the property line name to my own, how do I do that?

    Open Accounts preferences. Create a new user account with the name and username of your choosing as well as your own password. Be sure to give the new account Admin status. Log out of the old account and log into your new account. Now, delete the old account.

  • Can you change the color of a row in a SUD

    Is it possible to change the color in a selected row in a SUD? I have multiple tables in my SUD were the user can select multiple rows from each table. The problem is that when the user selects rows in another table the last one selected in the previous table is not hi-lighted. I thought that if I change the color of the row when selected the user can see all the selections once he/she goes to another table.
    Thanks,
    AJL

    Hi AJL,
    There is no way to color rows of the table control in a SUDialog. You could consider using the ActiveX container control and using the Microsoft ActiveX table control, which might have that functionality. Note though, that then you need to either ensure that control is always on all your client machines or make provisions for it to be installed/registered.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Change the colour of a row

    hi,
      how to change the colour of a particular row in a matrix.
    Regards,
    Vinodh

    Hi Vinodh,
    Its possible in Sap 8.81
    Try This.....
      Dim setting As SAPbouiCOM.CommonSetting
                    setting = omat.CommonSetting
                    setting.SetRowBackColor(1, 9)
    Refer This......
    [How to change Matrix cell color;
    [Colour rows in a matrix;
    [Change Row Color in Matrix!;
    Thanks
    Shafi
    Edited by: shafi_sunshine on Sep 19, 2011 1:38 PM

  • Changing the default number of rows displayed in a interactive report

    Hi,
    I have a sql query based interactive report but i cant change the default number of pages i.e 15.
    is there any way to change the number of rows displayed.
    Thank you,
    rakesh

    Hi,
    That was very useful document that you shared, yes that is correct we can so it this way but there is another way doing it where in if you go to the report attribute section and in that there is Layout and Pagination and under
    that you can fix the number of rows, and over there we can also accept values from page item such as if the page item value changes the number of rows displayed in the report changes dynamically.
    In my report i get only pagination but not a option for layout.
    Any help will be appreciated.
    And also where i can get the links to the similar document that you have shared ?
    TY
    rakesh
    Edited by: rakesh119 on Apr 30, 2013 12:10 PM

  • Help in Pivot Query- To change the column data to rows data!

    Hello Gurus -
    I have to change the row to Column -
    When i use the query -
    select NVL (T2.NAME, ' Grand Total') AS State,count(T2.NAME) as Total
    from Defect T1,statedef T2,repoproject T3
    WHERE T1.STATE=T2.ID AND T1.repoproject = T3.dbid AND T3.name like '%Compass Juice' GROUP BY ROLLUP (T2.NAME)
    Then i have got the following data -
    STATE          TOTAL
    Analysis     17
    Closed          1302
    Development     9
    Duplicate     24
    Failed          2
    OnHold          4
    Opened          146
    QA          1
    ReadyForQA     1
    Withdrawn      335
    Grand Total     1841
    But i want the data in following format -
    State Analysis     Closed     Development      Duplicate     Failed     OnHold     Opened     QA     ReadyForQA     Withdrawn     GrandTotal
    Total 17     1302     9          24          2     4     146     1     1          335          1841
    Kindly help me with this. I searched the forum and saw the usage of Max and NVL, Decode but i am unable to understand it to use in my query. kindly help me with this.

    Hi,
    In 11g you can use pivot.
    [http://www.oracle.com/technology/pub/articles/oracle-database-11g-top-features/11g-pivot.html]
    example
    SQL> desc customers
    Name                                      Null?    Type
    CUST_ID                                            NUMBER(10)
    CUST_NAME                                          VARCHAR2(20)
    STATE_CODE                                         VARCHAR2(2)
    TIMES_PURCHASED                                    NUMBER(3)
    When this table is selected:
    select cust_id, state_code, times_purchased
    from customers
    order by cust_id;
    The output is:
    CUST_ID STATE_CODE TIMES_PURCHASED
          1 CT                       1
          2 NY                      10
          3 NJ                       2
          4 NY                       4
    ... and so on ...
    Note how the data is represented as rows of values: For each customer, the record shows the customer's home state and how many times the customer purchased something from the store. As the customer purchases more items from the store, the column times_purchased is updated.
    Now consider a case where you want to have a report of the purchase frequency each state�that is, how many customers bought something only once, twice, thrice and so on, from each state. In regular SQL, you can issue the following statement:
    select state_code, times_purchased, count(1) cnt
    from customers
    group by state_code, times_purchased;
    Here is the output:
    ST TIMES_PURCHASED        CNT
    CT               0         90
    CT               1        165
    CT               2        179
    CT               3        173
    CT               4        173
    CT               5        152
    ... and so on ...
    This is the information you want but it's a little hard to read. A better way to represent the same data may be through the use of crosstab reports, in which you can organized the data vertically and states horizontally, just like a spreadsheet:
    Times_purchased
                 CT           NY         NJ      ... and so on ...
    1             0            1          0      ...
    2            23          119         37      ...
    3            17           45          1      ...
    ... and so on ...
    Prior to Oracle Database 11g, you would do that via some sort of a decode function for each value and write each distinct value as a separate column. The technique is quite nonintuitive however.
    Fortunately, you now have a great new feature called PIVOT for presenting any query in the crosstab format using a new operator, appropriately named pivot. Here is how you write the query:
    select * from (
       select times_purchased, state_code
       from customers t
    pivot
       count(state_code)
       for state_code in ('NY','CT','NJ','FL','MO')
    order by times_purchased
    Here is the output:
    . TIMES_PURCHASED       'NY'       'CT'       'NJ'       'FL'       'MO'
                  0      16601         90          0          0          0
                  1      33048        165          0          0          0
                  2      33151        179          0          0          0
                  3      32978        173          0          0          0
                  4      33109        173          0          1          0
    ... and so on ...

  • Editor Mode not found to change the property of J2EE Configuration in NWA

    Hi,
    I have worked on an issue where an end user asked me to configure changes in NWA.But I did not find the editor mode.I tried all the buttons in the page of NetWeaver Administrator -> Configuration.But I could not change the customized value.Tried all possible means.Later logged into Config Tool and made the changes in Configuration Adapter successfully.Restarted the cluster later.
    Why couldn't I change the value of property in NWA? Where do I see the configuration editor mode in NWA?Please help.
    Thank You.
    Regards,
    Sudheer.

    Hi Mr. Sudheer,
    As per my information,
    NWA is a tool under developement by SAP (for the full fledged functionality)
    Till now it is valid for use to Monitor the SAP system (similar to CCMS), next is you can administrate the Java process and services (that is you can start and stop them).
    WE can monitor the SAP ABAP & JAVA Stack as well as Java components...
    We can also do User Management via NWA.
    And also the CTC configuration using NWA.
    <b>But changing certain parameter or acting as an editor is NOT YET supported by NWA tool.</b>
    I hope that I am correct in providing you the information.
    for details on that please refer : http://service.sap.com/nwa
    Regards,
    Prem
    Message was edited by:
            Premkishan Chourasia

  • How to change the default langauge for logon-Urgent

    Hi All,
    I need to set the default language for the web-UI login (say english). Could you please help me how can I do it?
    My scenario is:
    Lets say if the end user is launching Web-UI from Germany (His browser default langauage will have German most of the time), Web-UI is picking German as default language while my client wants to show everything in English to everyone despite of any langauge in the browser.
    I have already set logon language to english in SU01/ in the service login data via SICF but still Web-UI is picking langauge from the browser, while If I am launching web-UI from my favourite list (in which i have set two paramater sy-langu = 'E' and sap-langauge = 'EN') then web-UI is not picking langaue from the browser.
    But in the ideal scenario user will launch Web-UI from the portal (Which can have diffrent diffrent application coming from diffrent-diffrent system  and I want to change the language only for web-UI application which is coming from CRM) not from the favourite list.
    Kindly provide me your input.
    Thanks and regards,
    Sandeep

    hi,
        Please check the link.
    http://help.sap.com/saphelp_crm60/helpdata/en/43/26ad4c34b30b18e10000000a1553f6/frameset.htm
    Regards
    Srinu

  • How to change the property of the fields on screen while using BDC

    Hello,
    I am working on a program where I am using BDC call transaction method to update vendor master data using Fk02. I need to call the transaction in mode 'E'. As per the requirement I don't want user to see all the fields available on that screen. For example on Payment transactions screen I only want user to see fields like Bank key, bank number in the editable mode and rest all the fields on the screen should be greyed out.
    Can you please help with how can i do this.

    Hi,
    I think you can achieve this using transaction variant. Create a transaction variant using SHD0 and grey out the fields which you want. After that in BDC, instead of calling FK02, call the transaction variant you created. you may have to change the BDC recording a bit, but i think you can give it a try?
    Do let me know if it helps you.
    Regards,
    Raghav.

  • Change the heading in portal - very urgent

    Hi Friends,
    I have a requirement to change the heading of a field in portal.
    I have changed the text of a data element 'FCONT' from 'free places' to 'open places' which is required. but its not reflecting the portal. kindly let me know how to achieve this.
    Requirement:
    LSO Portal course catalog allows searching for course types.  When one is chosen for display, if there are any scheduled courses, those will display with their start and end dates, location, language and number of available spots left in the classes. 
    The heading for the column that shows number of available places displays as ‘Free Places’ in standard SAP.
    Change this SAP text from ‘Free Places’ to ‘Open Places’ as shown below. Since this is coming from SAP’s standard, the change should also be language dependent. Therefore related OTR (Online Text Repository) object should be corrected in the other available language if required.
    Please help me.. points are sure for helpful answers.
    Thanks in advance.

    Are you using Transaction iviews?
    Otherwise changing the data element name will not have any impact in portal...
    If you are not using transcation iview then you will have to go and edit in the iview seperately...
    Rgds,
    Vijay

Maybe you are looking for

  • Firefox won't work unless I click a link twice, or it refuses to load a page

    Ever since I upgraded to 3.6.13, Firefox will often not load a webpage unless I click the link a second time. The first time, I'll click it and...it might work, but most likely it won't work and I won't notice it hasn't worked until about minute has

  • Javascript Syntax: Return the greater of summed range or "0"

    I am using Windows 7 and Adobe Acrobat X. I have a field in which I want to show the sum of a range of fields. However, if that summed value is negative I want it to display a "0".  I'm not sure of the syntax I need to use in order to get this result

  • J2EE: Explanation of URL rewriting?

    Hi there fellow forumites, I'm reading up on the implicit object Session in regards to JSP. Session state is usually done by maintaining a cookie that is sent to the client. If clients have cookies disabled, the Session object falls back on a method

  • Would uninstall and reinstalling photoshop CC affect payment?

    There was a Photoshop CC update today, but when I tried to install it I was faced with a u44m1p7 error. Adobe's website mentioned uninstalling and reinstalling it, so I am in the process of doing that. But,er, forgive me if this is a dumb question, w

  • Trouble with iTunes and Windows Vista

    Hello, I have a new Win Vista system and need to move over all my old music to existing IPOD. I installed the latest version of itunes, and the Windoes patch (can't recall the number). I been able to successfully install itunes and port over my music