How to change the forecolor of a single row of a matrix

In a matrix which is displaying list of items like the Sales Order Form, I am trying to change the forecolor to red for only those items where the item's required quantity is lesser than the item's avialable quantity.
The Code Snippet is as follows:
ReqQty = oMatrix.Columns.Item("ReqQty").Cells.Item(pval.row).Specific.value
AvaQty = oMatrix.Columns.Item("AvaQty").Cells.Item(pval.row).Specific.value
If ReqQty > AvaQty Then
Dim txtField As SAPbouiCOM.EditText
oMatrix = oform.Items.Item("cMatrix").Specific
txtField = oMatrix.Columns.Item("ItemNo").Cells.Item (pval.row).Specific
txtField.ForeColor = 200
txtField = oMatrix.Columns.Item("ItemDesc").Cells.Item(pval.row).Specific
txtField.ForeColor = 200
oMatrix.Columns.Item("ReqQty").Cells.Item(pval.row).Specific
txtField.ForeColor = 200
oMatrix.Columns.Item("AvaQty").Cells.Item(pval.row).Specific
txtField.ForeColor = 200
End If
But the problem is , if this condition applies to any one of the items in the matrix, then all the rows in the matrix change the forecolor to red.
Has anyone faced this problem and has a solution to it?

I haven't tested the problems you have for a matrix.
But I have seen the properties are not exposed for the Cell object...
Regarding the ForeColor and BackColor on the EditText they are deprecated starting from 2004 BUT you have the same properties now exposed at the <b>Item</b> level.
For the Column object the ForeColor and BackColor are not market as deprecated.
Regards
Trinidad.

