<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Change label color using Javascript in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-label-color-using-javascript/m-p/11166218#M1907863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am working on an application.I have developed frontend using Xml now i want to change the label color on click of button can any1 please help me with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried the code&lt;/P&gt;&lt;P&gt;onclick : fuction()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;var l = this.getView().byId("lbl");&lt;/P&gt;&lt;P&gt;document.getElementById("l").setColor = 'Blue';&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but its not working please help me with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jul 2015 06:03:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-07-16T06:03:13Z</dc:date>
    <item>
      <title>Change label color using Javascript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-label-color-using-javascript/m-p/11166218#M1907863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am working on an application.I have developed frontend using Xml now i want to change the label color on click of button can any1 please help me with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried the code&lt;/P&gt;&lt;P&gt;onclick : fuction()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;var l = this.getView().byId("lbl");&lt;/P&gt;&lt;P&gt;document.getElementById("l").setColor = 'Blue';&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but its not working please help me with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 06:03:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-label-color-using-javascript/m-p/11166218#M1907863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-07-16T06:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Change label color using Javascript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-label-color-using-javascript/m-p/11166219#M1907864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you working with SAPUI5??&lt;/P&gt;&lt;P&gt;This is not the right approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;var l = this.getView().byId("lbl");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;l.&lt;A href="https://openui5.hana.ondemand.com/docs/api/symbols/sap.ui.core.Control.html#addStyleClass" style="text-decoration: underline; color: #007cc0; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;"&gt;addStyleClass&lt;/A&gt;("LabelStyle");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Here define your custom CSS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;See this document. &lt;A __default_attr="63732" __jive_macro_name="document" class="jive_macro_document jive_macro" data-orig-content="Implementing CSS in SAPUI5 Application" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;And this is not the right space to ask such questions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Post your query here.&lt;A __default_attr="2421" __jive_macro_name="community" class="jive_macro_community jive_macro" data-orig-content="SAPUI5 Developer Center" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 11:50:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-label-color-using-javascript/m-p/11166219#M1907864</guid>
      <dc:creator>Private_Member_15166</dc:creator>
      <dc:date>2015-07-20T11:50:49Z</dc:date>
    </item>
  </channel>
</rss>

