<?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 How to use button bar with Text object to toggle between different text content in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-use-button-bar-with-Text-object-to-toggle-between/m-p/829663#M16362</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to add some insights on my dashboard and want to use the text container to write in my insights. at the same time, i also want to use a button bar labeled as insight 1, insight 2 etc to toggle between different insights/ text on the text container. is there a way to do this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13794"&gt;@Sam_SAS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Aug 2022 13:57:12 GMT</pubDate>
    <dc:creator>vaibhavchavan</dc:creator>
    <dc:date>2022-08-22T13:57:12Z</dc:date>
    <item>
      <title>How to use button bar with Text object to toggle between different text content</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-use-button-bar-with-Text-object-to-toggle-between/m-p/829663#M16362</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to add some insights on my dashboard and want to use the text container to write in my insights. at the same time, i also want to use a button bar labeled as insight 1, insight 2 etc to toggle between different insights/ text on the text container. is there a way to do this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13794"&gt;@Sam_SAS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 13:57:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-use-button-bar-with-Text-object-to-toggle-between/m-p/829663#M16362</guid>
      <dc:creator>vaibhavchavan</dc:creator>
      <dc:date>2022-08-22T13:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to use button bar with Text object to toggle between different text content</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-use-button-bar-with-Text-object-to-toggle-between/m-p/829666#M16363</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need help with the text object, please be more specific about what you want to do. A screen capture is very helpful for us if you can provide one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You cannot select different data items by using a button bar, but what you can do is assign a parameter to the button bar and use a calculated item that displays different values depending on the value of the parameter. That expression might look something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If ('MyParameter'p = 'Insight 1')&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;return 'Insight 1'n&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;else 'Insight 2'n&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use this data item in your report objects and it will show different values based on the parameter value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that you can cannot assign arbitrary text as the labels for a button bar. The labels are always the values of a category data item. The workaround is to create a calculated item or a custom category that will produce the desired values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So that might look something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If ('category'n StartsWith('A'))&lt;/P&gt;
&lt;P&gt;return "Insight 1"&lt;/P&gt;
&lt;P&gt;else "Insight 2"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You assign this calculated item to the &lt;STRONG&gt;Category&lt;/STRONG&gt; role of the button bar. The actual condition you use can be anything so long as your data will produce both results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you use this trick, it is important that the button bar does NOT perform a filter action (unless this is desired, I suppose). Be sure that the button bar is not placed in the report prompt area or the page prompt area, and check the Actions pane to be sure that no filter actions are defined for the button bar.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know if that helps,&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 14:27:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-use-button-bar-with-Text-object-to-toggle-between/m-p/829666#M16363</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2022-08-22T14:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to use button bar with Text object to toggle between different text content</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-use-button-bar-with-Text-object-to-toggle-between/m-p/829744#M16364</link>
      <description>&lt;P&gt;Maybe you could use a text object for choosing the insights instead of a button bar, and put each insight on its own hidden page. Then in the first text box, link the text to the hidden pages. Like this&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Madelyn_SAS_0-1661199883478.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74580i9EAA9634532F9375/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Madelyn_SAS_0-1661199883478.png" alt="Madelyn_SAS_0-1661199883478.png" /&gt;&lt;/span&gt;&lt;BR /&gt;In view mode, it would look like this:&amp;nbsp;&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="Madelyn_SAS_1-1661199941949.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74581i2DC634BE17716C21/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Madelyn_SAS_1-1661199941949.png" alt="Madelyn_SAS_1-1661199941949.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 20:26:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-use-button-bar-with-Text-object-to-toggle-between/m-p/829744#M16364</guid>
      <dc:creator>Madelyn_SAS</dc:creator>
      <dc:date>2022-08-22T20:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to use button bar with Text object to toggle between different text content</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-use-button-bar-with-Text-object-to-toggle-between/m-p/829746#M16365</link>
      <description>This is a good suggestion.</description>
      <pubDate>Mon, 22 Aug 2022 20:29:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-use-button-bar-with-Text-object-to-toggle-between/m-p/829746#M16365</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2022-08-22T20:29:37Z</dc:date>
    </item>
  </channel>
</rss>

