<?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: Send Expects Scriptable Object in access or evaluation of 'Send' in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Send-Expects-Scriptable-Object-in-access-or-evaluation-of-Send/m-p/774136#M95572</link>
    <description>&lt;P&gt;Is parameterChoice a scaler value such as "xxx" or is it a JMP list value {"xxx"}?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In either case, if it is a single value, you might want to change the order of the Contains to&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;!Contains( :Parameter, parameterChoice )&lt;/CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;</description>
    <pubDate>Fri, 19 Jul 2024 16:59:59 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2024-07-19T16:59:59Z</dc:date>
    <item>
      <title>Send Expects Scriptable Object in access or evaluation of 'Send'</title>
      <link>https://community.jmp.com/t5/Discussions/Send-Expects-Scriptable-Object-in-access-or-evaluation-of-Send/m-p/774039#M95562</link>
      <description>&lt;P&gt;I have the following function that is called by another jsl file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ConfirmFiltering = Function({},

show(dtImp);
dtImp &amp;lt;&amp;lt; Select Where(!Contains(parameterChoice, :Parameter));


);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and even if the output of the show command is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtImp = DataTable("Details 2");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;at the following line I get the following error:&lt;/P&gt;&lt;P&gt;Send Expects Scriptable Object in access or evaluation of 'Send' , dtImp &amp;lt;&amp;lt; /*###*/Select Where( !Contains( parameterChoice, :Parameter ) ) /*###*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems weird to me that even if recognizes the dtImp command as a DataTable, at the next line it characterizes that as a Not "Scriptable Object"&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 10:26:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Send-Expects-Scriptable-Object-in-access-or-evaluation-of-Send/m-p/774039#M95562</guid>
      <dc:creator>Georgios_Tsim</dc:creator>
      <dc:date>2024-07-19T10:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Send Expects Scriptable Object in access or evaluation of 'Send'</title>
      <link>https://community.jmp.com/t5/Discussions/Send-Expects-Scriptable-Object-in-access-or-evaluation-of-Send/m-p/774049#M95563</link>
      <description>&lt;P&gt;It may be a scoping issue.&amp;nbsp; I suggest changing your reference to the :Parameter column to&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtImp::Parameter&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What is the value of the variable parameterChoice?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 10:40:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Send-Expects-Scriptable-Object-in-access-or-evaluation-of-Send/m-p/774049#M95563</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-07-19T10:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Send Expects Scriptable Object in access or evaluation of 'Send'</title>
      <link>https://community.jmp.com/t5/Discussions/Send-Expects-Scriptable-Object-in-access-or-evaluation-of-Send/m-p/774064#M95566</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The value of the parameterChoice is chosen by the end user of the add-in that I am trying to create.&lt;BR /&gt;It doesnt solve the problem and I think that the root is not in the Select Where command. Even if I use:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt; dtImp &amp;lt;&amp;lt; show window(1);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;it gives the same error. It seems that it doesn't allow to use &amp;lt;&amp;lt; operator to the DatatTble.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But to be more analytical. I have 2 scripts:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Main.jsl: Creates a window that gives the end user the capability to choose the dataset using a button&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;bboxImp = button box( "Select data to import", importData())&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;where the&amp;nbsp;&lt;CODE class=" language-jsl"&gt;importData()&lt;/CODE&gt;&amp;nbsp;function reads the data:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;importData = Function({},
	// Function that is used to select which data to import for the analysis

    // Prompt the user to select input file
    importFile = Pick File( "Select Excel data to import" );

    if(importFile == "",
        // No file was selected - we skip the rest
        New window("Message", modal,
            Text Box("No file has been selected for import")
        ),
        // A file was selected - we continue
        // Import data
        dtImp = Open( importFile,
            Worksheets( "Details" ),
            Use for all sheets( 1 ),
            Concatenate Worksheets( 0 ),
            Create Concatenation Column( 0 ),
            Worksheet Settings(
                1,
                Has Column Headers( 1 ),
                Number of Rows in Headers( 1 ),
                Headers Start on Row( 31 ),
                Data Starts on Row( 32 ),
                Data Starts on Column( 1 ),
                Data Ends on Row( 0 ),
                Data Ends on Column( 0 ),
                Replicated Spanned Rows( 1 ),
                Replicated Spanned Headers( 0 ),
                Suppress Hidden Rows( 1 ),
                Suppress Hidden Columns( 1 ),
                Suppress Empty Columns( 1 ),
                Treat as Hierarchy( 0 ),
                Multiple Series Stack( 0 ),
                Import Cell Colors( 0 ),
                Limit Column Detect( 0 ),
                Column Separator String( "-" )
            )
        );

        // Select rows where "Component" column is empty
        dtImp &amp;lt;&amp;lt; Select Where( Is Missing( :Name( "Component" ) ) );

        // Delete the selected rows
        dtImp &amp;lt;&amp;lt; Delete Rows;

        // Grey out import botton and make Reimport and analysis botton available
        wait(1);
        dtImp &amp;lt;&amp;lt; show window(0);  
        bboxImp &amp;lt;&amp;lt; enable(0);
        bboxRe &amp;lt;&amp;lt; enable(1);
        bboxAn &amp;lt;&amp;lt; enable(1);
    );
);

ImportRedo = Function({},
	// Function that is used to remove imported datasets and allow for another import

    // Close imported datafile and ungrey import and analysis botton
    Close(dtImp, NoSave);
    bboxImp &amp;lt;&amp;lt; enable(1);
    bboxRe &amp;lt;&amp;lt; enable(0);
    bboxAn &amp;lt;&amp;lt; enable(0);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;end then if you press the Run analysis button, it calls the Analysis.jsl script that creates a window where the end user makes some choices to filter the data choosing various unique values. In this script after the end user makes his choices I am trying to use:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ConfirmFiltering = Function({},

show(dtImp);
dtImp &amp;lt;&amp;lt; Select Where(!Contains(parameterChoice, :Parameter));


);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;to filter out the DataTable dtImp.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 11:09:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Send-Expects-Scriptable-Object-in-access-or-evaluation-of-Send/m-p/774064#M95566</guid>
      <dc:creator>Georgios_Tsim</dc:creator>
      <dc:date>2024-07-19T11:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Send Expects Scriptable Object in access or evaluation of 'Send'</title>
      <link>https://community.jmp.com/t5/Discussions/Send-Expects-Scriptable-Object-in-access-or-evaluation-of-Send/m-p/774136#M95572</link>
      <description>&lt;P&gt;Is parameterChoice a scaler value such as "xxx" or is it a JMP list value {"xxx"}?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In either case, if it is a single value, you might want to change the order of the Contains to&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;!Contains( :Parameter, parameterChoice )&lt;/CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Jul 2024 16:59:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Send-Expects-Scriptable-Object-in-access-or-evaluation-of-Send/m-p/774136#M95572</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-07-19T16:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Send Expects Scriptable Object in access or evaluation of 'Send'</title>
      <link>https://community.jmp.com/t5/Discussions/Send-Expects-Scriptable-Object-in-access-or-evaluation-of-Send/m-p/774138#M95574</link>
      <description>&lt;P&gt;Which JMP version are you using? Are you using application builder? How are you handling scopes and namespaces (we don't see full scripts so we are left to guesses)? Are you having these problems when you run it from .jsl files or after you have built it into an add-in? If you close your JMP session and run your script, do you have same issues on the first run?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 16:56:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Send-Expects-Scriptable-Object-in-access-or-evaluation-of-Send/m-p/774138#M95574</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-19T16:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Send Expects Scriptable Object in access or evaluation of 'Send'</title>
      <link>https://community.jmp.com/t5/Discussions/Send-Expects-Scriptable-Object-in-access-or-evaluation-of-Send/m-p/774497#M95633</link>
      <description>&lt;P&gt;It was difficult to provide the full code, so I tried to describe and give part of them. However, I understand that is difficult for someone to&amp;nbsp;to provide help if he/she is not able to see the full code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the solution. The problem was in the Main.jsl script that I provided above. In this script I had the following function which was called once the end user clicked on the button "Run Analysis":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;compatStudyEval = Function({},
	// Function that is used to run the analysis script and handle landing page window

    // Run the analysis script related to this add-in
    Include( pathAddin || "\Analysis.jsl");

    // Close landing page 
win &amp;lt;&amp;lt; close window;
    
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The problem is generated by the&amp;nbsp;&lt;CODE class=" language-jsl"&gt;win &amp;lt;&amp;lt; close window;&lt;/CODE&gt;&amp;nbsp;command which I included to close the main window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the solution inspired by the following post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Discussions/Name-Unresolved-Button-in-access-or-evaluation-JMP-Alert-Message/m-p/695751" target="_blank"&gt;Solved: Name Unresolved: Button in access or evaluation JMP Alert Message - JMP User Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 07:25:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Send-Expects-Scriptable-Object-in-access-or-evaluation-of-Send/m-p/774497#M95633</guid>
      <dc:creator>Georgios_Tsim</dc:creator>
      <dc:date>2024-07-22T07:25:04Z</dc:date>
    </item>
  </channel>
</rss>

