ALV: columns in read-only mode look like editable columns in edit mode

Hi,
My application contains an ALV table which should be toggled between display and edit mode like the rest of the fields.
The evident solution was to use
if_salv_wd_table_settings~set_read_only( abap_true or abap_false)
However, unlike the rest of the fields, when the application changes into display mode and the fields get grey like in any SAP application, the columns in the table which were editable remain white, and those which were not editable and thus grey, get now white, too, instead of the other way round. So it will look to the normal user, as if now all columns would be editable!
Of course, he would realize that they are not when he tries to edit them, but this is irritating.
See following link with screenshots (only active for 3 weeks from now on):
[Link to my webmail space/SDN: .|https://businesswebmail.telekom.at/filestorage/MzYxMTk1OTMx/]
I have looked
through my books ("Einstieg in Web Dynpro for ABAP", "Praxisbuch Webdynpro for ABAP", ...)
through the wiki for Webdynpro for ABAP here in SDN as well as through this forum (by searching with "ALV edit")
through the notes in BC-WD-CMP-ALV
but could not find any solution. Most tables in those PDF articles found here in the WD4A wiki also show white cells although they are probabliy in read-only mode (e.g. the imitation of the SE16N browser article).
The attributes to the LO_CELL_EDITOR for both Inputfields and textview columns contain exactly the same values when toggling between display and edit mode (read-only in table settings), so also no chance to change here anything.
Also changing the cell design is not a solution as there is no design that looks like grey for not editable according to WDUI_TABLE_CELL_DESIGN  ([SAP Help - WDUI_TABLE_CELL_DESIGN|http://help.sap.com/saphelp_nw2004s/helpdata/en/56/5e9041d3c72e7be10000000a1550b0/frameset.htm].
I do not know if I have made an error, as this is my 3rd Web Dynpro (after the first 2 of the introduction book), or SAP is really inconsistent in User interface between "normal" fields and ALV table fields.
Can you please help me?
Thanks in advance,
Erlend

Hi,
In my application aslo, i have 30 columns out of which 10 are input fields. But, i'm showing the table as ABAP_TRUE incase of Non-editable otherwise to abap_false. Now i'm getting everything as in WHITE cells.
Do you want to show it is Grey mode with Non-editable feature. Is that so.
How many columns are there which has Input fields.
Get the column references.
Now, based on the mode of display create the object as Input or Textview field.
For that column -
If mode eq 'D'.
Create an object for Textview(cl_salv_wd_uie_text_view)
else.
Create an Object for Inputfield(cl_salv_wd_uie_input_field)
endif.
The Append row is a standard button or custom one on ALV toolbar.
Do you want to hide the toolbar or just disable these buttons.
If you want to hide the toolbar then refer my wiki -
http://wiki.sdn.sap.com/wiki/display/WDABAP/NullreferenceforUPDATETOOLBARerrorsofALVinthewebdynpro+ABAP
Regards,
Lekha.
Edited by: Lekha on Sep 30, 2009 8:06 PM

Similar Messages

  • LOV columns in read only adf:table problem

    Hello
    Adf 11, ADF BC
    I've create a table Test with a column called BranchNr, the value of the column comes from the BranchList table.
    I've created an EO and a VO for both tables.
    On the Test table attriute Branch I've create a list of values to the BranchList table which displays the BranchTable.BranchDesig based on the
    linke Test.BranchNr - BranchList.BranchNr
    Testing in the application module works fine, the BranchDeisg is displayed correctly and a new value can be selected from the list.
    However when I put the Test table as a read only table on a page the BranchNr column display the BranchNr number instead of looking up the corresponding BranchDesig value.
    If I change the column on the table to an ADF Select One Choice then the BranchNr is looked up and the BranchDesig is displayed but the column
    can be modified - on a read only table !
    How can I have a read only table that looks up and displays a value from a lov without having to create a new VO with a join query (Test-BranchList))
    Regards
    Paul

    Ok, I going to my glasses tomorrow
    - all that was needed was to change the column type to selctOneChoice
    and set the column to read only....
    Regards
    Paul

  • Are there any issues with itunes where as certain windows looks like a PC in safe mode?

    are there any issues with itunes where as certain windows looks like a PC in safe mode?

    Check your trash. I had some old uninstalled files in there. Deleted and restated itunes. seems to work.

  • How to make a column as read only for update integrator.

    Hi All,
    i came across one issue while creating integrator.
    for update integrator i have column rowid.rowid is a parameter. by using this(rowid) i'am updating.i want to make rowid column as read only .
    if i enable read only for rowid,then it is passing null as parameter and inserting new row instead of updating the row.
    If any one came across this problem you can help me in fixing this issue.

    Hi Sanket,
    Thanks for reply.
    i have created a dummy column and passed the value of the orginal column values to dummy cloumn. and hided the orginal column.
    in this process i have come across same issue. it is not passing the value as parameter and instead of updating the row it is inserting an new row.
    Any alternate for this scenario.
    Thanks in advance.

  • Make Select rows and columns as read only in Table Control

    Hi All,
    I would like to know how to make certain cells in a Table Control as display only.
    Table control should look like-(Those in bold are read only or in display mode)
    <b>Name1            Idno1 </b>         Address1
    <b>Name2            Idno2</b>          Address2
    <b>Name3            Idno3  </b>        Address3
    <b>Name4            Idno4</b>          Address4
    (Blank row to enter name idno and address)
    (Blank row to enter name idno and address)
    (Blank row to enter name idno and address)
    My table control should display all the above fields the way it is above of which first two colums and 4 rows should be read only,and the rest of the empty rows in the TC should be in change mode.i.e it must have provision to add new rows but not change the first two columns of existing rows.
    In short I am looking at solution to hide particular no of rows and columns and <b>not the entire column.</b>

    In the PBO of the table control loop. just write these statements
    NAME and IDNO considering the fields on the screen.
    and WA_TAB is the table work area being passed to the table control to display the rows.
    if not WA_TAB-NAME is initial and not WA_TAB-IDNO is initial.
    loop at screen.
    if screen-name = 'NAME' or
       screen-name = 'IDNO'.
    screen-input = <b>0</b>.
    modify screen.
    endif.
    endloop.
    endif.
    which means that the fields are disabled only if NAME and IDNO are not initial.
    Regards
    - Gopi

  • Add Row on Tabular Form - column from read only to update/insert allowed

    APEX 4.2.2
    Newbie in the APEX forums, go easy please.
    I'm building a rather simple tabular form based on a table with a primary key (emp_number). Sounds like an Oracle tutorial but trust me, it's a real table. This table has, for this example's sake the following attributes:
    Table Name: EMP_EXCEPTIONS
    EMP_NUMBER      NUMBER (PK)
    UPDATE_EXEMPT VARCHAR2(1)
    I've used the Tabular Form wizard to create a nice looking tabular form page, all good and works as intended. Of course the primary key value is non update able by the wizard and that's by design - I've no need to update any primary keys. When I click the add rows button however, I'd like to be able to include the emp_number field as a input able field. At the moment, when I click the add rows button it inherits the property of the emp_number as read only. The user entering the new row would know the employee number and whether they were update_exempt or not. So rewinding my head in Oracle Forms, this would have been done by setting the row attribute as update allowed when the button is clicked. Is there such simple functionality in APEX and if so can you point me in the right direction?

    It seems to be true:
    - if there is ascending order on columns which fields are null in new line (have no default value), new row is visible in current "pagination" page
    - but if there is DEScending order OR ANY sort order is set on columns which fields are NOT null in new line (have default value), new row is NOT visible in current "pagination" page
    thank you!

  • Hp pavillion looks like it is in safe mode when its not

    Hi, 
    I have a hp pavillion slimline desktop computer and i had to get it looked at today because the last few weeks it's been acting up on me. it started off with the screen changing different colours like, green and blue and then pinky/red squares then yesterday it just would not turn on and there was a loud buzzing sound comming from the tower. the screen did not turn on so i had to get it looked at, the guy in the store said it was my video/graphics card that was the problem and he said that there was 2 grapics cards in the computer, one of the card was built in and the second one he said was the problem so he took it out. anyway now that i have the computer back and i turned it on. its running perfect except for one problem. it looks like its in safe mode, all the browsers i have look like they are in wide screen and the colours of text and and different things are a gey/ light blue contrast, is there anything i can do to change it please help thanks. 
    ps: just wondering was it the person who initially fixed the problem not install a driver correctly or do i need to change screen resolution. as it says the recomended resolution should be 1440 x 960 but when i go to setting it doesnt give me that option to go that high. any advice or help would be great thanks.
    This question was solved.
    View Solution.

    Hi Jaco, 
    Ive downloaded Nvidia 32 bit version and as soon as my comp came back on i could see the changes straight away
    Getting the wide screen look off my comp was my main issue and that you have done  
    Thank you so much for taking the time to help me. Your a star!  
    Really appericate it  
    Eric and Caz

  • When opening email, the message (It looks like your using high contrast mode. Would like to switch to our accessible version to optimize your experience?). How can I change this and just be able to open my email up normally?

    I am just trying to get my email to open up normally without the above message coming up every time I open my email.

    Make sure that you allow pages to choose their colors and that you haven't enabled High Contrast in the Accessibility settings.
    *Tools > Options > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
    *http://kb.mozillazine.org/Website_colors_are_wrong
    *http://kb.mozillazine.org/Websites_look_wrong
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"

  • My ID document opens as a Read-Only and won't allow me to edit or Save As...

    All the sudden I cannot edit a document that I have been working on for weeks. I can't Save As and I can't Save any edits. What gives?
    Herb

    When I tried to export this as an IDML I discovered that my target disk had somehow become locked/inaccessible. When I just saved the file to another disk, it seemed to save just fine. I suppose this was the problem all along. I'll have to investigate that further. Thanks for the prompt!
    Herb

  • Profile preferences reset to "Read Only" after turning it off.

    I cannot start Firefox. It says it is already running. Task Manager does not show any instances running. There is no "parent.lock" file in the "......default" folder. Each time I look at the preferences for the "profile" folder, it shows "read only" is set. I clear it and the next time I look at the preferences "read only" is set.
    I have uninstalled and re-installed Firefox but it still resets"read only". Looks like the profile folder has something corrupt in it.

    Only a check mark in the Read-only box means that a folder or file is Read-only.<br />
    Windows doesn't check all the files in a folder so instead displays a green block to indicate that it is not sure.<br />
    You always need to look at the files individually.<br />
    Easiest to do that is to make the Attributes visible in "View > Details" mode: Choose Details in Windows Explorer.
    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.com/kb/Server+not+found
    *https://support.mozilla.com/kb/Firewalls
    *http://kb.mozillazine.org/Browser_will_not_start_up

  • How to set only part of the document as "read-only"?

    Hi,
    I am using SharePoint 2010. I would like to set some of the columns as "read-only" while some of them are still editable. If I use Advanced Settigns>Item-Level Permissions, I can only set the whole document as "read-only".
    Is there a way I can do what I wannt?
    Thanks a lot!

    Hi,
     There is no OOTB way to set a column as read-only.  I think you want to make some of the fields as Read-Only in the EditForm.aspx. If so, then you can use the Javascript to do. 
    Add a Content editor webpart to the Editform.aspx page and place the javascript method to make a field read-only.
    You can use the _spBodyOnLoadFunctionNames.push("MakeReadOnly()") method to assocaite your method to the EditForm.
    Here are the links which will help you.
    http://dishasharepointworld.blogspot.in/2011/08/read-only-field-in-sharepoint.html
    http://nishantrana.wordpress.com/2009/01/30/read-only-field-in-sharepoint-editformaspx/
    http://www.jbmurphy.com/2010/06/01/how-to-make-a-field-in-a-sharepoint-edit-form-readonly/
    *******Don't forgot to MARK AS ANSWER / VOTE AS HELPFUL if it really helps************
    R.Mani http://rmanimaran.wordpress.com

  • How to set the read only property for dynamic ALV column

    Hi All,
    I have built one dynamiv ALV and I have one name column inside that ALV for which I have to set read only property based on two column fields that exist in the same ALV,say IS_SP and IS_CORP of type boolean.
    If any one of the flag is 'X',i have to make that name column as display only and
    If both flag are not set,it should be displayed as ediatable column.
    I have written one method as INIT_ALV which gets called when ALV is loaded.
    Code is as  follows:
      lr_column_settings ?= wd_this->alv_all_roles.
      lt_columns = lr_column_settings->get_columns( ).
    LOOP AT lt_columns INTO ls_column.
    CASE ls_column-id.
       WHEN <NAMECOLUMN>. "name column which should be editable/display
    Create Input Field
            CREATE OBJECT lr_uie_input_field_ro
              EXPORTING
                value_fieldname = ls_column-id.
         ls_column-r_column->set_cell_editor( lr_uie_input_field_ro ).
        After this,I have to set the read only property based on IS_SP and IS_CORP values,
              CALL METHOD lr_uie_input_field_ro->set_read_only_fieldname
              EXPORTING
                *value = 'IS_SP' or 'IS_CORP'
    ENDLOOP.
    I dont want to use cell variants also.
    Help me to achieve this.
    Thanks and Regards,
    Divya

    Divya - I have done it in the past following these documents. Please read it and try it it will work.
    Please read it in the following order since both are a continuation documents for the same purpose (it also contains how to change colors of row dynamically but I didnt do that part I just did the read_only part as your requirement) 
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0625002-596c-2b10-46af-91cb31b71393
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0155eb5-b6ce-2b10-3195-d9704982d69b?quicklink=index&overridelayout=true
    thanks!
    Jason PV

  • How to make a cell/column read only

    HI All,
    Is there any way to make a specific cell read only with in a specific data form?
    Similarly is there any way to make whole column read only inside a specific data form?
    I don't want to make changes in my dimension member (e.g Dynamic Calc), i want to make these changes at data form level because, these cell/column are read only at one form but on some other data form they are editable/enterable

    If you want to make a column read only then have a look at asymettric columns in the planning admin doc, if you use them then you can make one of the columns read only.
    If you want a make one cell read only then one method could be to use javascript, you could add an extra member which is dynamic calc and point to the original member with a formula but it doesn't sound like you want to do that.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Read Only Columns

    Hi,
    We have designed a update METADATE type custom integrator to download, update and re-upload data to Oracle Apps. As a part of the integrator we are displaying few extra columns for the end users viewing purpose. The client want us to make such view only columns as 'READ ONLY' and prevent any changes to them. They want such columns to either be greyed out or protected in order to prevent any changes. Is it possible to achieve this using WebADI? We tried updating the READ_ONLY_FLAG column in the table bne_interface_cols_b but it doesn't work as expected. This set-up allows the end user to update/make changes to the column in the excel sheet and throws an error only when the sheet is uploaded, not before that.
    Any suggestions/help is appreciated. We are on R11i.
    Thanks,
    Nitin jain

    As suggested, an update statement like below will address the issue in R11i:
    update bne_layout_cols
    set style = 'mso-protection:locked;'
    where application_id = <>
    and interface_code = <>
    and sequence_num in <>;

  • Selectively mark Excel columns in MDS as Read-Only

    Is there an internally supported feature in MDS 2012 Excel add-in wherein we can set some columns (e.g Code column) as Read-Only? The use case we're trying to evaluate is to not allow users to make changes to the Business Key column of an entity (populated
    from an actual DW dimension) and instead accept changes to only a few attributes. We'd want to display the read-only attributes for informational purposes to the user.

    Hi Muqadder,
    In the Master Data Services Add-in for Excel, the following input statuses are possible:
    Status
    Description
    Error
    One or more values in the row don’t meet system requirements like length or data type. The value is not updated in the MDS repository.
    New Row
    The values in the row have not yet been published to the MDS repository.
    Read Only
    The logged in user has Read-only permissions to one or more values in the row and the value(s) cannot be updated.
    Unchanged
    No values in the row have been changed in the worksheet. This does not mean the values in the repository have not changed; to get the latest data in the sheet, in the
    Connect and Load group, click Load or Refresh.
    This is the default setting for each row.
    For more information, please see:
    Validating Data (MDS Add-in for Excel):
    http://technet.microsoft.com/en-us/library/hh479625.aspx
    Master Data Services Add-in based on the user permission to determine the data is read-only or not. It is not possible to mark some column as Read-only.
    Thanks,
    Elvis Long
    TechNet Community Support

Maybe you are looking for