I am currently working on a project that has to
rely on MapInfo tables being "Read only" to
control whether they can be edited by various
users or not.
I am trying to summarize all of the circumstances
where a MapInfo table might be read only
(or a MapX Layer.Editable property might have
a value of FALSE).
I am posting it here to see if any of you can think
of other circumstances, or of any of the ones I list
might not be sufficient to make a table read-only
under all conditions:
*****For all tables:
1. The table's metadata has an "\IsReadOnly" key
set to TRUE.
2. A MapBasic "Set Table foo readonly on" statement
was issued for the table. "Set Table foo UserEdit Off"
affects only MapInfo Professional's user interface.
*****Raster tables:
All of them.
*****Native MapInfo base tables:
1. If the table is a base table, and the .TAB file's
"Access Control List" forbids write access to the table.
I'm using "Access Control List" in a loose sense --
This could include:
1a. The TAB file resides on a FAT file system and its
"Read Only" attribute is set.
1b. The TAB file resides on an NTFS file system and
the Access Control List prohibits writing.
1c. The TAB file resides in a shared directory and the
share permissions prohibit writing.
1d. The TAB file is on a UNIX server in a volume
accessed by NFS and the UNIX permissions prohibit
writing. (MapXtreme Java?)
I would imagine that it's a good idea for all of the
different files making up a native MapInfo table
have the same access control lists.
*****ODBC tables:
1. The remote database does not allow the user specified
in the ODBC connection to edit the remote table used as
a data source for the ODBC table.
2. The query selecting data from the remote database has
a "Group By" clause in it.
3. The .TAB file used by MapInfo to access the OBDC
Query has access control issues above.
*****Query tables:
1. All "create view" tables.
2. The query specifies a column list other than "*".
3. The query has a GROUP BY clause.
4. The query table is ultimately based on a read-only table.
Thanks
Spencer
_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.