Disabling a cell or a row in a matrix

1.is there a way to disable a cell in a matrix?
2.is there a way to disable a row in a matrix?
3.is there a fast way to disable all the controls on a form as a result of a checkbox change?
rgds
Hagai

1) Yes
<b>Code (C#):</b>
// Get the item properties of a cell
SAPbouiCOM.Item oItem = (SAPbouiCOM.Item)oMatrix.Columns.Item("LOC_CODE").Cells.Item(1);
// Disable the cell
oItem.Enabled = false;
<i>Notes:
- oMatrix is my matrix object
- LOC_CODE is a column name in my matrix
</i>
2) Probatly... It can be done for each column as I described above, but there could be a better alternative?
3) I guess not, you should disable all controls one by one

Similar Messages

  • ALV: how to disable editable cell and F4 in certain rows only.

    I am building a table maintenance front-end with an ALV grid using OOP concept.  Certain fields are editable and also have customised search helps assigned to them in the ALV structure defined for the grid. What I want is where I have identified an entry in my database table as being locked by another user, I want to grey the line out on the ALV grid so that the entry cannot be edited and not have f4 input whilst this entry is locked by another user.
    I can grey the line out or disable F4 but not both at the same time.  If I disable the cells of the row concerned using MC_STYLE_DISABLED, the F4 is still active and will change the contents of the cell concerned via the data_changed event method in CL_GUI_ALV_GRID.
    I have used MC_STYLE_DISABLED where I have declared  a layout in my table similiar to this:
    DATA: BEGIN OF OUTPUT OCCURS 0,
    FIELD1,
    FIELD2,
    STYLE TYPE LVC_T_STYL,
    LOCK TYPE C.
    END OF OUTPUT.
    DATA: ls_celltab TYPE lvc_s_styl.
    * Where lock identified, field LOCK set to 'X'.
    LOOP AT OUTPUT where lock = 'X'.
    ls_celltab-fieldname = 'FIELD1'.
    ls_celltab-style = cl_gui_alv_grid=>mc_style_disabled.
    APPEND ls_celltab TO OUTPUT-STYLE.
    ls_celltab-fieldname = 'FIELD2'.
    ls_celltab-style = cl_gui_alv_grid=>mc_style_disabled.
    APPEND ls_celltab TO OUTPUT-STYLE.
    ENDIF.
    append OUTPUT.
    I have tried adding MC_STYLE_F4_NO to field LS_CELLTAB-STYLE2 but this does not do both actions atthe same time.
    Can anyone suggest what I might be doing wrong or an alternative way around this?
    Many thanks
    Regards
    Larissa

    As I have explained, I have fields that are editable AND are F4 enabled.  What I want is for certain rows of the ALV that I do not want any procesing to occur to make all fields in that row not available for input AND not f4 enabled.  I read a lock using a lock object.  If the entry in my ALV matches the key locked in the lock object, I want that line to be in display mode only in the ALV with no F4 help being able to be called.  It happens on the grid frontend when I press enter and have checked if any of my entries in my ALV are already locked by another user. The code is too long to post here. I can disbale the editable fields using MC_STYLE_DISABLED as described above but then the little drop down to enable F4 input is still visible against the field. 
    I have got round it by calling the f4 in event HANDLE_ON_F4 to not go via the search help and set er_event_data->m_event_handled = c_yes so that the F4 hit list does not appear, but I want to get rid of the drop down marker in that field in that instance.
    Hope this is a little clearer now.
    Larissa

  • Disable Table field cells based on Row Data

    Hi,
    Need to disable cells of a simple table based on a row level value. For example: if the column6 value for 3rd row is 'A' disable column2 for the 3rd row (No User entry can be made). This behaviour would be same for all rows having column6 as 'A'.
    Please advise.
    Thanks
    Anirban
    Edited by: user1580623 on Jun 29, 2009 6:31 AM

    Anirban,
    Please check the Switcher Bean. You need to associate an attribute to the Switcher. It would have multiple cases (items under them). Based on the value of the Switcher attribute appropriate Case is selected.
    In your VO you can write a decode logic to set the value of Switcher attribute based on the conditions. The selected case can have disabled items and hence you can get the behaviour of your choice.
    Regards
    Sumit

  • How to disable selective cells in a column of a table?

    Hi
    I have a Table UI element having 5 columns. 4 of this are non-editable and only one is editable i.e. having input field . The data is picked from the backend. The 5th column also gets default data from the backend, which the user can later on change.
    But there is a condition, that only the input fields from that row onwards should remain enabled whose month field matches the current month. Rest all should become disabled or invisible.
    I worte the code in the wdModifyView() which picks the current date, and then in a loop it checks all the rows for the condition. If it matches the condition, it comes out of the loop, else it sets the enable property of input field to false.
    But when i run this application, all the cells become disabled, not selective cells.
    Is there a way in which I can sort this problem, any API using which i can access each cell by its row number and column number and then disable it.
    If anybody could please help, it is urgent.
    Thanks & regards,
    Anupreet

    Anupreet,
    Create a subnode with cardinality 1..1 and boolean attribute IsEnabled right under your data node. Write a supply function for this subnode, and set boolean attribute value depending on month in parentElement (parameter of supply function). Then bind InputField "enabled" property to this boolean attribute.
    VS

  • Need to disable some cells in table

    Hi Gurus,
    I have a OAF table (region style Table )where there are coloums which has poplists. Depending upon some conditions I need to disable some cells say for eg. I need to disable 4th coloumn of 3rd row . How to go about it.
    Please advise.
    Regards,
    Tanveer

    Check the Switchers section in the Dev guide. You should be able to get the behaviour you wish to implement.
    Regards
    Sumit

  • Cl_wd_table - enable/disable certain cells

    Hello together,
    I'm looking for a good solution to enable/disable certain cells in a table.
    For example I have the following table (the real table is more complex - with buttons and so on...):
    User
    ToDo
    State
    A
    Todo1
    Done
    B
    Todo2
    In Process
    A
    Todo3
    In Process
    B
    Todo4
    Done
    I have different users which are working on this tabe:
    - Administrator: Can edit whole table (except State column)
    - Employee: Can only edit State Column where he is assigned
    I think it would be difficult to work with context attributs in this case?
    Is it possible to Loop over all table lines an set "enabled" Attribut in the coding?
    Best Regards

    Hi Uwe,
    Check this below links
    How to edit conditionally row of a ALV table in Web Dynpro for ABAP
    ABAP WebDynpro: Can edit a cell in a column?
    Thanks
    KH

  • How to disable single cell in table control.

    Hi my requirement is to disable single cell in the table control. Please let me know How to do this.
    If possible please provide good module pool examples.
    Harish

    Hi,
    I´m not quite sure if this is gonna work. You have to make a loop over the screen and then you can change some characteristics of it, which includes the Input option:
      LOOP AT SCREEN.
        IF screen-group1 = 'ABC'.
          screen-input = '0'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    I´ve used this code for selection screens but could help you. Check in SE11 all options for SCREEN.

  • How to disable a Entire row in a Matrix in Find Mode (User Form)

    Hi,
    How to disable a Entire row in a Matrix in Find Mode (User Form)
    Regards
    Jambu

    Hi,
       Iam using Bubble event = false in click event but the matrix row
    is allow to edit but we cant save the document in Find Mode That is fine.
    What is my actual requirement is In find mode matrix Row not allow to enter the data .
    For examble In ADD mode i enter the data in Three rows (Item Section - Matrix) and
    save the document. Whwn i open the document in find mode the three row is not allow
    to editable like the same functionality of PO, sales Order, etc ..
    Regards
    Jambu

  • Obj or view to flatten "cell" records into "row" record

    I have ProdPrice records which are essentially "cells" in a price matrix.
    create table ProdPrice {
    ProdNum number (12,0),
    Quality char(1),
    Condition char(1),
    Price number(15,3),
    ... (other stuff)
    with primary key (ProdNum, Quality, Condition)
    where Quality is in [ 0, 1, 2, 3 ] and Condition in [ 0, 1, 2 ]
    I want to create a view or object view representing one "row"
    in the matrix with that "row" containing all prices with the same Quality. Essentially I want to "flatten" the cells into Quality "rows"
    for viewing and editing.
    An example Quality "row" type might look like:
    create type ProdPriceQualityRow {
    ProdNum number (12,0),
    Quality char(1),
    PriceCondition0 number(15,3),
    PriceCondition1 number(15,3),
    PriceCondition2 number(15,3),
    PriceCondition3 number(15,3)
    I think I now need to
    create view ProdPriceQualityRowView of type ProdPriceQualityRow
    with object identifier (ProdNum, Quality) as ....
    but I'm not sure how to complete the view / object and its associated instead of trigger.
    Does anyone have any examples of how to create views / objects / triggers that work like this?
    I've read most of the Oracle Application Developers Guide - Object Relational Features but can not seem to warp their examples into the above.
    Thanks
    R.Parr
    Temporal Arts

    For examples goto askTom.Oracle.com and search for "pivot table".

  • Bj or view to flatten "cell" records into "row" record

    I have ProdPrice records which are essentially "cells" in a price matrix.
    create table ProdPrice {
    ProdNum number (12,0),
    Quality char(1),
    Condition char(1),
    Price number(15,3),
    ... (other stuff)
    with primary key (ProdNum, Quality, Condition)
    where Quality is in [ 0, 1, 2, 3 ] and Condition in [ 0, 1, 2 ]
    I want to create a view or object view representing one "row"
    in the matrix with that "row" containing all prices with the same Quality. Essentially I want to "flatten" the cells into Quality "rows"
    for viewing and editing.
    An example Quality "row" type might look like:
    create type ProdPriceQualityRow {
    ProdNum number (12,0),
    Quality char(1),
    PriceCondition0 number(15,3),
    PriceCondition1 number(15,3),
    PriceCondition2 number(15,3),
    PriceCondition3 number(15,3)
    I think I now need to
    create view ProdPriceQualityRowView of type ProdPriceQualityRow
    with object identifier (ProdNum, Quality) as ....
    but I'm not sure how to complete the view / object and its associated instead of trigger.
    Does anyone have any examples of how to create views / objects / triggers that work like this?
    I've read most of the Oracle Application Developers Guide - Object Relational Features but can not seem to warp their examples into the above.
    Thanks
    R.Parr
    Temporal Arts

    For examples goto askTom.Oracle.com and search for "pivot table".

  • In Web Dynpro ABAP, Can we merge two cells of a row in a table ?

    In Web Dynpro ABAP, Can we merge two cells of a row in a table ?

    Hallo Jagannatha,
    the new table feature is available in SAP NetWeaver 7.0 EhP2 (SAP ERP 6.0 EhP5, SAP Business Suite 7i2010) named 'TableMultiEditorCell'. See [SAP Online Help|http://help.sap.com/saphelp_nw70ehp2/helpdata/en/9b/46bb0d339b42cc8d30636ca0c9f5b6/frameset.htm] for more details ...
    "This UI element is a table cell variant that enables several UI elements to be placed in one table cell. This type of cell can be used for "one click actions". ...
    Regards, Bertram

  • How do I change the background of a single cell or a row in a table?

    How do I change the background of a single cell or a row in a
    table? I doesn't seem to be letting me do that.

    Are you using the latest DW? If so, then it isn't letting you
    because
    bgcolor is deprecated and shouldn't be used.
    The correct way is to use css to define the background of a
    cell
    CSS:
    .blackcell {background-color: black;}
    HTML:
    <td class="blackcell">whatever in the cell</td>
    Nadia
    Adobe® Community Expert : Dreamweaver
    CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    ~ Template Customization ~
    http://www.csstemplates.com.au
    Spry Widget Examples
    http://www.dreamweaverresources.com/spry-widgets/
    "dm25" <[email protected]> wrote in message
    news:f4jr5h$luu$[email protected]..
    > for some reason that doesn't always work. When I click
    inside a cell, it
    > doesn't give me an option to change the background
    color.

  • Compare two cells in a row and group of rows

    Tuesdays 1st 2nd 3rd 4th 5th MB
    Jan 4, 2011 7 14 21 28 36 32
    Jan 11, 2011 5 15 25 28 38 16
    Jan 18, 2011 2 17 25 28 38 25
    Okay, say the above is my table, how do I compare two cells in a row for two numbers? Say I wanted to find out if row A2 contained a 7 and a 28?
    I thought an IF formula might do it, but can't figure it out.
    Thanks in advance!
    Jim

    Head Crab wrote:
    Tuesdays 1st 2nd 3rd 4th 5th MB
    Jan 4, 2011 7 14 21 28 36 32
    Jan 11, 2011 5 15 25 28 38 16
    Jan 18, 2011 2 17 25 28 38 25
    Okay, say the above is my table, how do I compare two cells in a row for two numbers? Say I wanted to find out if row A2 contained a 7 and a 28?
    "A2" is an address for a single cell, not a row. Its current content, assuming no empty rows above or empty columns left of what's shown, is "Jan 4, 2011". Perhaps you mean Row 2, or the range B2:G2.
    Assuming that you want to know 'if' (or 'how many times') two specific numbers occur in the range of cells from column B to column G in a single row, COUNTIF is the function you want.
    Place the two target numbers into cell I1 and J1.
    Enter the formula below into I2:
    =COUNTIF($B2:$G2,I$1)
    Fill the formula right into J2, then fill both down to row 4.
    You'll get a count of the occurrences of each number.
    If you want only a "Yes" (both numbers appear in the range) or "No" (neither of the numbers appear, or one appears but not the other), use this variation (in I2 or J2):
    =IF(AND(COUNTIF($B2:$G2,I$1)>0,COUNTIF($B2:$G2,J$1)>0),"Yes","No")
    Regards,
    Barry

  • Numbers formula for "sum of all cells above this row"

    Is there a way, using the cell formulas in Numbers, to say "sum of all the cells above this row"?  I'm trying to make a ledger of sorts, and I want to have a column that is "how much you've spent so far" for each entry, which is the sum of all the "Price" cells for that row and above.
    Is this possible?  Thank you in advance for your help!

    Hi Alexander,
    You could start with a table like this:
    To get started,
    Cell D2 =C2
    Then to continue,
    Formula in D3 (and Fill Down)
    =D2+C3
    Row 10 is waiting for you to fill in details... .
    Regards,
    Ian.

  • Adding Cell in a row in Smart Form

    Hi All,
    Can anybody please tell how to add a cell in the row of a table in smart forms.
    Thanks

    Hi,
           Select the table, so that you can see the table painter. In that press the Details tab. You'll get the cell's width details. If you want to add an cell, then enter it's width for it. Also, note that the accumulation of all the cells width in a row should match with that of the Table.
    Regards,
    Hema.
    Reward points if it is useful.

Maybe you are looking for

  • Ipad stolen. Do I need to block my Apple-ID (and how)?

    My iPad was stolen, and I bought a new iPad 2 instead. What should I do with my Apple-ID? The thieves attempted to reset my password but the email to confirm the action obviously arrived in my email. I fortunately used a different email for the ipad

  • Clarifications on company code merger

    Dear SAP Experts We need to merge two company codes i.e XXXX & YYYY into one new entity(Thailand). Legally both entities will be closed by 31st Mar 2011 and merged into newly registered entity on 1st April 2011 (FY V3 - April to March). Their existin

  • How do I rename a part in a 3D PDF?

    In 9 Pro Extended I have a 3D PDF that I need to rename parts in the model tree. The model was from Pro-Engineer. I tried opening 3D Reviewer and renaming but when I "save back to PDF" the name change doesn't show. If I export to PDF from 3D Reviewer

  • Time is running too fast

    Hi there I've got an iphone 2g, FW 3.1.3 and a very strange issue: The clock is running too fast. After one day the time on my phone is 1 hour ahead ( 1hour/each day). When i connect and sync, the time on my phone jumps back to the normal time, the t

  • Dreamweaver fails to launch

    Though this looks similar to many other posts, I couldn't find a viable solution in any of them. Does anyone have any suggestions? Dreamweaver MX 2004 fails to launch in OS X 10.3.1. When I try to start it, after about 3 sec. it just closes without a