<?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 Clear context in Web Dynpro in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-context-in-web-dynpro/m-p/4072849#M973843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have created a table based on search crieteria. &lt;/P&gt;&lt;P&gt;The scenario is first time e.g user has given some selection, it will return 5 records. These 5 records will be displayed in the table. &lt;/P&gt;&lt;P&gt;Now, if user enter some selection, which does not return any record, in that case i'm displaying the error message. &lt;/P&gt;&lt;P&gt;For displaying the message, i'm using get_element_count method, if it's &amp;gt; 0, then it displays the table else display the error message. But the problem is even in second time, if there is no record return, get_element_count mehtod return 5 records of the first search. &lt;/P&gt;&lt;P&gt;How to clear the context, or how to proceed. I can change my condition for a temp solution, but pls let me know what is the best way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jul 2008 22:54:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-01T22:54:17Z</dc:date>
    <item>
      <title>Clear context in Web Dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-context-in-web-dynpro/m-p/4072849#M973843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have created a table based on search crieteria. &lt;/P&gt;&lt;P&gt;The scenario is first time e.g user has given some selection, it will return 5 records. These 5 records will be displayed in the table. &lt;/P&gt;&lt;P&gt;Now, if user enter some selection, which does not return any record, in that case i'm displaying the error message. &lt;/P&gt;&lt;P&gt;For displaying the message, i'm using get_element_count method, if it's &amp;gt; 0, then it displays the table else display the error message. But the problem is even in second time, if there is no record return, get_element_count mehtod return 5 records of the first search. &lt;/P&gt;&lt;P&gt;How to clear the context, or how to proceed. I can change my condition for a temp solution, but pls let me know what is the best way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 22:54:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-context-in-web-dynpro/m-p/4072849#M973843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T22:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Clear context in Web Dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-context-in-web-dynpro/m-p/4072850#M973844</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;remove context function removes all the contexts and gives the value under main nide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where are change context we can explicitly specify under which context should the value should be...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your problem will solve here&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="476622"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/ea/c1f1c4f47011d19a600000e8a4b41d/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/ea/c1f1c4f47011d19a600000e8a4b41d/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information...&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0f6991e5-0901-0010-e0b0-dc2a26cc0389" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0f6991e5-0901-0010-e0b0-dc2a26cc0389&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Just check this one also...good blog on context handling...&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_blogpost" href="https://community.sap.com/" __jive_macro_name="blogpost" modifiedtitle="true" __default_attr="41619"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_blogpost" href="https://community.sap.com/" __jive_macro_name="blogpost" modifiedtitle="true" __default_attr="41619"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remove context is different from the Context change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remove context does, it removes all the upper nodes of that particular node&lt;/P&gt;&lt;P&gt;where as Context change is used to set the context for that particular fields to satisfy the conditions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Context Change&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/35/fb8c4057d5701de10000000a1550b0/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/35/fb8c4057d5701de10000000a1550b0/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remove Context&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/1f/ea0fb12403844bbb6c4cbc8a00cda9/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/1f/ea0fb12403844bbb6c4cbc8a00cda9/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else use the Invalidate() function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2008 07:44:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-context-in-web-dynpro/m-p/4072850#M973844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-19T07:44:31Z</dc:date>
    </item>
  </channel>
</rss>

