<?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: CTK File run disabled - no clear reason why in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/CTK-File-run-disabled-no-clear-reason-why/m-p/585576#M7910</link>
    <description>&lt;P&gt;Managed to figure this out myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's one of two connected things:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I had an empty data source tag inside the &amp;lt;DataSources&amp;gt; section in &amp;lt;Metadata&amp;gt;. As the SAS code that the task creates doesn't need a data source this is unnecessary so I removed it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Saving a CTM file as a CTK causes it to insert into the Task template a&amp;nbsp;&amp;lt;TemplateValues version="x.x"&amp;gt; section. That includes JSON data for the default values for the controls and data sources in the task. Making a new task that includes that TemplateValues tag data means a default value for the datasource can be taken out and any default values for controls that are unwanted. They then won't be overwritten when that CTM is saved as a CTK.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Sep 2019 10:33:46 GMT</pubDate>
    <dc:creator>jamesBFD</dc:creator>
    <dc:date>2019-09-02T10:33:46Z</dc:date>
    <item>
      <title>CTK File run disabled - no clear reason why</title>
      <link>https://communities.sas.com/t5/SAS-Studio/CTK-File-run-disabled-no-clear-reason-why/m-p/585229#M7906</link>
      <description>&lt;P&gt;I've made a custom task and got it saved as a CTM file. When in edit mode (viewing the XML) I can run it and it creates a CTK which will then work exactly as I want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I then save that CTK file as a saved task (either to a folder or my tasks) whilst it will still run at that point&amp;nbsp;&lt;STRONG&gt;if&amp;nbsp;&lt;/STRONG&gt;I close the CTK file and then reopen it will no longer run! The run button is disabled and nothing I can do enables it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The task has one required inputtext control, but that's got data in because it generates the SAS code. It's also got a simple dependency of a number selector that's shown or hidden depending on a radio button choice.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No error message or information is given as to why the task cannot be run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can only presume this is a bug in Studio (I'm in version 3.6) because I can't see any reason why a task that runs perfectly well in some conditions becomes inoperable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to distribute the CTK file to my users. I could give them the CTM file which on opening they could choose to just 'run' instead of 'edit' but that's an extra level of action they'll need to perform, needlessly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 14:48:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/CTK-File-run-disabled-no-clear-reason-why/m-p/585229#M7906</guid>
      <dc:creator>jamesBFD</dc:creator>
      <dc:date>2019-08-30T14:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: CTK File run disabled - no clear reason why</title>
      <link>https://communities.sas.com/t5/SAS-Studio/CTK-File-run-disabled-no-clear-reason-why/m-p/585576#M7910</link>
      <description>&lt;P&gt;Managed to figure this out myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's one of two connected things:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I had an empty data source tag inside the &amp;lt;DataSources&amp;gt; section in &amp;lt;Metadata&amp;gt;. As the SAS code that the task creates doesn't need a data source this is unnecessary so I removed it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Saving a CTM file as a CTK causes it to insert into the Task template a&amp;nbsp;&amp;lt;TemplateValues version="x.x"&amp;gt; section. That includes JSON data for the default values for the controls and data sources in the task. Making a new task that includes that TemplateValues tag data means a default value for the datasource can be taken out and any default values for controls that are unwanted. They then won't be overwritten when that CTM is saved as a CTK.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2019 10:33:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/CTK-File-run-disabled-no-clear-reason-why/m-p/585576#M7910</guid>
      <dc:creator>jamesBFD</dc:creator>
      <dc:date>2019-09-02T10:33:46Z</dc:date>
    </item>
  </channel>
</rss>

