Omnis Studio - Multi-library application

Doug Easterbrook doug at artsman.com
Mon Mar 2 10:47:25 EST 2015


you may be able to avoid it by making the files 'closed' (or read only may work')

if I recall in the native datafile, if your default for the file mode is 'read/write' ... you get a slot for the file in the df1.


This is gonig back years, but I recall that we put the following into our code for updating files

begin reversible block
 set file mode  [file name1, file name 2] read/write
end reversible mode

prepare for insert/edit
etc.



and that was just good practice so that you know which files were being update in a prepare for edit statement.   otherwise omnis will update every file that is read/write mode.




Doug Easterbrook
Arts Management Systems Ltd.
mailto:doug at artsman.com
http://www.artsman.com
Phone (403) 536-1205    Fax (403) 536-1210

> On Mar 2, 2015, at 7:25 AM, Stephane Pras <stephane.pras at noos.fr> wrote:
> 
> When I open two libraries myLib1 and myLib2 with their respective data files
> DatFile1 and DatFile2 in the same application it works fine.
> 
> But then, if I check "Data Slots" for the data files, I see that Omnis
> automatically opened for each one a series of empty slots corresponding to
> the file structure of the other library. Namely DatFile1 gets a series of
> empty data slots corresponding myLib2 file structure (in addition to its own
> and effective ones), and reciprocally.
> 
> How can I avoid that ?
> 
> Stephane
> 
> 
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com



More information about the omnisdev-en mailing list