<?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: Migrating SAS EG 4.1 to SAS EG 5.1 (dll's) in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Migrating-SAS-EG-4-1-to-SAS-EG-5-1-dll-s/m-p/246876#M17513</link>
    <description>&lt;P&gt;Instead of embedding a control, later versions of EG provide an API (&lt;STRONG&gt;ShowOutputDataSelector&lt;/STRONG&gt;&lt;STRONG&gt;)&lt;/STRONG&gt; that allows you to invoke the EG data selector directly. &amp;nbsp;There is an example in &lt;A href="https://github.com/cjdinger/SasRunningTotals" target="_self"&gt;the SAS Running Totals task (GitHub)&lt;/A&gt;. &amp;nbsp;Looks something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;// Allow user to browse to output data location
private void btnBrowseOut_Click(object sender, EventArgs e)
{
	// this calls back into application
	// and tells it to display browse dialog
	string cookie = "";
	ISASTaskDataName od = Consumer.ShowOutputDataSelector(this,
		ServerAccessMode.OneServer,
		Consumer.AssignedServer,
		"", "", ref cookie);

	// the ShowOutputDataSelector doesn't return
	// a cancel status.  So if it produces
	// a null value, that tells us it was
	// Cancel'd
	if (od != null)
	{
		txtOutput.Text = 
			string.Format("{0}.{1}", od.Library, od.Member);
	}
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jan 2016 13:08:04 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2016-01-29T13:08:04Z</dc:date>
    <item>
      <title>Migrating SAS EG 4.1 to SAS EG 5.1 (dll's)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Migrating-SAS-EG-4-1-to-SAS-EG-5-1-dll-s/m-p/246862#M17511</link>
      <description>&lt;P&gt;Good morning community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently trying to migrate an AddIn developed in VB2010 from version 4.1 to 5.1 of Enterprise Guide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason I request your aid today is due to this error: "Error 2 The name 'sasDataSetEDR' does not exist in the current context 'path'&amp;nbsp;". While using version 4.1 I had it declared as "private SAS.EG.Controls.SASDatasetSelector xpto", but sadly using version 5.1 it doesnt use the same dll file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please guide me through, on which dll to properly use in order to have the same functionality.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sérgio Duarte&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2016 11:32:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Migrating-SAS-EG-4-1-to-SAS-EG-5-1-dll-s/m-p/246862#M17511</guid>
      <dc:creator>Smgduarte</dc:creator>
      <dc:date>2016-01-29T11:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating SAS EG 4.1 to SAS EG 5.1 (dll's)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Migrating-SAS-EG-4-1-to-SAS-EG-5-1-dll-s/m-p/246876#M17513</link>
      <description>&lt;P&gt;Instead of embedding a control, later versions of EG provide an API (&lt;STRONG&gt;ShowOutputDataSelector&lt;/STRONG&gt;&lt;STRONG&gt;)&lt;/STRONG&gt; that allows you to invoke the EG data selector directly. &amp;nbsp;There is an example in &lt;A href="https://github.com/cjdinger/SasRunningTotals" target="_self"&gt;the SAS Running Totals task (GitHub)&lt;/A&gt;. &amp;nbsp;Looks something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;// Allow user to browse to output data location
private void btnBrowseOut_Click(object sender, EventArgs e)
{
	// this calls back into application
	// and tells it to display browse dialog
	string cookie = "";
	ISASTaskDataName od = Consumer.ShowOutputDataSelector(this,
		ServerAccessMode.OneServer,
		Consumer.AssignedServer,
		"", "", ref cookie);

	// the ShowOutputDataSelector doesn't return
	// a cancel status.  So if it produces
	// a null value, that tells us it was
	// Cancel'd
	if (od != null)
	{
		txtOutput.Text = 
			string.Format("{0}.{1}", od.Library, od.Member);
	}
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2016 13:08:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Migrating-SAS-EG-4-1-to-SAS-EG-5-1-dll-s/m-p/246876#M17513</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-01-29T13:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating SAS EG 4.1 to SAS EG 5.1 (dll's)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Migrating-SAS-EG-4-1-to-SAS-EG-5-1-dll-s/m-p/246906#M17514</link>
      <description>&lt;P&gt;I'm not sure it fixes my problem. lets consider I have the code bellow how could I migrate from 4.1 to 5.1 and which dll's do I need:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;" private SAS.EG.Controls.SASDatasetSelector sasDataSetEDR;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;SASDatasetSelector sasDataSet = new SASDatasetSelector();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sasDataSet.Server = servidor;&lt;BR /&gt;sasDataSet.Consumer = consumer;&lt;BR /&gt;sasDataSet.Parent = contentor;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;......(add some resources)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;contentor.Controls.Add( sasDataSet); &amp;nbsp;// &amp;nbsp;this dataser is being added to a form&lt;/P&gt;&lt;P&gt;sasDataSet.Show();&lt;/P&gt;&lt;P&gt;return sasDataSet; "&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2016 15:14:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Migrating-SAS-EG-4-1-to-SAS-EG-5-1-dll-s/m-p/246906#M17514</guid>
      <dc:creator>Smgduarte</dc:creator>
      <dc:date>2016-01-29T15:14:10Z</dc:date>
    </item>
  </channel>
</rss>

