yes, there are now two possibilities... 1) there is a new checkbox in Database Settings, Compatibility for New Architecture. If this is ON the app saves the path to the data file in an appropriate location (~/library/application support/myapp/ so some such; if you need to know try Get 4D folder (read docs for parameter))
2) there is the old mechanism when the above option is Off, which writes the path to the data file into the structure. This does not work if you are deploying read-only or there any permission issue with that practice (not sure if this disallowed depending on where/how the app is installed) So to cover the bases, use New Architecture, so the app always opens the user's Data File Put your own Data File into Database folder to open when the user has no file. And, provide instructions or coding to create a new data file, if needed, that is _outside_ the app package. If you start with Option and select New Data File, 4D will prompt you to save inside the app package. On 4/5/22, 1:22 PM, "Stephane Potvin" <[email protected]> wrote: Thank you Spencer. That worked. Is there no way to have 4D behave as in the past? ie. have the database recognizes the data file in the same folder instead of inside the package? Thanks. Stephane > On Apr 5, 2022, at 16:16, Spencer Hinsdale <[email protected]> wrote: > > > You can put a Data File with the same name as the Structure into the Database folder inside the .app package... > > Right-click or control-click on Recordings.app and choose Show Package Contents > > Double-click Contents; double-click Database > > Paste a Data File and Rename it to Recordings.4DD > > > > On 4/5/22, 1:10 PM, "4D_Tech on behalf of Stephane Potvin via 4D_Tech" <[email protected] on behalf of [email protected]> wrote: > > Having no luck with built apps in v19, I decided to resort to v18. V18 generates the apps no problem. However, every time I open said app it always asks for the data file. > The data file is in the same folder. > I tried changing the folder to a .4dbase package to no avail. > I even deleted the data file and created a new one but it still asks for a data file. > > Any idea on how to solve this? > > Thank you. > > Stephane > > ********************************************************************** > 4D Internet Users Group (4D iNUG) > New Forum: https://discuss.4D.com > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:[email protected] > ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) New Forum: https://discuss.4D.com Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

