O$: Exporting/Importing Datafiles with connections?
Nick Renders
omnis1 at arcict.com
Mon Feb 29 04:22:51 EST 2016
Thank you all for your replies. I'll play around a bit and see how far I
can get.
One follow-up question: how do I make certain I have recreated all of
the connections?
Do I just loop through all of the Files and all their connections with
notation like
below, or is there another way?
Do $files.[fileName].$conns.$makelist($ref.name)
Thanks,
Nick
On 26 Feb 2016, at 18:34, Jeffrey Jones wrote:
> When importing a file that has a connected file, i.e. importing
> invoices connected to customers, and using the omnis import data
> command with a delimited file, the first field in the import list must
> be a seq number or other indexed field of the parent record.
>
> This triggers a lookup on the parent file and establishes the
> connection.
>
> -Jeff
>
>> On Feb 26, 2016, at 2:58 AM, Nick Renders <omnis1 at arcict.com> wrote:
>>
>> We have a little routine that exports/imports certain File classes
>> from one Omnis Datafile into another.
>> It simply reads the data in a List (same definition as the current
>> File class) and writes it back into the other Datafile.
>>
>> Now I would like to do the same thing with File classes that have
>> connections.
>> I honestly don't know the first thing about Omnis connections, so
>> before I blow up my computer, is there anyone with some experience in
>> this field?
>>
>> I know that our routine will recreate Sequences, will that break the
>> connections?
>> If so, how can you export/import an Omnis File while keeping the
>> connections intact?
>>
>>
>> Nick
>>
>> _____________________________________________________________
>> Manage your list subscriptions at http://lists.omnis-dev.com
>>
>
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
More information about the omnisdev-en
mailing list