<?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: regarding html prompts within Visual Analytics making use of job execution in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/regarding-html-prompts-within-Visual-Analytics-making-use-of-job/m-p/904086#M2101</link>
    <description>&lt;P&gt;Hi Arne,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to be usable by the prompts, the library should be defined in the Compute session used behind the scene to retrieve the data. Usually, CAS libraries are not assigned upfront for the compute contexts. You should make sure that the library is defined in the autoexec of the compute server or that you have created the library with the flag "Assign and connect to data sources at startup" is checked as described in the following &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Managing-Connections-to-Data-Sources-and-SAS-Libraries-for/ta-p/825138" target="_blank" rel="noopener"&gt;blog&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;That should fix the issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Xavier&lt;/P&gt;</description>
    <pubDate>Tue, 21 Nov 2023 13:03:14 GMT</pubDate>
    <dc:creator>XavierBizoux</dc:creator>
    <dc:date>2023-11-21T13:03:14Z</dc:date>
    <item>
      <title>regarding html prompts within Visual Analytics making use of job execution</title>
      <link>https://communities.sas.com/t5/SAS-Viya/regarding-html-prompts-within-Visual-Analytics-making-use-of-job/m-p/904076#M2100</link>
      <description>&lt;P&gt;I am following on the subject Task Prompts used in Viusal Analytics which was nicely explained in a tutorial written by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/114048"&gt;@XavierBizoux&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="Create a SAS Viya Job with a prompt using Task Prompts" href="https://communities.sas.com/t5/SAS-Communities-Library/Create-a-SAS-Viya-Job-with-a-prompt-using-Task-Prompts/ta-p/658639" target="_self"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Create-a-SAS-Viya-Job-with-a-prompt-using-Task-Prompts/ta-p/658639&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm struggling to populate the list box with levels available in a data source that relates to a caslib.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The relevant block for the prompt generating code is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Highlighted you can see my failed attempts to direct the data source to the table "REMA" in caslib "PUBLIC".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It gives an error or fails to load the data source.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So how do I change sashelp.cars to public.rema?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ok1.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90073i0322DC1750F76FF6/image-size/large?v=v2&amp;amp;px=999" role="button" title="ok1.png" alt="ok1.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;Task schemaVersion="7.2"&amp;gt;
    &amp;lt;Registration&amp;gt;
        &amp;lt;Name&amp;gt;Filter Cars&amp;lt;/Name&amp;gt;
        &amp;lt;Description&amp;gt;Prompt for SASHelp Cars report&amp;lt;/Description&amp;gt;
        &amp;lt;Version&amp;gt;5.2&amp;lt;/Version&amp;gt;
    &amp;lt;/Registration&amp;gt;
    &amp;lt;Metadata&amp;gt;
        &amp;lt;DataSources&amp;gt;
&amp;lt;!--             &amp;lt;DataSource name="dataset" defaultValue="CASUSER.VENTAS_OPE_FORM1" where="false" required="true" readOnly="true"&amp;gt; --&amp;gt;
&amp;lt;!--             &amp;lt;CasResource server="cas-shared-default" defaultValue="REMA" library="PUBLIC" table="REMA" locale="en_US"/&amp;gt; --&amp;gt;
        &amp;lt;DataSource name="dataset" defaultValue="SASHELP.CARS" where="false" required="true" readOnly="true"  &amp;gt;
&amp;lt;!--             &amp;lt;CasResource server="cas-shared-default" library="PUBLIC"/&amp;gt; --&amp;gt;
&amp;lt;!--             &amp;lt;DataSource name="dataset" defaultValue="REMA" where="false" required="true" readOnly="true"&amp;gt; --&amp;gt;
                &amp;lt;Filters&amp;gt;
                    &amp;lt;Filter name="originFilter"&amp;gt;
                        &amp;lt;Column column="MAKE" sortBy="label" sortDirection="ascending"/&amp;gt;
                    &amp;lt;/Filter&amp;gt;
                    &amp;lt;Filter name="typeFilter"&amp;gt;
                        &amp;lt;Column column="MODEL" sortBy="label" sortDirection="ascending"/&amp;gt;
                        &amp;lt;Where&amp;gt;
                            &amp;lt;Expressions&amp;gt;
                                &amp;lt;Expression operation="eq"&amp;gt;
                                    &amp;lt;Column column="MAKE" sortBy="label"/&amp;gt;
                                    &amp;lt;Value option="var_origin"/&amp;gt;
                                &amp;lt;/Expression&amp;gt;
                            &amp;lt;/Expressions&amp;gt;
                        &amp;lt;/Where&amp;gt;
                    &amp;lt;/Filter&amp;gt;
                    &amp;lt;Filter name="driveTrainFilter"&amp;gt;
                        &amp;lt;Column column="DRIVETRAIN" sortBy="label" sortDirection="ascending"/&amp;gt;
                        &amp;lt;Where&amp;gt;
                            &amp;lt;Expressions&amp;gt;
                                &amp;lt;Expression operation="in"&amp;gt;
                                    &amp;lt;Column column="MODEL" sortBy="label"/&amp;gt;
                                    &amp;lt;Value option="var_type"/&amp;gt;
                                &amp;lt;/Expression&amp;gt;
                            &amp;lt;/Expressions&amp;gt;
                        &amp;lt;/Where&amp;gt;
                    &amp;lt;/Filter&amp;gt;
                &amp;lt;/Filters&amp;gt;
            &amp;lt;/DataSource&amp;gt;
        &amp;lt;/DataSources&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Nov 2023 12:33:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/regarding-html-prompts-within-Visual-Analytics-making-use-of-job/m-p/904076#M2100</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2023-11-21T12:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: regarding html prompts within Visual Analytics making use of job execution</title>
      <link>https://communities.sas.com/t5/SAS-Viya/regarding-html-prompts-within-Visual-Analytics-making-use-of-job/m-p/904086#M2101</link>
      <description>&lt;P&gt;Hi Arne,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to be usable by the prompts, the library should be defined in the Compute session used behind the scene to retrieve the data. Usually, CAS libraries are not assigned upfront for the compute contexts. You should make sure that the library is defined in the autoexec of the compute server or that you have created the library with the flag "Assign and connect to data sources at startup" is checked as described in the following &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Managing-Connections-to-Data-Sources-and-SAS-Libraries-for/ta-p/825138" target="_blank" rel="noopener"&gt;blog&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;That should fix the issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Xavier&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 13:03:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/regarding-html-prompts-within-Visual-Analytics-making-use-of-job/m-p/904086#M2101</guid>
      <dc:creator>XavierBizoux</dc:creator>
      <dc:date>2023-11-21T13:03:14Z</dc:date>
    </item>
  </channel>
</rss>

