Check if table is read-only?
Hey,
I have a large jsl script in which at one stage it opens a couple of data tables, puts data in them, saves them and closes them.
Now, normally it runs fine without any issues. But the data tables it opens are on the company server and it happens occasionally that someone else has the file open, meaning that the script opens a read-only version, and can't save to it.
Is there any way I can add to the script a way to check if the file is open in read-only mode, so I can cancel the script and warn the user? Something similar to Excel where if you open a file in use by someone else you get a message "File in use by X, do you want to open a read-only version?".
Thanks,
Edvin