<?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 Button to reset all text input filters in SAS VA,  ideally combined with a CSV filter in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Button-to-reset-all-text-input-filters-in-SAS-VA-ideally/m-p/910355#M17731</link>
    <description>&lt;P&gt;Using SAS Viya 3.05, VA 8.5.2&lt;/P&gt;&lt;P&gt;Experience level: Novice&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi, and thanks for any help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am successfully using the method noted here to reset most filters in a VA report using a single button:&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/New-SAS-User/One-button-to-reset-all-filters-SAS-VA-8-2/td-p/523400" target="_blank"&gt;https://communities.sas.com/t5/New-SAS-User/One-button-to-reset-all-filters-SAS-VA-8-2/td-p/523400&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Visual-Analytics/Button-on-VA-Report-to-quot-Clear-all-Filters-quot/td-p/273046" target="_blank"&gt;https://communities.sas.com/t5/SAS-Visual-Analytics/Button-on-VA-Report-to-quot-Clear-all-Filters-quot/td-p/273046&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it doesn't seem to work for text input filters. Is there any way to apply this, or a similar solution, to a text input filter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, I'd combine this with a CSV filter, using an approach similar to this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Visual-Analytics/Filter-list-object-using-multiple-text-box-entries/td-p/801091" target="_blank"&gt;https://communities.sas.com/t5/SAS-Visual-Analytics/Filter-list-object-using-multiple-text-box-entries/td-p/801091&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The end result I'm looking for is a CSV text box (contains) filter, where the user can enter 1-20 filters, i.e.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Filter = "Toyo, Nissan, Honda, Chev"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Returns Toyota, Nissan, Honda, Chevy, Chevrolet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which can then be reset using a button.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if I can't achieve that, a series of text input filters will be my fallback...but I still can't seem to get text boxes to reset with the button&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Code for resetting filter:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;parameter:&lt;/U&gt;&amp;nbsp; reset_all, reset_tab, reset_subtab&lt;/P&gt;&lt;P&gt;&lt;U&gt;calc_field_1 (repeated for tab, subtab): &lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;IF ( 'reset_all'p = NOT)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;RETURN 'reset_filters'&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ELSE 'resetting'&lt;/P&gt;&lt;P&gt;&lt;U&gt;calc_field_2 (actual filter):&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;IF ( ( 'reset_all'n&amp;nbsp; =&amp;nbsp; 'reset_filters' ) OR&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;( 'reset_tab'n&amp;nbsp; =&amp;nbsp; 'reset_filters' ) OR&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;( 'reset_subtab'n&amp;nbsp; =&amp;nbsp; 'reset_filters' ) )&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;RETURN 'car_make'n&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ELSE 'click again to reset'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Advanced Filter Code for CSV filter:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;'car_make'n Contains GetWord ( 'car_make_input'n,1 ) OR&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;( 'car_make'n Contains GetWord ( 'car_make_input'p,2 ) AND ( GetWord ( 'car_make_input'p,2 ) NotMissing ) OR&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;( 'car_make'n Contains GetWord ( 'car_make_input'p,3 ) AND ( GetWord ( 'car_make_input'p,3 ) NotMissing ) OR&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;... to 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the simplified version, there's also text tidy up stuff (UpCase, etc.) embedded as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;WHY am I doing this, and why can't I use a different approach?&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; dashboard with a LOT of filters, spread across multiple tabs, subtabs, scrolling containers, etc. to allow the users to slice and dice many different ways. Many of the input values are narrative text and/or have numerous values, so drop downs wouldn't work. It'd be horrendous for the users to try and hunt down all the filters to manually reset them, and I want to provide the option to reset all, reset tab, reset subtab, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much!&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jan 2024 00:07:47 GMT</pubDate>
    <dc:creator>Milton</dc:creator>
    <dc:date>2024-01-04T00:07:47Z</dc:date>
    <item>
      <title>Button to reset all text input filters in SAS VA,  ideally combined with a CSV filter</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Button-to-reset-all-text-input-filters-in-SAS-VA-ideally/m-p/910355#M17731</link>
      <description>&lt;P&gt;Using SAS Viya 3.05, VA 8.5.2&lt;/P&gt;&lt;P&gt;Experience level: Novice&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi, and thanks for any help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am successfully using the method noted here to reset most filters in a VA report using a single button:&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/New-SAS-User/One-button-to-reset-all-filters-SAS-VA-8-2/td-p/523400" target="_blank"&gt;https://communities.sas.com/t5/New-SAS-User/One-button-to-reset-all-filters-SAS-VA-8-2/td-p/523400&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Visual-Analytics/Button-on-VA-Report-to-quot-Clear-all-Filters-quot/td-p/273046" target="_blank"&gt;https://communities.sas.com/t5/SAS-Visual-Analytics/Button-on-VA-Report-to-quot-Clear-all-Filters-quot/td-p/273046&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it doesn't seem to work for text input filters. Is there any way to apply this, or a similar solution, to a text input filter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, I'd combine this with a CSV filter, using an approach similar to this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Visual-Analytics/Filter-list-object-using-multiple-text-box-entries/td-p/801091" target="_blank"&gt;https://communities.sas.com/t5/SAS-Visual-Analytics/Filter-list-object-using-multiple-text-box-entries/td-p/801091&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The end result I'm looking for is a CSV text box (contains) filter, where the user can enter 1-20 filters, i.e.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Filter = "Toyo, Nissan, Honda, Chev"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Returns Toyota, Nissan, Honda, Chevy, Chevrolet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which can then be reset using a button.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if I can't achieve that, a series of text input filters will be my fallback...but I still can't seem to get text boxes to reset with the button&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Code for resetting filter:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;parameter:&lt;/U&gt;&amp;nbsp; reset_all, reset_tab, reset_subtab&lt;/P&gt;&lt;P&gt;&lt;U&gt;calc_field_1 (repeated for tab, subtab): &lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;IF ( 'reset_all'p = NOT)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;RETURN 'reset_filters'&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ELSE 'resetting'&lt;/P&gt;&lt;P&gt;&lt;U&gt;calc_field_2 (actual filter):&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;IF ( ( 'reset_all'n&amp;nbsp; =&amp;nbsp; 'reset_filters' ) OR&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;( 'reset_tab'n&amp;nbsp; =&amp;nbsp; 'reset_filters' ) OR&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;( 'reset_subtab'n&amp;nbsp; =&amp;nbsp; 'reset_filters' ) )&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;RETURN 'car_make'n&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ELSE 'click again to reset'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Advanced Filter Code for CSV filter:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;'car_make'n Contains GetWord ( 'car_make_input'n,1 ) OR&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;( 'car_make'n Contains GetWord ( 'car_make_input'p,2 ) AND ( GetWord ( 'car_make_input'p,2 ) NotMissing ) OR&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;( 'car_make'n Contains GetWord ( 'car_make_input'p,3 ) AND ( GetWord ( 'car_make_input'p,3 ) NotMissing ) OR&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;... to 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the simplified version, there's also text tidy up stuff (UpCase, etc.) embedded as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;WHY am I doing this, and why can't I use a different approach?&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; dashboard with a LOT of filters, spread across multiple tabs, subtabs, scrolling containers, etc. to allow the users to slice and dice many different ways. Many of the input values are narrative text and/or have numerous values, so drop downs wouldn't work. It'd be horrendous for the users to try and hunt down all the filters to manually reset them, and I want to provide the option to reset all, reset tab, reset subtab, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 00:07:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Button-to-reset-all-text-input-filters-in-SAS-VA-ideally/m-p/910355#M17731</guid>
      <dc:creator>Milton</dc:creator>
      <dc:date>2024-01-04T00:07:47Z</dc:date>
    </item>
  </channel>
</rss>

