Feature Request: Batch editing

Discussion of the iOS App Dive Log
Post Reply
Simone
Posts: 5
Joined: Sat Mar 09, 2013 9:00 am

Feature Request: Batch editing

Post by Simone »

First of all: thanks for a great piece of SW!

I havn't been diving for some time and are starting now, so I have just imported 170 dives, where "import" means typing in the most important pieces of information. What would be really handy in that context is the option to batch edit. I have whole batches of dives with the same buddy, same equipment etc. As things are, I don't bother to register them, but if there were an option to batch edit dives, I could easily add lots of information.

Cheers
Simone
support
Posts: 914
Joined: Wed Mar 31, 2010 4:35 pm

Re: Feature Request: Batch editing

Post by support »

Hi Simone,

Thanks for the suggestion. This is something that I have been looking at adding to Dive Log. In concept it is simple, but it's implementation does present some challenges. I will keep it on the "to do" list though as I certainly understand the value of this (I had to do a similar thing when I first developed dive log but with over 1,000 dives that I didn't already have in an importable electronic format ... fortunately most of my dives were already in another electronic format so I didn't have to do the other ~2,000 dives manually).

One feature that you can use that may help is to create a new dive using an existing dive as a template. When you tap the "+" to entry a new dive you can pick an existing dive that already has information like Buddies, equipment, etc. that matches the dive you are adding and Dive Log will transfer that information and you can then just edit the differences in the new dive. Obviously this is not as good as batch editing, but until I can get that implemented it might save you some time and allow a more complete electronic log.

Cheers,

Greg
Simone
Posts: 5
Joined: Sat Mar 09, 2013 9:00 am

Re: Feature Request: Batch editing

Post by Simone »

Thanks, Greg
I found a solution in the meantime: since it's a SQLite database, you just get an according editor and fiddle with the database itself ... with some knowledge and a backup, of course :D

Cheers, Simone
support
Posts: 914
Joined: Wed Mar 31, 2010 4:35 pm

Re: Feature Request: Batch editing

Post by support »

That will work, but you do need to be careful (specially if you want to sync your data with a desktop system or our upcoming iCloud sync solution). In particular, every field has an "UUID" and an "Updated" field that are used during sync operations. Any new records must have a "UUID" that is guaranteed globally (across devices) unique. That UUID should never change for the life of that record. Also, each record's "Updated" timestamp should be adjusted when ever the record is modified (otherwise it might not be considered "newer" and the changes will be ignored during a sync).

The time stamp is a:

• yyyy-MM-dd'T'HH:mm:ss UNICODE LOCALE DATA MARKUP LANGUAGE formatted date interpreted in UTC/GMT time zone (i.e. GMT-00:00) (see: http://unicode.org/reports/tr35/tr35-6. ... t_Patterns)

and the UUID is a 128 bit Globally Unique Identifier in the form:

• 68753A44-4D6F-1226-9C60-0050E4C00067 and can generally be generated using developer API's on your system of choice. (see: http://en.wikipedia.org/wiki/UUID).

There are also some interrelationships between records in the database that need to be carefully maintained (for example the ID from the Place, City and Country tables are used to reference those tables from the Logbook table). If those ID change then you need to reflect those changes in the Logbook table.

Feel free to contact us at our support email address (support 'at' moremobilesoftware 'dot' com) if you need more information.

Cheers,

Greg
Simone
Posts: 5
Joined: Sat Mar 09, 2013 9:00 am

Re: Feature Request: Batch editing

Post by Simone »

Thanks, Greg
I took all that into consideration, except for the "Updated". Do I assume correctly that I do not have to adjust the "Updated" field, if I do not sync but overwrite the data on the iPhone? As for the rest, I do not add records manually, I added everything via the interface and only change information in the db, so that should be save.

Cheers
Simone
support
Posts: 914
Joined: Wed Mar 31, 2010 4:35 pm

Re: Feature Request: Batch editing

Post by support »

Hi Simone,

That is correct. If you always overwrite the entire logbook on your phone and do not "Two Way Sync" with Dive Log Manager or sync with other desktop software such as Diving Log 5.0 or MacDive, you can ignore the Updated field. Once the same database is on both (all) devices, then you can start syncing again.

Cheers,
Janice
Simone
Posts: 5
Joined: Sat Mar 09, 2013 9:00 am

Re: Feature Request: Batch editing

Post by Simone »

That's what I thought, great, thanks.
Simone
Post Reply