Two buttons with different colors

Hi,
  I am very new to the Web Dynpro. I have placed two buttons in my web dynpro application. What to want to change the first button color to RED and Seond button color to GREEN. How to do this?

Hi Praveen,
We have very limited options while changing the colors of the UIElements in WebDynpro.
There is no direct way to change the color.
For the Button UIElement we have a property called Design.
You can set the property value to "emphasized" or "standard" to get different look & feel.
Or Check the following article by Bharathwaj
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/colourful webdynpro applications.pdf
Regards, Anilkumar
Message was edited by: Anilkumar Vippagunta

Similar Messages

  • Two buttons with different ids keep overwriting eachothers onclick

    My flex app has 2 different states ('Employee Results' and 'Place Results') all based on one original base state (so three total)
    I have a search button called searchbtn on one view state.
    I have a search button called searchbtn2 on another view state.
    They both are in their own unduplicated control bars, meaning I didn't copy and paste from one screen to the other.
    I have assigned an onclick event of currentState='Employee Results' to the searchBtn.
    I have assigned an onclick event of currentState='Place Results' to  the searchBtn2.
    The problem is this.
    When I assign the event to the searchBtn it works.
    When I go to the next view state and assign the event to searchBtn2, the searchBtn is overwritten with the same onclick that is in searchBtn2.
    Why is this happening and how do I get around it?

    Sorry.  It was the way I was nesting things.  I had forgotten some closing
    tags.
    Thank you!
    The soul of a journey is liberty, perfect liberty, to think, feel, do just
    as one pleases.
    William Hazlitt, "On Going a Journey," 1822

  • Options to move your tool bars above the tabs? And options to shade tabs and buttons with different colors?

    In this version my tool bars are below my tabs, I like my tabs directly above my page. And in this version the tabs are almost see through which is fine except it would be cool if we had an option to change the color of them you could still keep them almost see through but let us add a tint of color to them, as well as add color to the other buttons in the browser bar.

    Thank you, I appreciate your answer. I did however figure that one out myself actually immediately after I asked the question. But you are correct.

  • Unable to use two af:tables with differing coloring (skins)?

    Im trying to configure the Siebel Self-Services application and customize the skinning. I have some problems though, because i need to show two af:tables on the same page, but with different coloring. One with black background and white text (both header and body) and one with white background and black text. I have tried to use styleClass:es, but the css parameters set for the af table are overriding the ones set in the stylesheets.
    Anyone having an idea how to overcome this?
    Thanks
    /Jon-Erik

    Hi,
    if the styleClass name is table1 then the skin selector would be something like
    .table1 af|table
    or .afTable.af|table
    I don't see how this can be overriden. If you assumption is that the style class reference must be to a CSS definition on the page then this indeed does not work. The styleClass name is kind of a named identifier for the component to skin and is used to further qualify the component to skin
    Frank

  • How do i run two threads with different sleep times?

    How do i run two threads with different sleep times?
    Ive got thread A and thread B, they both update a jpanel.
    They both start when i press the start button.
    However thread A updates every 250ms and thread B updates every 1000ms. i cant just run them both at 250ms becuase this will mess it up.
    So for every four runs of thread A i want thread b to only be run once
    Does anyone know how to do this?
    Thanks, Ant...

    ok, ive done it but now i cant stop it!
    ive added buttons to start and stop, the start button works but the stop button doesnt. why doesnt "t.stop();" work?
        public void run() {
            while(t == Thread.currentThread()) {
                System.out.println("No " + t.getName());
                if (t.getName().equals("1")){
                    try {
                        t.sleep(1000); // in milliseconds
                    } catch (InterruptedException e) {}
                } else{
                    try {
                        t.sleep(250); // in milliseconds
                    } catch (InterruptedException e) {}
        }

  • My brother dropped my iphone 6 on tile and its cracked and the screen is white with different colored lines down it. What do you suggest I do???

    Cracked iPhone 6 screen and screen is all white with different colors going down it. What do I do???

    Take it in for repair or exchange. Be prepared to write a pretty big check unless you bought AppleCare+.
    If your iPod Touch, iPhone, or iPad is Broken
    Apple does not fix iDevices. Instead, they exchange yours for a refurbished or new replacement depending upon the age of your device and refurbished inventories. On rare occasions when there are no longer refurbished units for your older model, they may replace it with the next newer model.
    ATTN: Beginning July 2013 Apple Stores are now equipped to do screen repairs/replacements in-house on iPhone 5 and 5C. In some cases while you wait. According to Apple this is the beginning of equipping Apple Stores with the resources needed to do most repairs for iPhones, iPads, and iPod Touches that would not require major replacements. Later in the year the services may be extended as Apple Stores become equipped and staffed with the proper repair expertise. So, if you need a screen repaired or a broken screen replaced or have your stuck Home button fixed, call your local Apple Store to see if they are now doing these in-house.
    You may take your device to an Apple retailer for help or you may call Customer Service and arrange to send your device to Apple:
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes international calling numbers.
    You will find respective repair costs in the appropriate link:
    iPod Service Support and Costs
    iPhone Service Support and Costs
    iPad Service Support and Costs
    There are third-party firms that do repairs on iDevices, and there are places where you can order parts to DIY if you feel up to the task:
    1. iResq or Google for others.
    2. Buy and replace screen yourself: iFixit

  • IPad 1 display with different color line

    My iPad display shows with different colors here & there. Is that defect? Some web page is ok. But most of time you can see that.

    Mountpa-
    Your iPad may be defective, but is probably out of warranty.  An Apple Store may exchange it for a flat rate.  Look for an iPad repair center for a less expensive repair. You can find an Apple Authorized Repair Center at <Apple Authorized Repair Centers>, but non-Apple repair centers may be less expensive still.
    First check to see if your color happens to be part of your iPad's wallpaper.  Go to Settings-Brightness & Wallpaper to see how it is currently set.
    One thing you can try is to reset (reboot) your iPad.  Hold both the Home and Sleep buttons for several seconds until the Apple logo appears.  Ignore the "Slide to power off" arrow.  The iPad will restart after a couple of minutes.  Resetting this way will not hurt anything, and sometimes clears up mysterious problems.
    Fred

  • Plot a bar graph of 1D array with different color of each bar?

    Any one has example for a graph of 1 D array ( exp: [1,2,6,4,6]  with different color of each bar? I want to make a bar graph of 1 D array, exp :if the value >=5, the bar is red, value< 5 is blue.

    What's wrong with the solution I showed you over two weeks ago?
    http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=281455#M281455
    LabVIEW Champion . Do more with less code and in less time .

  • Running Border Animation with different colors ?

    Hey..Any body can help me to create a animation of dashed lines with different colors ??i mean border like LEd lyts around the fotos of God ??

    Hi,
    If you set the style properties for the Panel you want to
    modify, it will consider the properties you set than loading from
    the global css file. I have created a sample in which i have two
    Accordions, in which one Accordion uses the global style for the
    header and other one uses the style which i set for that Accordion.
    Hope this helps

  • On a chart, can we set portions of a chart with different colors

    My application involves with fuel cell conditioning during which the V-I curve with go many cycles. I want to distinguish these cycles with different colors but don't know whether it's doable because I think if we set a color, it will set the whole line with the same color. Or if we can stop the line after one cycle and start the second cycle as a new line, then it will be a new color. Anyone can give some suggestion about how it can work? Thanks in advance.
    Guangde

    By bundling multiple points together you can get different plots on a waveform graph.  And +Inf plots nothing.  I attached an example that plots a random number.  When the boolean button is switched, it switches to the other plot line, thus another color.  This was only done for 2 different colors, but the case structure and the cluster could be expanded for more than 2 colors.
    Message Edited by Ravens Fan on 08-24-2007 10:43 PM
    Attachments:
    Untitled 1.vi ‏14 KB
    Example_BD.png ‏12 KB

  • HT4623 hi i have an iphone 4s and has not been a year yet no water damage but there is a white cloudy screen around the edges and will start going crazy with different colors and all someone please gel what is wrong with it?

    hi
    i have an iphone 4s and has not been a year yet no water damage but there is a white cloudy screen around the edges and will start going crazy with different colors and all someone please gel what is wrong with it?

    I switched the usb port and did the whole recovery holding of the buttons ect... And it worked, the computer detected the phone and i was able to click restore. However, the computer says preparing iphone for restore and it is still doing the restarting thing where the apple fades away and then comes back like it is restarting. If i can somehow get past this i will be able to go back to factory settings and resolve my problem, but this is where i am stuck.

  • Not able to color different rows with different colors in a column of table

    Hi,
    I am trying to to display different rows with different colors in a column of the table based on some decode condition.
    I have gone through the following threads :
    Can we colour the rows in the column of a table
    Changing Color of a value in a column
    This is what i have done :
    1.Added the following code to custom.xss(changed the name to Custom.xss as suggested in one of the above threads) --- in path ---- jdev\myhtml\OA_HTML\cabo\styles
    <style selector=".1">
    <includeStyle name="DefaultFontFamily"/>
    <property name="font-size">11pt</property>
    <property name="font-weight">Bolder</property>
    <property name="color">#008000</property>
    <property name="text-indent">3px</property>
    </style>
    <style selector=".2">
    <includeStyle name="DefaultFontFamily"/>
    <property name="font-size">11pt</property>
    <property name="font-weight">Bolder</property>
    <property name="color">#FFFF00</property>
    <property name="text-indent">3px</property>
    </style>
    2. Sql query of the VO is :
    select comments,role ,decode(role,'REQUESTER','1','2') Colorattr from xxat_sars_action_history where request_id = :1 and event_name = :2 and action_code <> 'PENDING'
    order by sequence_num desc
    3. Coded the following in the process request of the controller:
    OATableBean table = (OATableBean)webBean.findIndexedChildRecursive("CommentsTB");
    OAMessageStyledTextBean roleBN = (OAMessageStyledTextBean)webBean.findIndexedChildRecursive("role");
    OADataBoundValueViewObject cssjob = new OADataBoundValueViewObject(roleBN,"Colorattr");
    roleBN.setAttributeValue(oracle.cabo.ui.UIConstants.STYLE_CLASS_ATTR, cssjob);
    where 1 and 2 form the colors ( i have even tried with 'Red' and 'Yellow'...as it was not working replaced with 1 and 2)
    4.The query returns data fine with corresponding 1 and 2 values.
    But different colors are not getting reflecting on to the UI.
    I am testing this on my local jdev.
    Please do let me know if i am missing something.
    Thanks ,
    Sushma.

    Any Clues please.....
    Thanks,
    Sushma.

  • I have two users with different music on each itunes and i can only use one library, how do i use both for one iTouch?

    i have two users with different music on each itunes and i can only use one library, how do i use both for one iTouch?

    Chris, I believe this link may have the information you're looking for. Welcome to discussions!
    http://docs.info.apple.com/article.html?artnum=300432

  • Can I use iCloud to sync two devices with different apples Ids?

    Can I use iCloud to sync two devices with different apple ID's

    What do you mean by "apple ID"?  There's an ID you can use at the iTunes store to buy songs, apps, etc.  there's an ID you can use for your iCloud account - the two can be different or the same. So which service are you referring to when you talk about an apple ID?

  • Can I sync two ipods with different ID on the same computer?

    can I sync two ipods with different ID on the same computer?

    Hi,
    Yes you can as long as you have two seperate user accounts on your computer. Hope this helps.
    xxmitchxx90

Maybe you are looking for