<?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: How to use what is returned from  &amp;quot;get Scriptable Objects&amp;quot; in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-use-what-is-returned-from-quot-get-Scriptable-Objects/m-p/365905#M61542</link>
    <description>&lt;P&gt;Maybe solution from here can help &lt;A href="https://community.jmp.com/t5/Discussions/Check-Display-box-existence-by-JSL/m-p/247758/highlight/true#M48640" target="_self"&gt;Check Display box existence by JSL&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 07 Mar 2021 20:40:41 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2021-03-07T20:40:41Z</dc:date>
    <item>
      <title>How to use what is returned from  "get Scriptable Objects"</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-what-is-returned-from-quot-get-Scriptable-Objects/m-p/365887#M61540</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I was wondering how I can use what is returned from Getting a Scriptable object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;For example, I have this code that I use with the distribution platform&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;biv={};
Biv1={};
Biv2={};
Biv3={};
test=0;

Biv1 = Current Report()[OutlineBox(1)] &amp;lt;&amp;lt; Get Scriptable Object;
Biv2 = Current Report()[OutlineBox(2)] &amp;lt;&amp;lt; Get Scriptable Object;
Biv3 = Current Report()[OutlineBox(3)] &amp;lt;&amp;lt; Get Scriptable Object;


if(biv3=={Distribution[]},
		Biv = Current Report()[OutlineBox(3)] &amp;lt;&amp;lt; Get Scriptable Object;
		test=3;
	,
	biv2=={Distribution[]},
		Biv = Current Report()[OutlineBox(2)] &amp;lt;&amp;lt; Get Scriptable Object;
		test=2;
	,
	biv1=={Distribution[]},
		Biv = Current Report()[OutlineBox(1)] &amp;lt;&amp;lt; Get Scriptable Object;
		test=1;
	,
	".";
	
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The problem is that my If statement is not working as none of the Biv1-3 are recognizing the scripital object return value.&lt;/P&gt;&lt;P&gt;I'm using this to identify if there is a local data filter or column switcher and thus return the right outline box.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if there is no LDF or CS then i use outline box 1, if there is either a LDF or CS I use outline box 2, if there is both a LDF and a CS I use outline box 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for any ideas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:07:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-what-is-returned-from-quot-get-Scriptable-Objects/m-p/365887#M61540</guid>
      <dc:creator>shampton82</dc:creator>
      <dc:date>2023-06-09T22:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use what is returned from  "get Scriptable Objects"</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-what-is-returned-from-quot-get-Scriptable-Objects/m-p/365905#M61542</link>
      <description>&lt;P&gt;Maybe solution from here can help &lt;A href="https://community.jmp.com/t5/Discussions/Check-Display-box-existence-by-JSL/m-p/247758/highlight/true#M48640" target="_self"&gt;Check Display box existence by JSL&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 20:40:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-what-is-returned-from-quot-get-Scriptable-Objects/m-p/365905#M61542</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-03-07T20:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use what is returned from  "get Scriptable Objects"</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-what-is-returned-from-quot-get-Scriptable-Objects/m-p/365936#M61546</link>
      <description>&lt;P&gt;That was really good to read and I'm sure I'll use it in a different script but the help I need is not knowing if the a Outline box exists but which one is the Distribution[] one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 22:34:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-what-is-returned-from-quot-get-Scriptable-Objects/m-p/365936#M61546</guid>
      <dc:creator>shampton82</dc:creator>
      <dc:date>2021-03-07T22:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use what is returned from  "get Scriptable Objects"</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-what-is-returned-from-quot-get-Scriptable-Objects/m-p/365972#M61549</link>
      <description>&lt;P&gt;Maybe you could try changing those to characters? Not sure how robust this would be but could work just fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;if(char(biv3) == "Distribution[]",&lt;BR /&gt;...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 05:26:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-what-is-returned-from-quot-get-Scriptable-Objects/m-p/365972#M61549</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-03-08T05:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use what is returned from  "get Scriptable Objects"</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-what-is-returned-from-quot-get-Scriptable-Objects/m-p/366026#M61559</link>
      <description>&lt;P&gt;If all you are after is the right outline box, then why not use the name of the outline box in your code?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;SpecifcBox = Report(Biv)[OutlineBox("Name of the box you are after")]&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Mar 2021 09:44:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-what-is-returned-from-quot-get-Scriptable-Objects/m-p/366026#M61559</guid>
      <dc:creator>pauldeen</dc:creator>
      <dc:date>2021-03-08T09:44:18Z</dc:date>
    </item>
  </channel>
</rss>

