<?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 Multi-User Access in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Multi-User-Access/m-p/109626#M39647</link>
    <description>&lt;P&gt;I'm working on a solution which will live on a network drive, to be accessed by multiple users asynchronously. Specifically, I have several "database" tables that users will add rows to, where the rows then contain links to their full submitted datatable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any built-in way to manage file access permissions in a situation like this? I want to avoid a situation where a user opens the "database" table and forgets to close it, locking everyone else out of the tool. I could code in my own variation on a mutex, but I don't want to reinvent the wheel if there is a built-in, easy solution. The ideal solution would be some sort of JSL script that sends a row of data to a data table without taking the lock on the data table.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Feb 2019 14:34:16 GMT</pubDate>
    <dc:creator>DavidLeber</dc:creator>
    <dc:date>2019-02-08T14:34:16Z</dc:date>
    <item>
      <title>Multi-User Access</title>
      <link>https://community.jmp.com/t5/Discussions/Multi-User-Access/m-p/109626#M39647</link>
      <description>&lt;P&gt;I'm working on a solution which will live on a network drive, to be accessed by multiple users asynchronously. Specifically, I have several "database" tables that users will add rows to, where the rows then contain links to their full submitted datatable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any built-in way to manage file access permissions in a situation like this? I want to avoid a situation where a user opens the "database" table and forgets to close it, locking everyone else out of the tool. I could code in my own variation on a mutex, but I don't want to reinvent the wheel if there is a built-in, easy solution. The ideal solution would be some sort of JSL script that sends a row of data to a data table without taking the lock on the data table.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 14:34:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multi-User-Access/m-p/109626#M39647</guid>
      <dc:creator>DavidLeber</dc:creator>
      <dc:date>2019-02-08T14:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-User Access</title>
      <link>https://community.jmp.com/t5/Discussions/Multi-User-Access/m-p/109664#M39654</link>
      <description>&lt;P&gt;Just to be clear, when you say "database" tables, you mean JMP tables?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not aware of any ability to perform row locking - JMP is inherently single-user so I assume it doesn't have that ability.&amp;nbsp; This is what I do:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;openSharedTable= Function({filePath},{default local},
	
	isLocked = 1;
	nAttempts = 200;
	delay = 0.1;
	attempts = 0;
	While(isLocked &amp;amp; attempts &amp;lt; nAttempts,
		attempts++;
		dt = open(filePath,Invisible);
		value = dt &amp;lt;&amp;lt; Get Table Variable("Locked File");
		If (value=="",
			isLocked = 0
		,
			Close(dt,NoSave);
			Wait(delay);
		);
	);
	return(dt);
	
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Feb 2019 17:30:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multi-User-Access/m-p/109664#M39654</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2019-02-08T17:30:28Z</dc:date>
    </item>
  </channel>
</rss>

