omnisdev-en Digest, Vol 46, Issue 3

Martin Luce martinluce at eclipse.co.uk
Wed May 5 15:05:19 UTC 2021


Hi Juan and Daniel

What you have to do is as follows.

1) Best to have the .df1 datafile that you want to convert in the same folder that you have your library.

2) Open you library with the command button depressed as per my note. This stops the datafile being loaded. If the library has not been converted it will ask to convert it



3) With the converted library still without its datafile loaded, go to Tools (on top line of Omnis, see above) - Add ons - Convert data file to RDMS.

4) A window opens where you select what type of SQL file you want to convert your data to. On the right of the window near the top is an icon which when depressed allows you to select the .df1 file to convert.

5) When you have selected it you see the files that will be worked on and if anything look wrong you can stop there and sort it out in .df1

6) A new icon has appeared below the previous one you have just used which flashes at you. click on it and your SQL datafile will be made.

7) After the conversion, remove the .df1 file to make sure that you do not open it in error.

Doing the means that you should not try to start a SQL file and then try dragging data into it.

Then follow my notes for further action

Martin

> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Mon, 3 May 2021 14:44:07 -0400
> From: Juan Bofill <juanbofillaba at gmail.com>
> To: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
> Subject: Re: SQL 10.2
> Message-ID: <8DD24BB5-D988-4071-9848-6B4CAF605CC4 at gmail.com>
> Content-Type: text/plain;	charset=utf-8
> 
> Trying to import from DML to SQLite and can not do it. Tried with and without the conversion tool dragging files from the Browser Sql sessions that are open. Must be doing something wrong.
> 
> Juan
> 
>> On May 2, 2021, at 9:23 AM, Juan Bofill <juanbofillaba at gmail.com> wrote:
>> 
>> Hi Martin
>> 
>> I must be doing something very wrong. I created a DML lib and data with two FILE formats and total 0f 12 records to 
>> 
>>> On May 1, 2021, at 8:31 AM, Martin Luce via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
>>> 
>>> 
>>> 
>>>> Begin forwarded message:
>>>> 
>>>> From: Martin Luce <martinluce at eclipse.co.uk <mailto:martinluce at eclipse.co.uk>>
>>>> Subject: Re: SQL 10.2
>>>> Date: 1 May 2021 at 11:10:35 BST
>>>> To: Juan Bofill <juanbofillaba at gmail.com <mailto:juanbofillaba at gmail.com>>
>>>> 
>>>> Yes, that is what I have. but you have as one line
>>>> Do $root.$devices.Screen.$visible.$assign(kTrue)Do $root.$prefs.$mapdmltodam. $assign("SQLITEDAM?)
>>>> as one line. It should be 2 as
>>>> Do $root.$devices.Screen.$visible.$assign(kTrue)
>>>> Do $root.$prefs.$mapdmltodam. $assign("SQLITEDAM") 
>>>> 
>>>> 
>>>> I also have the following which should not affect the conversion
>>>> 
>>>> Calculate $prefs.$printernotify as kPrtNoteNoMsg ## to stop printer message coming when user Return? to omnis from another app
>>>> Calculate $devices.PDF.$visible as kTrue
>>>> 
>>>> Have you set the library to dmiemulation to true OK (item 6 on the notes).
>>>> 
>>>> Is the note 7 showing you the conversion routine OK. During processing it does give you various things to look at
>>>> 
>>>> Martin
>>>> 
>>>>> On 30 Apr 2021, at 16:27, Juan Bofill <juanbofillaba at gmail.com <mailto:juanbofillaba at gmail.com><mailto:juanbofillaba at gmail.com <mailto:juanbofillaba at gmail.com>>> wrote:
>>>>> 
>>>>> 
>>>>> Hi
>>>>> 
>>>>> Having problems with the build in conversion to SQLite. I put the code:
>>>>> 
>>>>> Add or uncomment in task $construct at the start
>>>>> 
>>>>> 1)  Do $root.$prefs.$scale.$assign(100)
>>>>> 
>>>>> 2)  Do $root.$prefs.$alwaysshowmainmenu.$assign(kTrue) ## Not available in 4.2? Should keep the menues
>>>>> 
>>>>> visable
>>>>> 
>>>>> 3)  Do $root.$prefs.$oldlistsearching.$assign(kTrue) ## search list correctly when highlighted
>>>>> 
>>>>> 4)  Do $root.$devices.Screen.$visible.$assign(kTrue)
>>>>> 
>>>>> Do $root.$prefs.$mapdmltodam. $assign("SQLITEDAM") 
>>>>> 
>>>>> In the $construct of the STARTUP task. Is that correct?
>>>>> 
>>>>> Thanks!
>>>>> 
>>>> 
>>> 
>>> _____________________________________________________________
>>> Manage your list subscriptions at http://lists.omnis-dev.com <http://lists.omnis-dev.com/>
>>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com <mailto:omnisdev-en at lists.omnis-dev.com>
> 
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Mon, 3 May 2021 23:17:02 +0000
> From: Daniel Sananes <daniel.s at kopparbergs.se>
> To: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
> Subject: Sv: SQL 10.2
> Message-ID:
> 	<HE1PR04MB30193E1A9C2D3E45C430BB99E25B9 at HE1PR04MB3019.eurprd04.prod.outlook.com>
> 	
> Content-Type: text/plain; charset="utf-8"
> 
> I could not do it either.
> A SQLite database was created but without any correct data or field and file names.
> Exporting DML tab-delimited files and importing to a manually created SQLite worked quick and flawless.
> 
> Daniel
> 
> -----Ursprungligt meddelande-----
> Fr?n: omnisdev-en <omnisdev-en-bounces at lists.omnis-dev.com> F?r Juan Bofill
> Skickat: den 3 maj 2021 20:44
> Till: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
> ?mne: Re: SQL 10.2
> 
> Trying to import from DML to SQLite and can not do it. Tried with and without the conversion tool dragging files from the Browser Sql sessions that are open. Must be doing something wrong.
> 
> Juan
> 
>> On May 2, 2021, at 9:23 AM, Juan Bofill <juanbofillaba at gmail.com> wrote:
>> 
>> Hi Martin
>> 
>> I must be doing something very wrong. I created a DML lib and data 
>> with two FILE formats and total 0f 12 records to
>> 
>>> On May 1, 2021, at 8:31 AM, Martin Luce via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
>>> 
>>> 
>>> 
>>>> Begin forwarded message:
>>>> 
>>>> From: Martin Luce <martinluce at eclipse.co.uk 
>>>> <mailto:martinluce at eclipse.co.uk>>
>>>> Subject: Re: SQL 10.2
>>>> Date: 1 May 2021 at 11:10:35 BST
>>>> To: Juan Bofill <juanbofillaba at gmail.com 
>>>> <mailto:juanbofillaba at gmail.com>>
>>>> 
>>>> Yes, that is what I have. but you have as one line Do 
>>>> $root.$devices.Screen.$visible.$assign(kTrue)Do 
>>>> $root.$prefs.$mapdmltodam. $assign("SQLITEDAM?) as one line. It 
>>>> should be 2 as Do $root.$devices.Screen.$visible.$assign(kTrue)
>>>> Do $root.$prefs.$mapdmltodam. $assign("SQLITEDAM")
>>>> 
>>>> 
>>>> I also have the following which should not affect the conversion
>>>> 
>>>> Calculate $prefs.$printernotify as kPrtNoteNoMsg ## to stop printer 
>>>> message coming when user Return? to omnis from another app Calculate 
>>>> $devices.PDF.$visible as kTrue
>>>> 
>>>> Have you set the library to dmiemulation to true OK (item 6 on the notes).
>>>> 
>>>> Is the note 7 showing you the conversion routine OK. During 
>>>> processing it does give you various things to look at
>>>> 
>>>> Martin
>>>> 
>>>>> On 30 Apr 2021, at 16:27, Juan Bofill <juanbofillaba at gmail.com <mailto:juanbofillaba at gmail.com><mailto:juanbofillaba at gmail.com <mailto:juanbofillaba at gmail.com>>> wrote:
>>>>> 
>>>>> 
>>>>> Hi
>>>>> 
>>>>> Having problems with the build in conversion to SQLite. I put the code:
>>>>> 
>>>>> Add or uncomment in task $construct at the start
>>>>> 
>>>>> 1)  Do $root.$prefs.$scale.$assign(100)
>>>>> 
>>>>> 2)  Do $root.$prefs.$alwaysshowmainmenu.$assign(kTrue) ## Not 
>>>>> available in 4.2? Should keep the menues
>>>>> 
>>>>> visable
>>>>> 
>>>>> 3)  Do $root.$prefs.$oldlistsearching.$assign(kTrue) ## search list 
>>>>> correctly when highlighted
>>>>> 
>>>>> 4)  Do $root.$devices.Screen.$visible.$assign(kTrue)
>>>>> 
>>>>> Do $root.$prefs.$mapdmltodam. $assign("SQLITEDAM")
>>>>> 
>>>>> In the $construct of the STARTUP task. Is that correct?
>>>>> 
>>>>> Thanks!
>>>>> 
>>>> 
>>> 
>>> _____________________________________________________________
>>> Manage your list subscriptions at http://lists.omnis-dev.com 
>>> <http://lists.omnis-dev.com/> Start a new message -> 
>>> mailto:omnisdev-en at lists.omnis-dev.com 
>>> <mailto:omnisdev-en at lists.omnis-dev.com>
> 
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 
> 
> ------------------------------
> 
> Message: 3
> Date: Mon, 3 May 2021 22:30:51 -0400
> From: Juan Bofill <juanbofillaba at gmail.com>
> To: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
> Subject: Re: SQL 10.2
> Message-ID: <7A89F923-6474-4C45-97A1-F11B5727E55C at gmail.com>
> Content-Type: text/plain;	charset=utf-8
> 
> Hi Daniel
> 
> Thanks for sharing!
> 
> Juan 
> 
>> On May 3, 2021, at 7:17 PM, Daniel Sananes via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
>> 
>> I could not do it either.
>> A SQLite database was created but without any correct data or field and file names.
>> Exporting DML tab-delimited files and importing to a manually created SQLite worked quick and flawless.
>> 
>> Daniel
>> 
>> -----Ursprungligt meddelande-----
>> Fr?n: omnisdev-en <omnisdev-en-bounces at lists.omnis-dev.com <mailto:omnisdev-en-bounces at lists.omnis-dev.com>> F?r Juan Bofill
>> Skickat: den 3 maj 2021 20:44
>> Till: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com <mailto:omnisdev-en at lists.omnis-dev.com>>
>> ?mne: Re: SQL 10.2
>> 
>> Trying to import from DML to SQLite and can not do it. Tried with and without the conversion tool dragging files from the Browser Sql sessions that are open. Must be doing something wrong.
>> 
>> Juan
>> 
>>> On May 2, 2021, at 9:23 AM, Juan Bofill <juanbofillaba at gmail.com> wrote:
>>> 
>>> Hi Martin
>>> 
>>> I must be doing something very wrong. I created a DML lib and data 
>>> with two FILE formats and total 0f 12 records to
>>> 
>>>> On May 1, 2021, at 8:31 AM, Martin Luce via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
>>>> 
>>>> 
>>>> 
>>>>> Begin forwarded message:
>>>>> 
>>>>> From: Martin Luce <martinluce at eclipse.co.uk 
>>>>> <mailto:martinluce at eclipse.co.uk <mailto:martinluce at eclipse.co.uk>>>
>>>>> Subject: Re: SQL 10.2
>>>>> Date: 1 May 2021 at 11:10:35 BST
>>>>> To: Juan Bofill <juanbofillaba at gmail.com <mailto:juanbofillaba at gmail.com> 
>>>>> <mailto:juanbofillaba at gmail.com <mailto:juanbofillaba at gmail.com>>>
>>>>> 
>>>>> Yes, that is what I have. but you have as one line Do 
>>>>> $root.$devices.Screen.$visible.$assign(kTrue)Do 
>>>>> $root.$prefs.$mapdmltodam. $assign("SQLITEDAM?) as one line. It 
>>>>> should be 2 as Do $root.$devices.Screen.$visible.$assign(kTrue)
>>>>> Do $root.$prefs.$mapdmltodam. $assign("SQLITEDAM")
>>>>> 
>>>>> 
>>>>> I also have the following which should not affect the conversion
>>>>> 
>>>>> Calculate $prefs.$printernotify as kPrtNoteNoMsg ## to stop printer 
>>>>> message coming when user Return? to omnis from another app Calculate 
>>>>> $devices.PDF.$visible as kTrue
>>>>> 
>>>>> Have you set the library to dmiemulation to true OK (item 6 on the notes).
>>>>> 
>>>>> Is the note 7 showing you the conversion routine OK. During 
>>>>> processing it does give you various things to look at
>>>>> 
>>>>> Martin
>>>>> 
>>>>>> On 30 Apr 2021, at 16:27, Juan Bofill <juanbofillaba at gmail.com <mailto:juanbofillaba at gmail.com><mailto:juanbofillaba at gmail.com <mailto:juanbofillaba at gmail.com>><mailto:juanbofillaba at gmail.com <mailto:juanbofillaba at gmail.com><mailto:juanbofillaba at gmail.com <mailto:juanbofillaba at gmail.com>>>> wrote:
>>>>>> 
>>>>>> 
>>>>>> Hi
>>>>>> 
>>>>>> Having problems with the build in conversion to SQLite. I put the code:
>>>>>> 
>>>>>> Add or uncomment in task $construct at the start
>>>>>> 
>>>>>> 1)  Do $root.$prefs.$scale.$assign(100)
>>>>>> 
>>>>>> 2)  Do $root.$prefs.$alwaysshowmainmenu.$assign(kTrue) ## Not 
>>>>>> available in 4.2? Should keep the menues
>>>>>> 
>>>>>> visable
>>>>>> 
>>>>>> 3)  Do $root.$prefs.$oldlistsearching.$assign(kTrue) ## search list 
>>>>>> correctly when highlighted
>>>>>> 
>>>>>> 4)  Do $root.$devices.Screen.$visible.$assign(kTrue)
>>>>>> 
>>>>>> Do $root.$prefs.$mapdmltodam. $assign("SQLITEDAM")
>>>>>> 
>>>>>> In the $construct of the STARTUP task. Is that correct?
>>>>>> 
>>>>>> Thanks!
>>>>>> 
>>>>> 
>>>> 
>>>> _____________________________________________________________
>>>> Manage your list subscriptions at http://lists.omnis-dev.com <http://lists.omnis-dev.com/> 
>>>> <http://lists.omnis-dev.com/ <http://lists.omnis-dev.com/>> Start a new message -> 
>>>> mailto:omnisdev-en at lists.omnis-dev.com <mailto:omnisdev-en at lists.omnis-dev.com> 
>>>> <mailto:omnisdev-en at lists.omnis-dev.com <mailto:omnisdev-en at lists.omnis-dev.com>>
>> 
>> _____________________________________________________________
>> Manage your list subscriptions at http://lists.omnis-dev.com <http://lists.omnis-dev.com/> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com <mailto:omnisdev-en at lists.omnis-dev.com> 
>> _____________________________________________________________
>> Manage your list subscriptions at http://lists.omnis-dev.com <http://lists.omnis-dev.com/>
>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com <mailto:omnisdev-en at lists.omnis-dev.com>
> 
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> 
> 
> ------------------------------
> 
> End of omnisdev-en Digest, Vol 46, Issue 3
> ******************************************



More information about the omnisdev-en mailing list