Setting the colour red for an input field or a text-field in a table

Hy,
I am using an input-field or text-field within a table-cell. For some rows in the table the text in the input-field / text-field should be red. How can I do this ?
Florian Hroch

Create a new attribute "TextColor" of type "com.sap.ide.webdynpro.uielementdefinitions.TextViewSemanticColor" (local DDIC types), under the table's data source node.
Bind the "TextView.semanticColor" property of the table cell editor to this attribute.
If you cannot add new attributes under the data source node (this is the case if there is a structure binding), add a value node "TableProperties" (cardinality 1:1, selection 1:1) under the data source node and add the attribute there.
Then you can control the color of the TextView in table row at index i by setting the "TextColor" value for node element at index i.
For an input field, you cannot set the text color, a workaround might be adding an icon in an extra column.
Armin

Similar Messages

  • Setting the colour of the search box text on a public website

    I am using the search box snippet in the header of my public website.
    The background of the header is a dark blue.  The search box background is transparent so the default colour of the text (#444) on the dark blue background is barely visible.
    The text colour appears to be set by the following entry in corev15.css:
    input[type=password],
    input[type=text],
    input[type=file],
    select,
    textarea,
    .sp-peoplepicker-topLevel,
    .sp-peoplepicker-topLevelDisabled,
    .sp-peoplepicker-autoFillContainer,
    .ms-inputBox
    border:1px solid #B0B0B0;
    background-color:#fff;
    background-color:rgba(255, 255, 255, 0.85);
    color:#FFFFFF;
    I changed the colour from #444 to #FFFFFF.
    Now I want to create a new post in the Blog.  The new post's Title and Body fields use the same entry in corev15.css to set the colour of the text.  As the background of the new post is white the text is invisible!
    Using the F12 development function in IE, setting the colour of the Search box text with an inline function works, but when I add style="color:white" to the <input> of the Search box snippet it seems to be ignored.
    What am I doing wrong?  Is there another way around the problem (I don't want to change the background colour of the header nor the background of the post page and there is no colour that will display the text well enough against both backgrounds).
    Your help would be much appreciated.
    Thanking you in anticipation.
    Roger
    rogerwithnell

    Thanks for your help, Patrick.
    Adding color: white !important; inline in the <input tag of the Search box snippet is still ignored, however.  When I look at the HTML and CSS with F12 in IE, the inline mark-up is not set.  I guess this something to do with how the Search Box
    snippet works?
    I've made some progress, though.  All the pages of the site (except the Blog NewPost page) use the corev15.css file. So I've set the colour here to white.  The css entry is:
    input[type=password],
    input[type=text],
    input[type=file],
    select,
    textarea,
    .sp-peoplepicker-topLevel,
    .sp-peoplepicker-topLevelDisabled,
    .sp-peoplepicker-autoFillContainer,
    .ms-inputBox
    border:1px solid #B0B0B0;
    background-color:#fff;
    background-color:rgba(255, 255, 255, 0.85);
    color:#FFFFFF;
    The Blog NewPost page uses \_catalog\theme\themed\CDD8DBA6/COREV15-51C31438.themedcss. I've changed the same CSS entry as follows:
    input[type=password],
    input[type=text],
    input[type=file],
    select,
    textarea,
    .sp-peoplepicker-topLevel,
    .sp-peoplepicker-topLevelDisabled,
    .sp-peoplepicker-autoFillContainer,
    .ms-inputBox
    border:1px solid #B0B0B0;
    background-color:#fff;
    background-color:rgba(255, 255, 255, 0.85);
    color:#444 !important;
    Now this page sets the colour to #444.  This means that the text in the Title and Body fields is visible but the text in the Search Box (with its dark blue background) is not.
    The Search Box on Blog NewPost is not vital but I'd like to fix it.  How can I do this?
    Roger
    rogerwithnell

  • OfficeJet Pro L7680 not printing the colour red: it comes out as brown

    Running Windows XP. OfficeJet Pro L7680. Using HP inks + quality paper.
    Model number CB038a
    The colour red is printed as a distinct brown. All other colours/shades/tints/alignments etc are absolutely fine.
    Have done the obvious: changed cartridges for brand new ones.
    Cleaned printheads
    Dignostic page: suggests all ok (good printhead health)
    The actual quality of print is good in all respects on the test patterns other than the colour red is printed as brown.
    Help gratefully received.
    I've always used HP printers and this is a new one on me!

    Hi wafflycat, if you reckon it's a cartridge issue then best bet is to contact HP phone support for a replacement....
    Phone No.s
    http://welcome.hp.com/country/us/en/wwcontact_us.html
    Cartridge Warranty
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00206040
    Ciara
    Although I am an HP employee, I am speaking for myself and not for HP.
    Twitter: @Ciara_B_HP

  • How do you set the font color for a specific entire row inside a JTable?

    How do you set the font color for a specific entire row inside a JTable?
    I want to change the font color for only a couple of rows inside a JTable.
    I've seen some ways to possibly do this with an individual cell.
    Clarification on changing the font color in an individual cell would be helpful too if
    there is no easy way to do this for a row.

    hai,
    Try out with this piece of code.Create your table and assign the renderer to each column in the table.
    CellColorRenderer m_CellColorRenderer = new CellColorRenderer();
    for(int i=0;i<your_JTable.getColumnCount();i++)
    your_JTable.getColumnModel().getColumn(i).setCellRenderer(m_CellColorRenderer);
    class CellColorRenderer extends JLabel implements TableCellRenderer
    CellColorRenderer()     
    setOpaque(true);     
    setHorizontalAlignment(LEFT);
    setVerticalAlignment(CENTER);
    setBackground(Color.white);
    setForeground(Color.black);
    protected void setValue(Object value)
         setText((value == null) ? "" : value.toString());
    public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected, boolean hasFocus, int row,int column)
         if(isSelected == true)
              setForeground(Color.red);
         else
              setForeground(Color.black);
         setValue(value);
         return this;
    regards,
    bala

  • Where do I set the polling frequency for Technical monitoring in Solution Manager 7.1 SP10 ??

    Hi All,
    I am customizing my technical monitoring templates and would like to know :
    1. Where we can set the polling frequency for each metrics for triggering alerts through Technical monitoring in Solution Manager 7.1 SP10 ??
    2. Is it like each time our threshold is breached, it will send an alert irrespective of polling frequency ??
    I know the data collection interval time for each metrics in technical monitoring template but the as per my observation the polling frequency is different.
    Need your guidance.
    Regards,
    Manish K

    Hi Javier,
    Refer to the documentation 'MAI Alert Consumer BAdI Interface' under
    http://wiki.scn.sap.com/wiki/display/TechOps/Alert+Consumer+BAdI+Interface link for information on the input to the BAdI.
    Kind regards,
    Roland

  • Can I set the address format for individual contacts?

    I have some foreign friends and would like to set the address format for their individual cards correctly. I can't seem to find a way to do this. I will be taken aback if this can't be done - I think the old Claris contact product did that.
    Anyone with any answer?
    Bryan

    Hi Bryan,
    When in edit mode, can you right click on the address field and change the country format there? I'm not on a Mac at the moment to double check, but that's what you do in OS 10.4 so I'd be surprised if it were changed in 10.5.
    Edit: Here's picture to demonstrate what I'm referring to:
    !http://www.ampersandbox.com/imprint/change-address-format.jpg!

  • Can I set the default locale for jvm

    Hi,
    Can I set the default locale for jvm?
    How to do it?
    Pan

    My windows default locale is chinese .I have thought of your opinion. But in
    windows nt , if I change the locale , all the environment will be
    destroyed(just like reinstall it , it's difficult for me) . So , Is there
    any other approach?
    Dimitri Rakitine <[email protected]> wrote in message
    news:[email protected]...
    Did you try to change the locale in the Windows control panel?
    (Control panel -> Regional Options -> Your locale)
    Pan YangBin <[email protected]> wrote:
    I have tried changing this system property and other properties such
    as -Duser.language=en -Dfile.encoding=Cp1252 , but all these properties
    did
    not changed, you can get this infomation from the log file .Maybe these
    system properties are readonly.
    Thanks very much.
    Pan
    Chris Halstead <[email protected]> wrote in message
    news:[email protected]...
    Try adding -Duser.region=US to the java command line used to start
    WebLogic...
    -chris
    "Pan YangBin" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    The problem exists in my project still exist.That is it.
    When I did not set weblogic.jsp.encoding to GB2312 in my web
    application(web.xml), and when the jsp file contain's chinese , the
    output
    will be error(error chinese) .And when I did not set it , the output
    is
    correct, but when I use request.getParameter("SomeFormElement")(theelement
    inputed chinese), the return value is error(still chinese error).And
    when
    I
    am in windows nt english version and do not set this property, all
    these
    two
    problems dispear. And I try to compare the java files those were
    generated
    by weblogic from the jsp file , there is only two additional clause
    in
    the
    java file. That's it:
    ((weblogic.servlet.jsp.JspWriterImpl)out).setEncoding("GB2312");
    response.setHeader("Content-Type", "text/html; charset=GB2312");
    (the web.xml has <context-param>
    <param-name>weblogic.jsp.encoding</param-name>
    <param-value>GB2312</param-value>
    </context-param> to be set
    So, I think maybe it works well if I change the default locale toenglish.
    And unfortunately, your method is also failed.(I have to use weblogic
    in
    chinese environment)
    Would you please help me to solve this problem?
    Pan
    Dimitri Rakitine <[email protected]> wrote in message
    news:[email protected]...
    Try java ... -Duser.language=en ...
    or mode con cp select=437 in the command prompt before running
    weblogic.
    Pan YangBin <[email protected]> wrote:
    I'm using weblogic server 5.1 sp6 in chinese environment, and I
    want
    weblogic compile my jsp with en_us locale . So I can't use
    Locale.setDefault(new Locale(...)) to set the default locale ,butI
    really
    want someway configure.
    Pan
    Dimitri Rakitine <[email protected]> wrote in message
    news:[email protected]...
    Locale.setDefault(new Locale(...)) ?
    Pan YangBin <[email protected]> wrote:
    Hi,
    Can I set the default locale for jvm?
    How to do it?
    PanDimitri
    Dimitri
    Dimitri

  • Setting the default resolution for sap logon

    Hi, ALL!
    I'm terribly tired of SAP interface. It's so uncomfortable for work.
    For example maybe you know khow to set the default resolution for sap logon to make it use its widgets of proper size. e.g. when i work with transfer rules, it has only half of screen for useful area (i use 1400x1050), and right part is just empty, but on the left very many small fields and you should constantly use scrollbars (i think you know it well). Maybe there is system customizing for this purpose.

    Hello Dmitry,
    There is no customizing for this - atleast to my knowledge.
    However, you should have to redo the settings again and again unless you are continuously re-sizing the main window.
    Cheers
    Aneesh

  • Setting the colour

    Hi,
    I'm using the following method to set the colour for lines and shapes that I draw to the screen -
    g.setColor(Color.lightGray);
    However, if I want to set the colour to something specific such as -
    RGB - 204 204 204 or #cccccc
    Is this achievable using the setColor method?
    Thanks for any help offered (new to Java!)
    David

    Hi annie,
    Thanks for your help. However, I get the following error message when I use that -
    cannot resolve symbol
    symbol : method newColor (int,java.awt.Graphics,int)
    location: class Erase
    g.setColor(newColor(r,g,b));
    ^
    1 error
    I have imported java.awt and javax.swing so I'm not sure why I get the error? Any ideas?
    Thanks again,
    David

  • BAPI/FM for setting the user status for the Project definition and WBS elem

    Hi,
    I have to set the User Status for the Project Definition and the WBS elements in that project.
    The User status to be set is the same for the project and wbs elements.
    Please let me know if there is any BAPI/FM to set the user status..
    Thanks in advance.
    Regards
    Shiva

    Hi Shkithija,
    There is a dump encoutered in the form "PS_FLAG_GET_GLOBAL_FLAGS" for 'chk_precommit_ok' in the "BAPI_PS_PRECOMMIT".
    But it is showing SY-SUBRC = 0 when used along with BAPI_TRANSACTION_COMMIT.
    May i know what are input parameters we need to pass it to "BAPI_PS_PRECOMMIT".
    Do you have any idea.
    Please let me know
    Regards
    vishnu

  • SRM 4.0- How to set the default values for product type (01) only for SC

    The radio button “Service” should not be visible.
    Also for search help (e.g. search for internal products) where a search should only be possible for product type 01 (goods). The system should not display the product type and internally always search for goods only.
    How to set the default values for product type (01) only for SC
    We needs to use Search help BBPH_PRODUCT which having parameter PRODUCT_TYPE
    Here we can set defalut value 01 but it is not correct one since same search help is using several places.
    We need to limit the search help results only for SC.
    Kindly help out me ASAP.

    The easiest way to set defautl values is to edit the batch class.
    Goto the characteiristic and go to update values.
    In here you probably have something like 0 - 100 as a spec range.
    On the next line enter the default value within this range.  At the end of the line, click in the box in the column labelled "D".  This indicates the defautl value for the characteristic.
    If you need to you can do this in the material classification view as well.
    Just to be clear, these values will only show up in the batch record.  You can not have defautl values in resutls recording screens.
    FF

  • How can i set the alternating colors for a table rows

    Dear All,
    Please any one help me how can i set the Alternating colors for Table Rows.
    i created a theam there i set the background alternating color to brown and i set the table design properity to alternating. but it is not reflecting.

    Hi,
    The design property in Table properties should work for your requirement. Select "alternating" value for design.
    Please see the API below:
    design
    Determines the appearance of the table. The property design can take the following values and is represented by enumeration type WDTableDesign.
    alternating - The table rows are displayed alternately in a different color.
    standard - The table background has one color. The individual table rows are displayed with grid net lines.
    transparent - The table background is transparent. The individual table rows are displayed without grid net lines.
    Check whether you have changed the right property or not? Also table should contain more than one rows to test this scenario.
    Regards,
    Jaya.
    Edited by: VJR on Jun 17, 2009 6:43 PM

  • How do I set the delivery policy for a queue in iMQ 2.0?

    The list on page 67 of the 2.0 administration guide appears to be
    incomplete. Specifically, I'm interested in knowing how to set
    the default delivery policy for a Queue through the jmqobjmgr command.
    I need the valid attribute name to pass in to jmqobjmgr.

    The "queueDeliveryPolicy" is an attribute of a queue
    created in the broker - not in the administered object
    destination so that is why you are not seeing that
    attribute on the list on page 67.
    By default, the broker by will use the "single" queue delivery
    policy unless you choose to change the values of the property
    "jmq.queue.defaultdeliveryPolicy" to SINGLE, ROUND-ROBIN, or
    FAILOVER. If you would like to do this, see the Chapter 4
    in the admin guide on "Starting and Configuring the Broker".
    It may be easier to set the delivery policy for just one queue.
    To do this, you can use the following command:
    jmqcmd create dst -n myQueue -t q -o "queueDeliveryPolicy=f"
    where valid values to queueDeliveryPolicy is f, s, r.
    You can do a 'jmqcmd -H' to get more info on queue attributes or
    see Chapter 6 in the admin guide on "Creating and Destroying Destinations".

  • How do I set the aspect ration for 4:3  or for 16:9?

    How do I set the aspect ration for 4:3  or for 16:9 in Adobe PE12?

    PulcinellaNM
    What computer operating system is your Premiere Elements 12 running on? Have you updated from 12 to 12.1 Update via a project's Help Menu/Update? If not, please do so. That is all background information for now.
    As for the question that you are posting....
    I think we need to go a lot deeper into what you are doing. Here are some considerations
    The aspect ratio setting is in the import settings. In Premiere Elements 12 Expert workspace, the project automatically sets the project preset based on the properties of the first video file that you drag to the Expert workspace Timeline. If your video's properties include a 16:9 flag, then the project settings will have a 16:9 flag (aspect ratio). If you do not want the project to set the project settings automatically, you can set the project settings yourself manually with File Menu/New/Project and then import your source video.
    If a problem exists where imported 16:9 video is presenting in Premiere Elements as 4:3 instead of 16:9 (typical of the JVC .mod file issue), then you can set the pixel aspect ratio under Interpret Footage feature inside the project workspace.
    At this point, I think it best for you to give more details and background behind your question so that we can be sure that we are giving you the information that you need to succeed in your projects.
    If you need clarification on anything written, please do not hesitate to ask for clarification.
    Thank you.
    ATR

  • Photos will not allow me to set the key picture for the album or event

    Photos will not allow me to set the key picture for the album or event - it is set to grey !
    Anyone else had this and found why ?
    new PHOTO app replacing iPhoto bugs/ Problems OTHER PROBLEMS :
    - no longer has a five star rating system
    - my keywords for selecting albums are gone.
    - cannot copy location of one photo to another
    - cannot have an album with  keywords AND rating > a value
    - cannot set key photo of album/event
    - multi parameter search feature gone
    Anyone got any ideas how to get around this terrible downgrade of the software ?
    BTW I have just discovered that iPhoto and its' libraries are still there, so I can go back but be left behind and frozen in time on this version if I do.
    Photos now take up 700Gb whereas it was 350Gb  #@!$#@!@#!@#
    Thanks

    That are all good points - but Photos is a completely new application. and it is only version 1.
    Continue to use iPhoto, girraween; the next update to Photos will probably add a few more features.
    iPhoto 9.6.1 is working very well with MacOS X 10.10.3.
    The migration let iPhoto installed and also your iPhoto Library will still work with iPhoto.
    If you did not uninstall iPhoto, it will still be there in your Applications folder.  And if you had updated to the latest version iPhoto 9.6.1 before you upgraded to MacOS X 10.10.3,  you can simply drag iPhoto back to the Dock from your Applications folder and continue to use it. Double click iPhoto and confirm, that you want to open iPhoto and not Photos.   It is not compulsory to use Photos, while it it still the first release. When you launch iPhoto, you will see a warning, that the iPhoto Library has been migrated to Photos, but simply click the "Open iPhoto" button.The library will still work with iPhoto. ()see: If Photos won't open a library that you already migrated - Apple Support
    If your iPhoto version is not iPhoto 9.6.1, you need to update it.
    See this User Tip:
    Usually it will work to reinstall instead of updating:
    Get iPhoto 9.6.1 if you didn't update before OS... | Apple Support Communities
    The main idea is to move the iPhoto app to the Trash, so Spotlight does not see it as installed, reload the AppStore, and then to try to download again from the App Store - from your Purchases tab, not from the main page, since you can neither buy iPhoto nor update it, but you can reinstall, if your AppleID is associated with it.
    Meanwhile you may want to send a feature request to Apple using the feedback form. Apple - Photos - Feedback
    I hope, Apple will listen and add more features to Photos to make it usable for large Photo Libraries.

Maybe you are looking for

  • Save and close popup window

    I have a typical popup window launched using the builtin javascript:popupURL(). I would like a Save and Close button on this popup window that does 1. Submits the popup page so that changes are saved into session state 2. Close the popup window 3. Re

  • I am having no luck getting any speed with firefox 5.0 why

    Hi since I have went to firefox 5 I am having trouble with working on websites going from post to post is painfully slow. most all page changes are like this I have checked with del the pc builder and no answers there I am using a new del vostro 430

  • JSP project for my assignment.?

    my Assignment is this : there is a index.jsp with header welcome.And a link "open".when someone click this "open" this must show HELLO in the same index.jsp. And this Hello must be from another jsp file ( simply, i want to embed hello.jsp into index.

  • How can I get twitter notifications on my iphone 5

    I can't access the Twitter notifications I receive on my iPhone 5. I get them on the lock screen, and there's a red dot with a number on my Twitter icon, but when I open Twitter, there's nothing under "Notifications". What gives? I was trying to cust

  • Strange internet behavior in Lion 10.7.2

    After updating to Lion 10.7.2 something very strange started happening. While using Safari the internet bogs down at random (the connection still works) it just doesn't load pages at all for a moment and then continues like nothing happened afterward