<?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 SAS.Tasks.Toolkit.SasTask and XmlState in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Tasks-Toolkit-SasTask-and-XmlState/m-p/62964#M6347</link>
    <description>I'm inheriting from SAS.Tasks.Toolkit.SasTask in order to be able to run SAS code from within dialogs. Before using SasTask, I used to implement ISasTask and other interfaces but since SasTask itself implements these, I do not have to. The problem is that I need to continue to save/restore task state similar to how ISASTask.XmlState did it. I tried setting the XmlState property of my SasTask-derived class, but that data never gets saved. Is this a bug? Is there another way to save/restore state when deriving from SAS.Tasks.Toolkit.SasTask?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
 Bob</description>
    <pubDate>Mon, 10 Aug 2009 21:22:31 GMT</pubDate>
    <dc:creator>BobUva</dc:creator>
    <dc:date>2009-08-10T21:22:31Z</dc:date>
    <item>
      <title>SAS.Tasks.Toolkit.SasTask and XmlState</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Tasks-Toolkit-SasTask-and-XmlState/m-p/62964#M6347</link>
      <description>I'm inheriting from SAS.Tasks.Toolkit.SasTask in order to be able to run SAS code from within dialogs. Before using SasTask, I used to implement ISasTask and other interfaces but since SasTask itself implements these, I do not have to. The problem is that I need to continue to save/restore task state similar to how ISASTask.XmlState did it. I tried setting the XmlState property of my SasTask-derived class, but that data never gets saved. Is this a bug? Is there another way to save/restore state when deriving from SAS.Tasks.Toolkit.SasTask?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
 Bob</description>
      <pubDate>Mon, 10 Aug 2009 21:22:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Tasks-Toolkit-SasTask-and-XmlState/m-p/62964#M6347</guid>
      <dc:creator>BobUva</dc:creator>
      <dc:date>2009-08-10T21:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS.Tasks.Toolkit.SasTask and XmlState</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Tasks-Toolkit-SasTask-and-XmlState/m-p/62965#M6348</link>
      <description>Bob,&lt;BR /&gt;
&lt;BR /&gt;
You should override these members in your SasTask-derived class.  Here is a C# example:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
public override string GetXmlState()&lt;BR /&gt;
{&lt;BR /&gt;
 // return the XML state of your task so the application can store it.&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
public override void RestoreStateFromXml(string xmlState)&lt;BR /&gt;
{&lt;BR /&gt;
  // take XML state from the application and initialize your task&lt;BR /&gt;
}&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Chris</description>
      <pubDate>Tue, 11 Aug 2009 14:09:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Tasks-Toolkit-SasTask-and-XmlState/m-p/62965#M6348</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2009-08-11T14:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS.Tasks.Toolkit.SasTask and XmlState</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Tasks-Toolkit-SasTask-and-XmlState/m-p/62966#M6349</link>
      <description>Thanks Chris. I'll give it a try.&lt;BR /&gt;
&lt;BR /&gt;
Bob</description>
      <pubDate>Tue, 11 Aug 2009 15:59:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Tasks-Toolkit-SasTask-and-XmlState/m-p/62966#M6349</guid>
      <dc:creator>BobUva</dc:creator>
      <dc:date>2009-08-11T15:59:25Z</dc:date>
    </item>
  </channel>
</rss>

