How to disable a single cell in a table (and not the whole column)

Hi there,
I've got a webdynpro table with a few columns, rows can be created dynamically through a button in the table toolbar.
Depending on the value of a certain cell I have to disable another cell (in the same row).
I tried to manipulate the view in the modifyview but no joy. I also tried to manipulate the attribute property through the coding below:
  DATA lv_knttp TYPE knttp.
  lo_nd_kostl = wd_context->path_get_node( path = `MULTIVALUES.KOSTL` ).
  lo_el_kostl = lo_nd_kostl->get_element( ).
  lo_el_kostl->set_attribute_property(
  attribute_name = 'LTEXT'
          property       = lo_el_kostl->e_property-enabled
          value          = ''
but it disables the whole column!!!! I just need the cell to be disabled (I thought the code above, through the lead selection, would affect a certain cell only - but I was wrong).
Any ideas?
Thanks!!!

Hi,
using cell variants you can do this.,
check this article: [Cell Variants in WDA|http://wiki.sdn.sap.com/wiki/display/WDABAP/WebDynproforABAPCellVariants]
Instead of binding the read only property of table as a whole , just bind the read only property of column group of table., You can do this bu drill down the table and select the required column and bind the read only column.,
then In onAction Event of button .,
loop the table, if condition satisfied set the read only property to true else false.,!!
hope this helps u.,
Thanks & regards,
Kiran

Similar Messages

  • How to delete one perticular message from a user and not the whole messages

    hi
    i would like to know how can i delete a single message sent by a person and not the complete list of message received by me from the same person also how can i forward a message received by me

    beesani
    Sorry. ;( You can"t delete part of a message. You can only delete the entire message from that person.
    will2b

  • How to have a button to reset a field and not the whole form?

    Hi,
    Can anyone help me with this dilemma please? All tutorials online demonstrates how to have a button to reset the whole form, but i only want the user to clear 1 field in the form.
    I have a form which has a field representing a persons name who has booked out a piece of equipment. I would like the administrator to be able to clear the field quickly without having to select the whole name and then delete it, ready to insert the name of another booker.
    Any help would be very much appreciated. (If it is using dreamweaver features than that is better.)
    Thank you!

    There's nothing in DW that will do this for you.
    This script from the internet seems to do the trick. Add this to the <head> section of your page...
    <script type='text/javascript' src='http://code.jquery.com/jquery-1.7.1.js'></script>
    <script type='text/javascript'>//<![CDATA[
    $(window).load(function(){
    function resetForm() {
      $(this.previousSibling).val(function() {
      return this.defaultValue;
    $( "input[type='button']" ).bind( "click", resetForm );
    });//]]> 
    </script>
    Then add your form in the <body>...
    <form>
      <label for="textfield1">Text Field:</label>
      <input type="text" name="textfield1" id="textfield1"><input type="button" value="reset" /><br />
      <label for="textfield2">Text Field:</label>
      <input type="text" name="textfield2" id="textfield2"><input type="button" value="reset" /><br />
      <label for="textfield3">Text Field:</label>
      <input type="text" name="textfield3" id="textfield3"><input type="button" value="reset" /><br />
      <label for="textfield4">Text Field:</label>
      <input type="text" name="textfield4" id="textfield4"><input type="button" value="reset" /><br />
    </form>
    EDIT: Ha! Same script as you found Nancy, posted originally at the exact same time too (I threw a couple modifications in)...
    Good times, good times.

  • How do you move a single album, and not the whole library, in iPhoto to an external hard drive?

    How do you move a single album, and not the whole library, in iPhoto to an external hard drive?

    File -> Export to a folder and copy it over.
    That will give you a folder with the images. There is no way to move an album outside of iPhoto. You would need to have a library containing it.
    Regards
    TD

  • How can I change one section of the document to a landscape orientation and not the whole document?

    How can I change one section of the document to a landscape orientation and not the whole document?

    Page Setup, including page orientation, is done in the File menu. The setting applies to the whole document. As Peter says, you can rotate the contents of a page (not including the text layer of a word processing document).
    As an alternative, you could use Numbers, where Sheets are empty canvases onto which you may place images, charts, tables and text boxes, and where page orientation may be set for individual Sheets. The main tradeoff is that you lose many of the built-in word processing and page layout features of Pages.
    Regards,
    Barry

  • How do you select n rows and not the whole table

    Hi
    I would like to only select the first 50 rows from a table and not the entire table. how do i accomplish this
    Thanks

    Sayeed's example will work great if you don't care which 50 rows you get back. If you do, you can use an inline view to sort them first and get back a ranked result set:
    select *
      from (select whatever
            from table
           order by key desc
    where rownum <= 50

  • How do I send just a song to someone and not the entire album?

    How do I send just a song to someone and not the entire album??

    If you are using an iOS device then no, I don't think that you can gift a song, it will need to be the whole album. If you are using your computer's iTunes, and it's not an album-only track, then you should be able to gift individual songs via the downward pointing arrow next to the song's price.

  • How may I print out a picture from paper and not the photo tray?

    How may I print out a picture from paper and not the photo tray?

    From paper?  Do you have a digital image of it on your iPhone?
    "Photo tray"?  What do you mean here?  The iPhone does not have a photo tray.  Printers have trays.

  • How do you make it print first page first and not the last page first?

    I have a HP Officejet Pro 8600. How do I make the first page print first and not the last page printing first?

    Hi,
    From the application used to print open the print dialog and click Oroperties or Preferences to access the Printing Preferences screen.
    From the Layout tab set Page Order as Back to Front, then the first page will be printed first.
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Mail: how to download ONLY last emails and not the whole hotmail.

    Hi!
    Quick question: like what Mail does in iPhones/iPads, how can I configure Mail in my iMac or Macbook Pro so that it only downloads the last, say 50 emails and not the 4000 aprox. emails I have inside the hotmail (now outlook) server?
    I have been wanting to use mail for a long time but I can't seem to find that option. I only want to see the LAST EMAILS like what happens in the app on my iPhone.
    Thanks.

    unless there is a special setting in yahoo webmail interface that allows this (gmail pop has it for example), there is no way to do it. POP will download all available messages on the first download. that's how POP works. from there on it will only download new ones.

  • How can I sync only checked items and not the whole album?

      I only want say three songs out of an album but it syncs the whole thing.  How do I change that?

    Don't create a playlist for three songs.
    Either uncheck those songs or a much better way is to create a playlist (or a few) of songs you want on the iPod the sync only those playlists.
    To add/delete from the iPod, simply add/delete from those playlists.

  • How do I search under a folder (and not the whole computer)

    I want to search for files under a specific folder
    How do I do this?
    When I search, the whole computer is searched
    Thanks
    Omar

    One thing that'll work is (in 10.7.5, at least)
    1) open the folder you want to search, using the Finder
    2) Type your search text into the Finder's Search box
    3) In the Search bar at the top of the results, select the name of the folder.
    Good luck
    srb

  • How do i put one playlist on my ipod and not the entire library

    I have recently purchased the newest ipod nano and downloaded the newest itunes and I cannot seem to find out how to select one playlist to go on my ipod. I don't want the entire library but only 1 of the playlists. How do i do this?
    Thank you!

    If you are using iTunes from version 7 onwards, then when you connect the iPod the summary screen should automatically open.
    If you click on the 'music' tab, you will see the options to:
    "sync music" with either "all songs and playlists" or "selected playlists".

  • How do i adjust the contents on one layer at a time and not the whole image - photoshop cs6

    hi
    i am creating a photo thing in photoshop cs6 and i have a mountain behind a layer that is visible and in total i have about 6 layers and when i try to change something on layer 6 (so somehting like the saturation and hue) it changes whats on layer 5, at the same time, so how do i make it so i just adjust the contents on layer 6?
    thanks
    mrredrunner100
    ps thought this might help
    https://drive.google.com/file/d/0B1KO1zQcxYLWazZNRDh1Q3ZaMmc/edit?usp=sharing

    hello.....
    while on the  adjustment layer the properties panel will show a button that looks like so:
    if you select it the adjustment will only be applied on the layer below and the adjustment layer will look like so.
    hope that helps.

  • How can I block a particular program and not the whole channel?

    I want to block a particular program. When I am trying to that, it blocks whole channel. How can I do that?
    Second Q is: can I have two parental control pins to block programs?

    Then there is no point to use it for me. Some channels require parental control for some programs, so this option should be available.Someone can argue that then "why don't you lock whole channel and unlock whenever you want to use it." I want to avoid locking-unlocking by locking specific programs.
    Comcast has this option of locking specific program as well locking channel!

Maybe you are looking for

  • Problem in creating a SyncBo for Purchase Order BAPIs

    Hello Everybody, I am trying to create a smart sync application for Purchase Orders. I have used standard bapis like BAPI_PO_GETDETAIL AND BAPI_PO_CREATE1. I have developed my own wrapper functions using these std bapis. For the PO creation i only pl

  • Express Document "Update terminated by Author: user name"

    Hi All   Can anyone help me with regard to this issue? When user do Purchase return, they get this message. I read al the message related to it. But I dont get proper solution. All relate to code and Number Range. But I am not clear of what to do? I

  • Input field in report output

    HI EXPERTS,                I am taking input from user in my report output then I wil save it to my ztable. For taking input I have used follwing code. WRITE : /1 SY-VLINE,                          (5) ITAB-WERKS CENTERED,                          SY

  • How to apply master pages across sections or whole

    It's a very basic problem to which I'm not readily finding the answer in searches. I wish to apply master pages and consistently, no matter how I format the request, am notified: "one or more of the pages specified are not valid page names." So pleas

  • What happened to slideshow

    I added an image to a homepage slideshow and ftped - no longer showing 15 image slideshow. Works in Preview but not in browser. It's either a Basic or Blank slideshow. Help! http://greenmountainpetportraits.com/index.html