Similar Messages

  • Jtable: How to change the color of an entire row?

    How can I change the color on an entire row in a Jtable based upon the value in one of the cells in that row.
    For example: Lets say:
    I have 5 rows. Each row has 4 columns.
    If column 4 has a value "A" in any of the rows, all the text in that row should be red.
    If column 4 has a value "B" in any of the rows, all the text in that row should be blue.
    Just point me in the right direction and I will try to take it on from there.
    Thanks

    In the future, Swing related questions should be posted in the Swing forum.
    But there is no need to repost because you can search the Swing forum for my "Table Prepare Renderer" (without the spaces) example which shows how this can be done.
    But first read the tutorial link given above.

  • How to change the style of a single component using oracle skin Jdev 10.1.3

    my hole applications is using oracle skin, I only need to change the color of the menuTab, but I don´t want to create a new skin family...
    I tried this link http://www.oracle.com/technology/products/jdev/101/howtos/adfskins/index.html
    but the dont tell how to create adf-faces-skins-doc.xml
    how is that possible?, please I need help....

    Hi,
    Ack, I forgot that 10g doesn't have inheritance support either... You'll have to create an XSS file I think, and those are obscure... Also 10g generates image files for menuTab... I think you'll have to create a brand new skin family, sorry :(
    Regards,
    ~ Simon

  • How to change the semantic color of entire rows in a table.

    Hi, in the past I already managed to change the semantic color of a cell by a condition (for example all the cells with negative number -> I set negative semantic color)
    My question is how can I change the semantic color of the entire row where this cell belong, and not only the cell. Im using NW2004.
    BTW, Im not a java programmer, neither a Webdynpro expert, just an ABAP Programmer. So try to be very explicit, Thx.

    Rodrigo,
    You can just bind correspondign property of every cell editor (TextView) of every column to the very same context attribute. Next, when you change attribute value for certain elemnt, the whole row (every cell editor in row) will get same value.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • How to change the column value upto 68000 rows

    Hi,
    I want to change the column value.
    I have table called RefDoc
    Select distinct r.int_ref from refdoc r where r.int_ref like '\\dxb%'
    Int_Re__f
    \\dxb\Sample\BFE B777\2008\PO2025225.tif
    \\dxb\Sample\RO\SFR\26-01-2009j\RO2022098.pdf
    \\dxb\Sample\RO\SFR\26-01-2009j\RO2040831.pdf
    \\dxb\Sample\BFE B777\2008\PO2025253.tif
    \\dxb\Sample\RO\UM INV\26-01-2009\RO2018358.pdf
    up to 68000 rows
    I want to change to \\AUH instead of \\dxb.
    I want the table like
    Int_Re__f
    \\AUH\Sample\BFE B777\2008\PO2025225.tif
    \\AUH\Sample\RO\SFR\26-01-2009j\RO2022098.pdf
    \\AUH\Sample\RO\SFR\26-01-2009j\RO2040831.pdf
    \\AUH\Sample\BFE B777\2008\PO2025253.tif
    \\AUH\Sample\RO\UM INV\26-01-2009\RO2018358.pdf
    Thanks
    Nihar

    user REPLACE function and change it
    UPDATE refdoc
       SET int_ref = REPLACE(int_ref, '\\dxb\', '\\AUH\')
    WHERE int_ref like '\\dxb\%'

  • NAC Guest Server, How to change the password for a single user?

    We have a NAC Guest Server which creates a complex password for all new users created.
    We would like to have normal/simple password for a single user. How can I get this done on a NAC Guest Server.
    Thanks in advance.

    Hi,
    You can setup 3 different flavours of passwords:
    http://www.cisco.com/en/US/docs/security/nac/guestserver/configuration_guide/20/g_guestpol.html#wp1063249.
    a. Username Policy 1 - Email address as username
    Use the guest's email address as the username. If an overlapping account with the same email address exists, a random number is added to the end of the email address to make the username unique. Overlapping accounts are accounts that have the same email address and are valid for an overlapping period of time.
    b. Username Policy 2 - Create username based on first and last names
    Create a username based on combining the first name and last name of the guest. You can set a Minimum username length for this username from 1 to 20 characters (default is 10). User names shorter than the minimum length are padded up to the minimum specified length with a random number.
    c. Username Policy 3 - Create random username
    Create a username based upon a random mixture of Alphabetic, Numeric or Other characters. Type the characters to include to generate the random characters and the number to use from each set of characters.
    Note: The total length of the username is determined by the total number of characters included.
    HTH,
    Tiago
    If  this helps you and/or answers your question please mark the question as  "answered" and/or rate it, so other users can easily find it.

  • HT1492 Does anyone knows how to change the keyboard layout in single user mode, please ?

    Hello,
    The question is in the title.
    Thank you.

    The only way you might do it is use one of the Unix editors to edit the plist file it gets the settings from once it boots in the GUI mode.  'vi' is present in all Macs, and you might have pico, nano, emacs, or ed depending on what was installed. The keyboard layout while in single user mode itself I think is generic to where the Mac was bought and what keyboard was ordered with it, when it came from the store.  Since you posted in the 10.3 or earlier forum, chances are if this has changed, few people would know for certain.  If you have a newer Mac, say 2006 or later, you should really post in the correct forum:
    http://discussions.apple.com/docs/DOC-2463

  • How to get the values in a single row without using union

    Hi,
    I have a table with the following structure and data
    empid     address     phoneno     emailid
    1001     xyz          
    1001          1234234     
    1001               [email protected]
    1002          23434     
    1002               [email protected]
    1003     abcd          
    1003               [email protected]
    1004               [email protected]
    I need to have a result in this format.
    emp id     address     phoneno     emailid
    1001     xyz     1234234     [email protected]
    1002          23434     [email protected]
    1003     abcd          [email protected]
    1004               [email protected]
    I can do it using union however that gives a performance issues with a large table. So I wish to do using in any other way using lead or something, but with the complexity about the data, I couldn't do it.
    Can anyone please help me?
    Natarajan
    Edited by: Nattu on Dec 3, 2009 3:50 PM

    Select employee_id, max(address), max(phone), max(email)
    from emp
    group by employee_id;Max

  • How to change the background color of a single row

    Hi OTN,
    I am using JDeveloper 11.1.1.2 with ADF faces in view layer.My issue is How to change the background color of a single row in af:table ?.

    How to highlight ADF table row based on column value?
    Found by searching

  • How do I change the volume for a single midi instrument in GarageBand 10? Every time I move the volume, it moves back!

    How do I change the volume for a single midi instrument in GarageBand 10? Every time I move the volume, it moves back!

    Every time I move the volume, it moves back!
    Check, if you have a volume automation set on the software instrument track.
    If the track volume automation curve is enabled, the volume slider for the track will move with the automation curve.
    Click the automation curves disclosure triangle in the track header and disable the volume automation.

  • How do i change the format of a single page in pages 09?

    How do i change the format of a single page in pages 09?
    I want a page to be landscape within a portrait-format doc.

    Question asked and answered many times !
    Yvan KOENIG (VALLAURIS, France) jeudi 19 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
    My iDisk is : http://public.me.com/koenigyvan
    Please :
    Search for questions similar to your own
    before submitting them to the community

  • 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.

  • How can I change the background of a single slide?

    I applied a theme to my keynote presentation but now I want to change the back of a single slide. How can I do this??? thanks in advance!!!

    Hi
    While you are at the slide that you want to change:
    Open Inspector
    Go to the second tab, named "Slide"
    The last option is named "Backround"
    You can choose a color, a gradient or an image fill from there
    And that's it.
    Hope it helps you
    Dimitrios Karamitros
    http://www.karamitros.gr

  • How do you change the background of a single page??

    I know how to change the background of a page (wrench tool- document setup- add shape- change size to fit whole page - change colour - done)
    but it automatically makes every page that colour not just one page, please can somebody explain how to make it work. Thanks

    Hello Alp2001,
    Thank you for the details setting a background color in Pages.  When you click on Document Setup under the wrench tool, this sets the background for your entire document. 
    Alternatively, if you want to add a background on a single page but not for the entire document, you can just add a shape with the background color on that page.  I also recommend locking the shape once you add it so that it doesn't move while you are trying to add other items to the page. 
    Follow the steps in this article to add a shape, change the size to fit the whole page, and change the color:
    Pages Help for iPad - Add and edit shapes
    http://help.apple.com/pages/ipad/2.0/#/tan9ad18c384
    Once you have set the background for that page, folllow the steps under the section titled "Lock objects" in this article to lock the background shape so that it doesn't move:
    Pages Help for iPad - Layer, group, and lock objects
    http://help.apple.com/pages/ipad/2.0/#/tan5eab46568
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How you change the download frequency for a single Podcast?

    I have iTunes 11.1.5 for Mac, and I can't find how to change the down load frequence , aka "check for new episodes" setting for individual podcasts. I've tried using the settings menu in the "My Podcasts" and the "List" podcast view. When I do this, I see these setting:
    Keep
    Download
    Sort Order
    Play Order
    If I click on the "Defaults..." button, the top setting is "check for new episodes"
    I have no problem with being able to change the  default download frequency setting, but I am at wit's end with locating where I can change that setting for individual podcasts.

    Bump.

Maybe you are looking for

  • Mavericks unable to connect to Time Capsule

    Have just set up new (Late 2013) Retina MacBook Pro with Mavericks into existing TimeCapsule. I turned on Time Machine and the initial backup went fine. Subsequent attempts to backup result in an error message of "There was an error connecting to the

  • Submitting Forms after 22 June?

    Will those who have a form central PDF form be able to submit responses after the 22 June? when there is only restricted access. Thanks, C

  • FM for get Material Inspection setup data

    Hi ALL I'm looking for a Function Module or Method that we can get Material Inspection setup data. ( QMAT data ) Please let me know if you know that. Regards Rie

  • Firefox 8.0 remembering username even though I've set it to not remember passwords. What do I do?

    I downloaded the new version of Firefox. I had the old version set to not remember passwords. The old version also deleted the username, which is what I wanted it to do. On the new version, I've set it to not remember passwords, but now usernames are

  • Recipient error. : CrystalEnterprise.Smtp

    Hi, am getting this 'recipient error. : CrystalEnterprise.Smtp' error in a Business Object Crystal report. I am able to send mail to the recipients but the report status is fail. The report was running fine for a while and now it is giving this error