<?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>Question Re: dropdown component in sap design studio in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/dropdown-component-in-sap-design-studio/qaa-p/402080#M44111</link>
    <description>&lt;P&gt;Sometimes, the script interpreter tries to be smart and doesn't exactly process the script in the order we want it to.&lt;/P&gt;&lt;P&gt;Can you try putting the infochart.clearSelection() script in your background processing?&lt;BR /&gt;&lt;BR /&gt;Dropdown onclick event script:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;APPLICATION.doBackgroundProcessing();
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Background Processing script:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INFOCHART.clearSelection();&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 16 Dec 2016 21:17:26 GMT</pubDate>
    <dc:creator>wilson_yeung</dc:creator>
    <dc:date>2016-12-16T21:17:26Z</dc:date>
    <item>
      <title>dropdown component in sap design studio</title>
      <link>https://community.sap.com/t5/technology-q-a/dropdown-component-in-sap-design-studio/qaq-p/402078</link>
      <description>&lt;P&gt;in this case,I need to use dropdown component to chice year,inforchart can set month.if I select dropdown,the inforchart will show 12 month of that year,but I have a problem like follow picture.&lt;/P&gt;&lt;P&gt;if I have select 2 month of 2016 like picture one,and then I changed dropdown year to 2015,which will show 12 month date of 2015,all of then worked.But if I change to 2016 again while I haven't select any inforchart value in 2015,it shows like picture one where 2 month was select,if I want to clear it and no value select in inforchat like picture two ,how should I do?&lt;/P&gt;&lt;P&gt;I have tried this code in dropdown selection event,but false.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INFOCHART_1.clearSelection();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And I found the dropdown selection event have carried twice time.the original value of &lt;STRONG&gt;val=0&lt;/STRONG&gt;;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if(val==1){
     val=0;
     APPLICATION.alert("1#"+DROPDOWN_1.getSelectedValue());
}else{
     val=1;
     APPLICATION.alert("2#"+DROPDOWN_1.getSelectedValue());
     APPLICATION.doBackgroundProcessing();
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;after I run it,the value shows  :&lt;/P&gt;&lt;P&gt;APPLICATION.alert("2#"+DROPDOWN_1.getSelectedValue());&lt;/P&gt;&lt;P&gt;and then:&lt;/P&gt;&lt;P&gt;APPLICATION.alert("1#"+DROPDOWN_1.getSelectedValue());&lt;/P&gt;&lt;P&gt;So,how can I do to make the&lt;STRONG&gt; inforchart.clearselection()&lt;/STRONG&gt; work, or how to clear the choice state; and how to avoid dropdown select event run twice time?&lt;/P&gt;&lt;P&gt;Thanks .&lt;/P&gt;&lt;P&gt;Jing.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/11363-xpmuetnyqei1e-wf9edgq.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/11364-ik6oii8b6r302o1lunt.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 01:36:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dropdown-component-in-sap-design-studio/qaq-p/402078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-16T01:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: dropdown component in sap design studio</title>
      <link>https://community.sap.com/t5/technology-q-a/dropdown-component-in-sap-design-studio/qaa-p/402079#M44110</link>
      <description>&lt;P&gt;I've solved dropdown run twice problem as following this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://archive.sap.com/discussions/thread/3882295"&gt;https://archive.sap.com/discussions/thread/3882295&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but how to make inforchart.clearSelection() work with dropdown select event.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 03:42:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dropdown-component-in-sap-design-studio/qaa-p/402079#M44110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-16T03:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: dropdown component in sap design studio</title>
      <link>https://community.sap.com/t5/technology-q-a/dropdown-component-in-sap-design-studio/qaa-p/402080#M44111</link>
      <description>&lt;P&gt;Sometimes, the script interpreter tries to be smart and doesn't exactly process the script in the order we want it to.&lt;/P&gt;&lt;P&gt;Can you try putting the infochart.clearSelection() script in your background processing?&lt;BR /&gt;&lt;BR /&gt;Dropdown onclick event script:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;APPLICATION.doBackgroundProcessing();
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Background Processing script:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INFOCHART.clearSelection();&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Dec 2016 21:17:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dropdown-component-in-sap-design-studio/qaa-p/402080#M44111</guid>
      <dc:creator>wilson_yeung</dc:creator>
      <dc:date>2016-12-16T21:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: dropdown component in sap design studio</title>
      <link>https://community.sap.com/t5/technology-q-a/dropdown-component-in-sap-design-studio/qaa-p/402081#M44112</link>
      <description>&lt;P&gt;hey,Wilson.&lt;/P&gt;&lt;P&gt;I've tried what you said many times,but it still false.&lt;/P&gt;&lt;P&gt;I found it worked when I was use in a page,but when I change to another year,it false.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 01:09:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dropdown-component-in-sap-design-studio/qaa-p/402081#M44112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-19T01:09:54Z</dc:date>
    </item>
  </channel>
</rss>

