<?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 Re: module pool text box in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-text-box/m-p/3872640#M930859</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several possibiliets:&lt;/P&gt;&lt;P&gt;You define another two page attributes:&lt;/P&gt;&lt;P&gt;wa_msg_ok type string&lt;/P&gt;&lt;P&gt;wa_msg_nok type string&lt;/P&gt;&lt;P&gt;Depending on the situation, you fill either one of them.&lt;/P&gt;&lt;P&gt;Alternatively, you work with a flag variable:&lt;/P&gt;&lt;P&gt;wa_msg type string&lt;/P&gt;&lt;P&gt;msg_ok type flag&lt;/P&gt;&lt;P&gt;and fille the first with the msg and the second with 'X' depending if it's ok or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the layout you check &lt;/P&gt;&lt;P&gt;&amp;lt;%if wa_msg_ok is not initial.%&amp;gt;&lt;/P&gt;&lt;P&gt;code for colouring ok &amp;lt;%=wa_msg_ok%&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;%else.%&amp;gt;&lt;/P&gt;&lt;P&gt;code for colouring nok &amp;lt;%=wa_msg_nok%&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;%endif.%&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The alternative is &lt;/P&gt;&lt;P&gt;&amp;lt;%if msg_ok is not inital.%&amp;gt;&lt;/P&gt;&lt;P&gt;code for colouring ok &amp;lt;%=wa_msg%&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;%else.%&amp;gt;&lt;/P&gt;&lt;P&gt;code for colouring nok &amp;lt;%=wa_msg%&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;%endif.%&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code for colouring can be via font color or via CSS.&lt;/P&gt;&lt;P&gt;See &lt;A href="http://htmlcodetutorial.com/character_famsupp_213.html" target="test_blank"&gt;http://htmlcodetutorial.com/character_famsupp_213.html&lt;/A&gt; for more info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another alternative is that you specify the colouring in the onInputprocessing and put all in 1 variable and show only that one in the layout without testing logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;you can also try something like below.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;% if error = 'X' . %&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;htmlb:textView text = "&amp;lt;span style='background-color: #FF0000'&amp;gt;&amp;lt;%= wa_message %&amp;gt;&amp;lt;/span&amp;gt;"&lt;/P&gt;&lt;P&gt;design = "EMPHASIZED" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;% elseif success eq 'X' . %&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;htmlb:textView text = "&amp;lt;span style='background-color: #008000'&amp;gt;&amp;lt;%= wa_message %&amp;gt;&amp;lt;/span&amp;gt;"&lt;/P&gt;&lt;P&gt;design = "EMPHASIZED" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;% endif . %&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward for useful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 May 2008 11:30:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-19T11:30:36Z</dc:date>
    <item>
      <title>module pool text box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-text-box/m-p/3872639#M930858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to give a color to a text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give a sample code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 11:22:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-text-box/m-p/3872639#M930858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T11:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: module pool text box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-text-box/m-p/3872640#M930859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several possibiliets:&lt;/P&gt;&lt;P&gt;You define another two page attributes:&lt;/P&gt;&lt;P&gt;wa_msg_ok type string&lt;/P&gt;&lt;P&gt;wa_msg_nok type string&lt;/P&gt;&lt;P&gt;Depending on the situation, you fill either one of them.&lt;/P&gt;&lt;P&gt;Alternatively, you work with a flag variable:&lt;/P&gt;&lt;P&gt;wa_msg type string&lt;/P&gt;&lt;P&gt;msg_ok type flag&lt;/P&gt;&lt;P&gt;and fille the first with the msg and the second with 'X' depending if it's ok or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the layout you check &lt;/P&gt;&lt;P&gt;&amp;lt;%if wa_msg_ok is not initial.%&amp;gt;&lt;/P&gt;&lt;P&gt;code for colouring ok &amp;lt;%=wa_msg_ok%&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;%else.%&amp;gt;&lt;/P&gt;&lt;P&gt;code for colouring nok &amp;lt;%=wa_msg_nok%&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;%endif.%&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The alternative is &lt;/P&gt;&lt;P&gt;&amp;lt;%if msg_ok is not inital.%&amp;gt;&lt;/P&gt;&lt;P&gt;code for colouring ok &amp;lt;%=wa_msg%&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;%else.%&amp;gt;&lt;/P&gt;&lt;P&gt;code for colouring nok &amp;lt;%=wa_msg%&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;%endif.%&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code for colouring can be via font color or via CSS.&lt;/P&gt;&lt;P&gt;See &lt;A href="http://htmlcodetutorial.com/character_famsupp_213.html" target="test_blank"&gt;http://htmlcodetutorial.com/character_famsupp_213.html&lt;/A&gt; for more info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another alternative is that you specify the colouring in the onInputprocessing and put all in 1 variable and show only that one in the layout without testing logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;you can also try something like below.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;% if error = 'X' . %&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;htmlb:textView text = "&amp;lt;span style='background-color: #FF0000'&amp;gt;&amp;lt;%= wa_message %&amp;gt;&amp;lt;/span&amp;gt;"&lt;/P&gt;&lt;P&gt;design = "EMPHASIZED" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;% elseif success eq 'X' . %&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;htmlb:textView text = "&amp;lt;span style='background-color: #008000'&amp;gt;&amp;lt;%= wa_message %&amp;gt;&amp;lt;/span&amp;gt;"&lt;/P&gt;&lt;P&gt;design = "EMPHASIZED" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;% endif . %&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward for useful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 11:30:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-text-box/m-p/3872640#M930859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T11:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: module pool text box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-text-box/m-p/3872641#M930860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for ur help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 10:04:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-text-box/m-p/3872641#M930860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T10:04:18Z</dc:date>
    </item>
  </channel>
</rss>

