oh maybe i didnt answer the question. if you want it to open your data file 
that you include with your app, you can do this with New Architecture set to 
Off and by using Build Keys to set the default data file. This does not allow 
you to distibute a new app and have it open an existing data file, which New 
Architecture does. However the build key does not work with new arcitectire. so 
actually to do what you want you would use new architecture and include 2 data 
files, one in, one out. then detect if the inside one was opened automatically 
and use Open Data File to switch to the outside one. no this is not april fools 
joke

Spencer
[email protected]
877-970-0022
________________________________
From: Stephane Potvin <[email protected]>
Sent: Tuesday, April 5, 2022 1:22:32 PM
To: Spencer Hinsdale <[email protected]>; 4D iNug Technical 
<[email protected]>
Subject: Re: Built app in v18 can't find data file

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]
**********************************************************************

Reply via email to