Remi-Noel Menegaux wrote:
Quote:
Vincent,
As you raised the question, it would be nice - not to say polite - to
give us the way you solved it.
Remi-Noel |
Sorry didn't think anyone was interested.
Maybe using solved was a bit overstated , more of a workaround.
When the runtime app is opened via the runtime or primary documents, I
prompt to create a new db or open an existing. When the new or
existing db opens it closes the primary db. So the primary db never
really gets used to store records it's basically just a template. In
the case where a newly created db is
used to open the app both the intended db and primary db opens, luckily
the primary open after the
intended so there's a branch in the open script that closes the primary
leaving just the intended open.
The primary is recognized using a global, which is set true before
creating the runtime.
Using save clone no rec's to create new db from the runtime
automatically clears the global which
differentiates the two types of files.
There is a issue I'm dealing with - in the save a copy as script step I
can't hard code the open after save checkbox which leaves it open to
user error.