<?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: Add File Name and Date in Import Settings in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Add-File-Name-and-Date-in-Import-Settings/m-p/916063#M107641</link>
    <description>&lt;P&gt;A couple of comments&lt;/P&gt;
&lt;P&gt;Using your JSL, you can change your code very simply to add in the Path&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; New Column("Source File",
            Character,
            Set Each Value(path)
        );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also, if you use the Modal option on your New Windows you do not have to use your "Done" methodology.&amp;nbsp; Modal windows stop the processing beyond the New Window, until the window is closed&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

// Step 1: Prompt user to choose between File or Folder
uploadType = "";
done = 0;

nw = New Window("Select Upload Type",modal,
    Panel Box("Choose Upload Type",
        cb = Combo Box({"File", "Folder"}),
        Button Box("OK",
            uploadType = cb &amp;lt;&amp;lt; Get Selected;;
        )
    )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 01 Dec 2025 11:09:44 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2025-12-01T11:09:44Z</dc:date>
    <item>
      <title>Add File Name and Date in Import Settings</title>
      <link>https://community.jmp.com/t5/Discussions/Add-File-Name-and-Date-in-Import-Settings/m-p/916048#M107639</link>
      <description>&lt;P&gt;I would like some input on how to include adding File Name and File Date in import settings.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In typical Multiple File Import, we have&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&amp;lt;&amp;lt;Set Add File Name Column( 1 ),
&amp;lt;&amp;lt;Set Add File Size Column( 0 ),
&amp;lt;&amp;lt;Set Add File Date Column( 1 ),&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV&gt;However, this will not work in my case. So I tried using New Column () function, but it gives empty columns or no column "Source File" at all.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt; For(i = 1, i &amp;lt;= N Items(selectedPaths), i++,
        path = selectedPaths[i];
        dt = Open(
            path,
            Headers(1),
            Column Names Start(1),
            Data Starts(2),
            End Of Field(","),
            Invisible
        );

        dt &amp;lt;&amp;lt; New Column("Source File",
            Character,
            Set Values(Repeat(path, N Rows(dt)))
        );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV&gt;I guess it should be included amongst dt = Open () setting but I do not know what to put there for File Name and File Date Columns.&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 01 Dec 2025 08:51:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Add-File-Name-and-Date-in-Import-Settings/m-p/916048#M107639</guid>
      <dc:creator>Azim</dc:creator>
      <dc:date>2025-12-01T08:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Add File Name and Date in Import Settings</title>
      <link>https://community.jmp.com/t5/Discussions/Add-File-Name-and-Date-in-Import-Settings/m-p/916058#M107640</link>
      <description>&lt;P&gt;Is there a specific reason why Multiple File Import cannot be used? You can find syntax for Open() from JSL Syntax reference&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/19.0/#page/jmp/file-functions.shtml?os=win&amp;amp;source=application#ww4959899" target="_blank" rel="noopener"&gt;Open(path, &amp;lt;arguments&amp;gt;)&lt;/A&gt;&amp;nbsp;or from scripting guide but I would suggest you do it once manually from JMP using the interactive open and then copy+modify the script JMP provides you with.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 09:13:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Add-File-Name-and-Date-in-Import-Settings/m-p/916058#M107640</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-12-01T09:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Add File Name and Date in Import Settings</title>
      <link>https://community.jmp.com/t5/Discussions/Add-File-Name-and-Date-in-Import-Settings/m-p/916063#M107641</link>
      <description>&lt;P&gt;A couple of comments&lt;/P&gt;
&lt;P&gt;Using your JSL, you can change your code very simply to add in the Path&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; New Column("Source File",
            Character,
            Set Each Value(path)
        );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also, if you use the Modal option on your New Windows you do not have to use your "Done" methodology.&amp;nbsp; Modal windows stop the processing beyond the New Window, until the window is closed&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

// Step 1: Prompt user to choose between File or Folder
uploadType = "";
done = 0;

nw = New Window("Select Upload Type",modal,
    Panel Box("Choose Upload Type",
        cb = Combo Box({"File", "Folder"}),
        Button Box("OK",
            uploadType = cb &amp;lt;&amp;lt; Get Selected;;
        )
    )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Dec 2025 11:09:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Add-File-Name-and-Date-in-Import-Settings/m-p/916063#M107641</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-12-01T11:09:44Z</dc:date>
    </item>
  </channel>
</rss>

