<?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 JSL obtaining access to excel file in sharepoint in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-obtaining-access-to-excel-file-in-sharepoint/m-p/85115#M38119</link>
    <description>&lt;P&gt;I am looking to run a script routinely from an excel file we keep in sharepoint.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not been able to find much but due to the tight control of our IT department I cannot write anything other than JSL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to run the attached script after I have accessed this file using the graphical "open file" window in JMP.&amp;nbsp; I think this works because sharepoint now knows that JMP is authorized to access the excel file.&amp;nbsp; I had the work around idea to have JSL call the graphical open window, wait for the user to input the file they want, and execute.&amp;nbsp; The hope is that the magical "Windows Security" window opens and they can enter their credentials.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone has experience with this?&amp;nbsp; Is there JSL to open that "open file" GUI?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Dec 2018 19:34:54 GMT</pubDate>
    <dc:creator>danielrbiber</dc:creator>
    <dc:date>2018-12-06T19:34:54Z</dc:date>
    <item>
      <title>JSL obtaining access to excel file in sharepoint</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-obtaining-access-to-excel-file-in-sharepoint/m-p/85115#M38119</link>
      <description>&lt;P&gt;I am looking to run a script routinely from an excel file we keep in sharepoint.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not been able to find much but due to the tight control of our IT department I cannot write anything other than JSL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to run the attached script after I have accessed this file using the graphical "open file" window in JMP.&amp;nbsp; I think this works because sharepoint now knows that JMP is authorized to access the excel file.&amp;nbsp; I had the work around idea to have JSL call the graphical open window, wait for the user to input the file they want, and execute.&amp;nbsp; The hope is that the magical "Windows Security" window opens and they can enter their credentials.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone has experience with this?&amp;nbsp; Is there JSL to open that "open file" GUI?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 19:34:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-obtaining-access-to-excel-file-in-sharepoint/m-p/85115#M38119</guid>
      <dc:creator>danielrbiber</dc:creator>
      <dc:date>2018-12-06T19:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: JSL obtaining access to excel file in sharepoint</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-obtaining-access-to-excel-file-in-sharepoint/m-p/85120#M38121</link>
      <description>&lt;P&gt;Is this the "graphical 'open file'" window you are referring to?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graphical1.PNG" style="width: 825px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/14735i70987505CCCF97E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="graphical1.PNG" alt="graphical1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, then the following JSL code is all you need to open a file&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
file = Pick File(
	"Select JMP File",
	"$DOCUMENTS",
	{"Excel Files|xls;", "All Files|*"},
	1,
	0
);

dt = open( file );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Dec 2018 19:56:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-obtaining-access-to-excel-file-in-sharepoint/m-p/85120#M38121</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-12-06T19:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: JSL obtaining access to excel file in sharepoint</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-obtaining-access-to-excel-file-in-sharepoint/m-p/85176#M38147</link>
      <description>&lt;P&gt;Thanks for providing that. "Pick File" is exactly what I am looking for.&amp;nbsp; I do have a follow-up question about how this function works though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would really like to provide the user with the path and excel file in the open window.&amp;nbsp; It seems though that JSL is not reading the punctuation correctly for the path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the attached script the path displayed in the window is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JSL issue.PNG" style="width: 923px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/14749iD5638B9410824F9C/image-size/large?v=v2&amp;amp;px=999" role="button" title="JSL issue.PNG" alt="JSL issue.PNG" /&gt;&lt;/span&gt;https---xyzcomp.com-sites-SbD-Product-docs-Development%20Database-Feasibility&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why has JSL replaced all ":" and "/" with "-"?&amp;nbsp; Is there a way to prevent this?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 16:43:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-obtaining-access-to-excel-file-in-sharepoint/m-p/85176#M38147</guid>
      <dc:creator>danielrbiber</dc:creator>
      <dc:date>2018-12-07T16:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: JSL obtaining access to excel file in sharepoint</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-obtaining-access-to-excel-file-in-sharepoint/m-p/85177#M38148</link>
      <description>&lt;P&gt;Pick file only works when looking into an operating system file structure.&amp;nbsp; The Open Window Object does not understand URLs.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 17:26:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-obtaining-access-to-excel-file-in-sharepoint/m-p/85177#M38148</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-12-07T17:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: JSL obtaining access to excel file in sharepoint</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-obtaining-access-to-excel-file-in-sharepoint/m-p/85178#M38149</link>
      <description>It seems fine when I actually paste in the path and file. For instance, if I past the following into the "file name" field it does work.&lt;BR /&gt;&lt;A href="https://xyzcomp.com/sites/SbD/Product/docs/Development%20Database-Feasibility.xlsx" target="_blank"&gt;https://xyzcomp.com/sites/SbD/Product/docs/Development%20Database-Feasibility.xlsx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Are there JSL functions to pass the ":" and "/" without modifying them?&lt;BR /&gt;If "pick file" truly wont work with URLs, could we add this to the wish list? Should be simple to just prevent JSL from changing those specific characters.</description>
      <pubDate>Fri, 07 Dec 2018 17:36:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-obtaining-access-to-excel-file-in-sharepoint/m-p/85178#M38149</guid>
      <dc:creator>danielrbiber</dc:creator>
      <dc:date>2018-12-07T17:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: JSL obtaining access to excel file in sharepoint</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-obtaining-access-to-excel-file-in-sharepoint/m-p/85180#M38150</link>
      <description>&lt;P&gt;When I paste the string into the File Name area in the Open Window, you are correct, the "/" are not changed.&amp;nbsp; However, when I attempt to open it, I get the following error&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error.PNG" style="width: 463px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/14750i2182DBD517865747/image-size/large?v=v2&amp;amp;px=999" role="button" title="error.PNG" alt="error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, this item should be added to the JMP Wish List.&lt;/P&gt;
&lt;P&gt;However, I assume, that JMP is just calling the window from the operating system, not a window that JMP has built.....so changing how it works may not be as easy and you suggest&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 17:45:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-obtaining-access-to-excel-file-in-sharepoint/m-p/85180#M38150</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-12-07T17:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: JSL obtaining access to excel file in sharepoint</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-obtaining-access-to-excel-file-in-sharepoint/m-p/85400#M38190</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/13467"&gt;@danielrbiber&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I have not tried this yety but if you have JMP 14 you could probably use the JSL HTTP request to access the Excel file from sharepoint.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you know the URL--&lt;/P&gt;
&lt;P&gt;url: http://site url/_api/web/GetFileByServerRelativeUrl('/Folder Name/file name')/$value&lt;BR /&gt;method: GET&lt;BR /&gt;headers:&lt;BR /&gt; Authorization: "Bearer " + accessToken&lt;/P&gt;
&lt;P&gt;&lt;A title="Sharepoint http requests" href="https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-folders-and-files-with-rest" target="_self"&gt;Sharepoint http requests&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;See the following &lt;A title="HTTP request with Office365" href="https://community.jmp.com/t5/Discovery-Summit-2018/Importing-Web-Service-Data-The-New-HTTP-Request-in-JMP-nbsp-14/ta-p/73717" target="_self"&gt;Discovery Summit presentation for additional details&lt;/A&gt;&amp;nbsp;on how the new JSL only REST functions&amp;nbsp;work&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cheers,&lt;/P&gt;
&lt;P&gt;Stan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 22:50:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-obtaining-access-to-excel-file-in-sharepoint/m-p/85400#M38190</guid>
      <dc:creator>stan_koprowski</dc:creator>
      <dc:date>2018-12-10T22:50:36Z</dc:date>
    </item>
  </channel>
</rss>

