DonationCoder.com Forum

DonationCoder.com Software => Older DC Contests and Challenges => N.A.N.Y. 2011 => Topic started by: skwire on December 26, 2010, 10:07 PM

Title: NANY 2011 Release: Snap DB
Post by: skwire on December 26, 2010, 10:07 PM
NANY 2011 (https://www.donationcoder.com/forum/index.php?board=299.0) Entry Information

Application Name Snap DB
Short Description Simple, flat-file database/list app
Supported OSes Windows 7.  Probably works, but not tested, on Windows XP/Vista/8.
Web Page Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php)
Download Link Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
Author Jody Holmes - Skwire Empire (http://skwire.dcmembers.com)

Description
Simple, flat-file database app.

Screenshots
[ You are not allowed to view attachments ]

[ You are not allowed to view attachments ]

Usage
Installation
Download the zip file and extract its contents into a new folder.  Run SnapDB.exe to start the application.

Using the Application
Pretty self-explanatory; right-click things and use the menu and toolbar buttons.  

Uninstallation
Delete the folder you unzipped it to.  The application doesn't write to the registry.

Known Issues
This is an app I wrote a while back and use for lists of almost everything (games I own, books to read, etc.).  I decided to pretty it up for a NANY 2011 release.  The feature-set is hardly finished and I plan to further develop this.
Title: Re: NANY 2011 Release: Snap DB
Post by: kyrathaba on December 26, 2010, 10:18 PM
Nice screenshot, Skwire.  I like apps with a clean interface, that are simple to use, yet useful.  Might be able to put this to work.  I notice the file extension is .snp.  Is it in essence a text file, or non-text but flat in the sense that there is no internal hierarchy of tables, etc., such as in a structured database?  In other words, could the files created/used by the program be opened in a text editor?
Title: Re: NANY 2011 Release: Snap DB
Post by: mouser on December 26, 2010, 10:18 PM
looks fantastic.

couple of quick suggestions:

Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on December 26, 2010, 10:28 PM
Nice screenshot, Skwire.  I like apps with a clean interface, that are simple to use, yet useful.  Might be able to put this to work.  I notice the file extension is .snp.  Is it in essence a text file, or non-text but flat in the sense that there is no internal hierarchy of tables, etc., such as in a structured database?  In other words, could the files created/used by the program be opened in a text editor?

Yes, the format is pretty simple to figure out.  The app was inspired by a couple of apps.  One is called List² (http://www.bitride.com/freeware/listsquared/info.php) and the other was called Table Tool (http://www.zenosys.com/tabtool/index.html) which, sadly, no longer exists though you can still download the app from web.archive.org.  The format is very similar to what those apps use(d).

  • 1) on first use, in help file, and maybe even at bottom statusbar on startup it should explain "right-click on column titles to rename them"
  • 2) have it auto-reload the last database file, OR the database file in the current directory if no config file entry for last database file exists; one reason this would be SO useful is because it would let users SHARE the exe+database with someone by sending it to them, and all they would have to do is run the exe to have the data loaded and ready.

Can do.
Title: Re: NANY 2011 Release: Snap DB
Post by: Ath on December 27, 2010, 06:06 AM
It's great :Thmbsup:
One (big, in size) feature request would be to be able to sequentially output the records to print in some form, so I could enter my christmas card addresses into SnapDB and print them nicely (for next years cards ofcourse)
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on December 27, 2010, 11:05 PM
@Ath: Thanks for the feedback; basic printing is on the roadmap.
Title: Re: NANY 2011 Release: Snap DB
Post by: mouser on December 28, 2010, 11:26 AM
minor suggestion:
maybe justify columns on data should really justify on max(data,column) or offer a third chioce for justify on both.
Title: Re: NANY 2011 Release: Snap DB
Post by: mouser on December 28, 2010, 11:34 AM
I agree printing would be a really nice feature, but it might be hard to implement.

I can think of two options:
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on December 28, 2010, 11:45 AM
Any printing I add will be very simple text output...maybe a simple HTML output, too.  However, the file format is such that anybody and any language can parse it and come up with their own exports.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on December 28, 2010, 11:57 AM
Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.0.1 - 2010-12-28
        ! Fixed toolbar glyph issue under Windows 7.  (Thanks, mouser)
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on December 30, 2010, 03:49 PM
Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.0.2 - 2010-12-28
    + Last loaded database is automatically loaded after application startup.
    + Snap DB will automatically load an .snp file if both of the following are true:
          1) No config.ini file is present.
          2) There is a .snp file in the same folder as the SnapDB.exe file.
      This allows you to bundle the SnapDB.exe file and a .snp database file
      together for easy viewing.  (Thanks, mouser)
Title: Re: NANY 2011 Release: Snap DB
Post by: mouser on December 30, 2010, 03:54 PM
This allows you to bundle the SnapDB.exe file and a .snp database file together for easy viewing.

great!
Title: Re: NANY 2011 Release: Snap DB
Post by: techidave on December 30, 2010, 04:08 PM
This looks great on a first look skwire!  I don't know how useful this would be but could it also import say a csv or txt file?

I must hurry home to play with it some more  :up:
Title: Re: NANY 2011 Release: Snap DB
Post by: techidave on December 30, 2010, 04:47 PM
whoops, may have found a glitch.

I added two columns after the default of 4 columns but there is no option to rename them or even add another new column on either side.  If I add a column to the right of the 4th column, then I get the option to rename it.

Add on:  I also cannot delete these columns
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on December 30, 2010, 10:06 PM
This looks great on a first look skwire!  I don't know how useful this would be but could it also import say a csv or txt file?

Yes, both are easy to do and are on the immediate roadmap.

whoops, may have found a glitch.
I added two columns after the default of 4 columns but there is no option to rename them or even add another new column on either side.  If I add a column to the right of the 4th column, then I get the option to rename it.
Add on:  I also cannot delete these columns

I can't seem to reproduce.  Can you give your exact sequence of right-clicks and such (and the position of your clicks)?
Title: Re: NANY 2011 Release: Snap DB
Post by: techidave on December 30, 2010, 10:15 PM
i will try to give a screenshot but let me see if I can clarify it first.

by default snapdb gives you 4 columns.  If you create a new column to the left of any of the 4 original columns, then it works like it should.

if you add a new column to the right of the 4th column, then that is when I had the problems.
Title: Re: NANY 2011 Release: Snap DB
Post by: techidave on December 30, 2010, 10:19 PM
I was just playing with it again and if I make the window wider to get rid of the horizontal scroll bar then it works like it should.  how weird.
Title: Re: NANY 2011 Release: Snap DB
Post by: techidave on December 30, 2010, 10:42 PM
ok, skwire here are some screenshots.  I decided to zip them to save space.  also included in the zip file are details of the screenshots.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 02, 2011, 07:11 PM
Sorry about the delay, techidave.  I've been able to recreate this but I'm not sure I can fix it elegantly since this appears to be a listview bug and not something within my code.  I'll keep at it.  For now, resize the form or resize the columns as that appears to fix things.  Very strange issue.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 07, 2011, 12:06 PM
Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.0.3 - 2011-01-07
    + Added tab-delimited text file import.
    + Added CSV file import.
    + Added ability to paste in tab-delimited data directly from the "Edit" menu.
    ! Last saved file didn't work from the "Recent" menu.
Title: Re: NANY 2011 Release: Snap DB
Post by: mouser on January 07, 2011, 12:07 PM
nice update  :Thmbsup:
Title: Re: NANY 2011 Release: Snap DB
Post by: alexsan01 on January 09, 2011, 10:32 PM
Hey, I just saw your software on the NANY list. I have been looking for this exactly tool for a while. I got a Phone numbers list on Excel and I was trying to find for a tool that would let me filter the records and instantly find a number, kinda like the application "Everything" (check it out if you haven't, really useful), in which you just open the window and start typing the name of file you are looking for and it shows the result instantly.
Can I have a small request? Can you add an option to automatically place the cursor on the filter, with the filter option enabled and if possible with certain column already selected? This would prove useful if you just want to open the application and inmediatly start typing what you are looking for. Or maybe you can add a "ALL COLUMNS" in the column selection so you can search for a specific text in any column, and have it selected by default.

Thank you for this useful application. Good luck in the NANY event.
Title: Re: NANY 2011 Release: Snap DB
Post by: mouser on January 09, 2011, 10:39 PM
Can you add an option to automatically place the cursor on the filter, with the filter option enabled and if possible with certain column already selected?

Maybe cleanest solution is to allow ctrl+F to put cursor in search box and enable the filter (and maybe ctrl+F again to toggle it off).
I like the ALL COLUMNS idea; and it could remember the last column selected in the filter.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 09, 2011, 10:43 PM
The "any/all column" functionality was on my roadmap.  Alexsan01, would a ctrl-f hotkey to toggle the filter mode be an acceptable solution?
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 09, 2011, 11:53 PM
Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.0.4 - 2011-01-10
    + Added an extra choice in the Filter dropdown called "Any column."  This will
      allow you filter using a string that matches any column.
    + Added ability to save chosen filter per-database.  This means, to make use
      of this feature, you will need to set the filter and then save the database
      file on each database you wish to use this on.  (Thanks, alexsan01)
    + Added ctrl-f hotkey to toggle Filter mode.  (Thanks, mouser)
    + Added View > Filter mode menu option.


alexsan01, let me know if this will work for you.  Thanks.
Title: Re: NANY 2011 Release: Snap DB
Post by: alexsan01 on January 10, 2011, 09:31 AM
Yes! This is exactly what I needed. Thank you for the quick response and the quick coding. Did you use Auto Hotkey to program this app? I like AutoIt Scripting, but if the AutoHotkey is capable of this type of software, then I'll start learning Auto Hotkey.

Thanks again.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 10, 2011, 09:45 AM
Yes, all the software on my website is written in AutoHotkey.  Feel free to check the links in my signature to get an idea of what can be accomplished with AHK.
Title: Re: NANY 2011 Release: Snap DB
Post by: alexsan01 on January 10, 2011, 10:11 AM
I just noticed one thing. I sent the exe along with a .snp to a coworker. By default, the software tried to open the last used database because the config.ini was present, and it showed the path of the database on the titlebar, but it was not able to open it because it was looking for it in a path that didn't exist on that machine. It might be a good idea to open the database inside the folder (if there is one) if the last one used it's not available. Or to let the user know that the app could not find the .snp file.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 10, 2011, 10:16 AM
For now, don't include the config.ini file when you send it to a friend.  Just the .snp and the SnapDB.exe file.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 10, 2011, 06:25 PM
Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.0.5 - 2011-01-10
    * Made Snap DB's save routine more robust and fault-tolerant.  (Thanks, mouser)
    * You can now pass .snp files to the SnapDB.exe and it will load them.
    * Snap DB now allows multiple instances of the viewer to run.
    ! If the Last_File value is invalid, SnapDB will still automatically load the
      first .snp file found in the the SnapDB.exe folder.  (Thanks alexsan01)
Title: Re: NANY 2011 Release: Snap DB
Post by: mouser on January 10, 2011, 06:26 PM
nice  :Thmbsup:
Title: Re: NANY 2011 Release: Snap DB
Post by: Perry Mowbray on January 10, 2011, 11:42 PM
For now, don't include the config.ini file when you send it to a friend.  Just the .snp and the SnapDB.exe file.

Would a "Send to" command work in this instance?
Title: Re: NANY 2011 Release: Snap DB
Post by: mouser on January 10, 2011, 11:46 PM
one thing i wanted to add -- because snapdb uses .dcupdate files for update checking -- advanced users could actually make your own custom package of snapdb and your database, and modify the .dcupdate file so that your friends check YOUR website for an updated snapdb and datafile combo.

good for if you want to distribute a custom data set and viewer with update support.
Title: Re: NANY 2011 Release: Snap DB
Post by: Stoic Joker on January 11, 2011, 07:28 AM
Found a bit of a bugg and a request (both related).

While the auto open of db is nice, it's also a tad hard to defeat. I was trying to do a quick test with some of my .csv files, but had created a test.snp to play with. It kept opening. I renamed the file to test.snpk and it still opened the file (extension wasn't wrong enough?). However test.snk did successfully not open so I could try to do other thinks with it.

So, is that a bugg...or am I doing it wrong?

On the request side, does a close current file/db sound reasonable?
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 11, 2011, 09:08 AM
It will only auto-open a file if it's in the same folder as the SnapDB.exe.  Personally, I create a \databases folder and put my .snp files in there.

On the request side, does a close current file/db sound reasonable?

Sure, can do, but I'm not sure what purpose it would serve?
Title: Re: NANY 2011 Release: Snap DB
Post by: Nikita on January 11, 2011, 02:39 PM
It would be great if it were possible to change the font size. Now it is very small (at least to my eyes).
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 11, 2011, 02:47 PM
Already working on it.   :D  Colours, too.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 11, 2011, 06:35 PM
Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.0.6 - 2011-01-11
    + The listview font face, style and color are now configurable under the View >
      Options dialog.
    + Made the "Load last database" feature an option under View > Options.
    + Option to keep a .bak backup after saving a database.  (Thanks, mouser)


I also changed up the toolbar glyphs.  What do you all think?  Do you like these better or the original ones?

New
[ You are not allowed to view attachments ]
Old
[ You are not allowed to view attachments ]
Title: Re: NANY 2011 Release: Snap DB
Post by: techidave on January 11, 2011, 06:37 PM
do the toolbars have the tips on the mouseover?  if so, I think that I can make that work.
Title: Re: NANY 2011 Release: Snap DB
Post by: techidave on January 11, 2011, 06:41 PM
Sorry, I was being lazy.  Yes, the tips do showup when you mouserover the icons.  haven't tried the new version yet.
Title: Re: NANY 2011 Release: Snap DB
Post by: Nikita on January 11, 2011, 08:17 PM
    + The listview font face, style and color are now configurable under the View >
      Options dialog.
    + Made the "Load last database" feature an option under View > Options.
    + Option to keep a .bak backup after saving a database.  (Thanks, mouser)
 

Wow! You are quick like an electric broom. Or perhaps even quicker... :) I'm impressed! That's great! :up: Thanks a lot! Your app will definitely find a place in my garage...


    I also changed up the toolbar glyphs.  What do you all think?  Do you like these better or the original ones?

I like new ones better.

Suggestion: An option to close the 'Add record' dialogue by clicking the Enter key (like it works in most apps).
Title: Re: NANY 2011 Release: Snap DB
Post by: cranioscopical on January 11, 2011, 08:36 PM
I also changed up the toolbar glyphs.  What do you all think?  Do you like these better or the original ones?


I prefer the new.
Title: Re: NANY 2011 Release: Snap DB
Post by: worstje on January 11, 2011, 10:33 PM
Not a user, but I figured I'd give my opinion on the toolbar glyphs. I think the new are nice, but that the cyan background is a bit too much. It takes up a lot of the image and is the brightest color in there, detracting from the bit of the glyphs that really denote the meaning of the icon. Does that make sense?
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 12, 2011, 12:10 AM
Suggestion: An option to close the 'Add record' dialogue by clicking the Enter key (like it works in most apps).

Glaring oversight on my part.   :(

Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.0.7 - 2011-01-12
    + Made the add/update/insert button default when adding a record so you can
      press Enter instead of having to click it.  (Thanks, Nikita)
Title: Re: NANY 2011 Release: Snap DB
Post by: Nikita on January 12, 2011, 06:29 AM
Thanks, Skwire!  :up:

Suggestion: An option to open the selected record ('Update record' dialogue) not only with a double click but also with the Enter key.
Title: Re: NANY 2011 Release: Snap DB
Post by: Stoic Joker on January 12, 2011, 06:34 AM
It will only auto-open a file if it's in the same folder as the SnapDB.exe.  Personally, I create a \databases folder and put my .snp files in there.

Understood, my curiosity was only in regard to it auto-opening a file in the same folder with the wrong (.snpk) file extension.

On the request side, does a close current file/db sound reasonable?

Sure, can do, but I'm not sure what purpose it would serve?

Well, I did allow for the possibility that I was doing it wrong... :) ...But I was looking at the possibility of bouncing through multiple .csv files, and allowing for either combining them (which I believe already works), or ("closing" the "file" ) clearing them and starting over without having to close and reopen the program.

One other confusing behavior, was the programs reaction to drag-n-droping a .csv file in the client window. While it appeared to (be trying to) process the file, the result was a blank ListView. Could a .csv/.tsv file drop be made to trigger an import?


On a brighter note: I do like the new glyphs.
Title: Re: NANY 2011 Release: Snap DB
Post by: Beth UK on January 12, 2011, 08:38 AM
Liking this!

Would be great if:

:: Double clicking in an empty row opened the 'add record' dialogue (whereas currently it opens the 'edit record' dialogue
:: There was the possibility to use a basic 'add and total' formula for any figures entered in a column

 :)
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 12, 2011, 12:50 PM
Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.0.8 - 2011-01-12
    + Dropping CSV & TSV/TXT files on the list now works.  (Thanks, Stoic Joker)
    + Double-clicking a "non-row" area in the listview will trigger the "Add Record"
      dialog.  This is the area below the last record in the list.  (Thanks, Beth UK)
    + Added a "Sum column" option to the listview header menu.  This will attempt to
      sum any numbers found in the column, display the total and offer to copy the
      total to the user's clipboard.  (Thanks, Beth UK)
    * Improved the CSV/TSV/TXT import to automatically add new columns if needed.
      This applies to the pasting in of tab-delimited data as well.


Understood, my curiosity was only in regard to it auto-opening a file in the same folder with the wrong (.snpk) file extension.

I'll test this a bit but it's probably an AHK file-loop quirk.

Well, I did allow for the possibility that I was doing it wrong... :) ...But I was looking at the possibility of bouncing through multiple .csv files, and allowing for either combining them (which I believe already works), or ("closing" the "file" ) clearing them and starting over without having to close and reopen the program.

Maybe the "New database" toolbar button will accomplish what you're after?

One other confusing behavior, was the programs reaction to drag-n-droping a .csv file in the client window. While it appeared to (be trying to) process the file, the result was a blank ListView. Could a .csv/.tsv file drop be made to trigger an import?

Fixed and added in the above build.   :D  Lots of improvements to the CSV/TSV/TXT import routines.  Please let me know if the functionality is what you had in mind.

:: Double clicking in an empty row opened the 'add record' dialogue (whereas currently it opens the 'edit record' dialogue
:: There was the possibility to use a basic 'add and total' formula for any figures entered in a column

Both added in the latest build.  Please let me know if that's what you had in mind.
Title: Re: NANY 2011 Release: Snap DB
Post by: WobblyWombat on January 12, 2011, 03:31 PM
Hi, great program, I may actually get around to organising myself a little! 8)

Not sure if its a bug or user problem, but I made a list of my collection of cutlery, with columns for type, maker, materials etc. - then after entering data, decided I wanted to add a new column on the far left. However the data did not move with the columns, so the new column contained the data from my "Type" column, the column headed "Type" now contained the maker and so on (my last column was empty). Unfortunately I tried to restore it by deleting the "new column" thinking it would just revert, but that deleted the data as well.. (silly me, should've just renamed the headings!)
Hope that makes sense, I'll add screenshot if I can.
Thanks for your work, aside from that minor frustration I love it!

(http://i122.photobucket.com/albums/o260/wobbly_wombat/snapDB1.jpg)
(http://i122.photobucket.com/albums/o260/wobbly_wombat/snapDB2.jpg)
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 12, 2011, 05:57 PM
Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.0.9 - 2011-01-12
    + Added "Append column" toolbar button.
    * Due to some screwy listview bugs, I changed the "Insert column before/after"
      menu items to a single "Append column" item.  This will add a column to the
      end of your current columns.  Once added, simply drag the column to the
      position you want.


Not sure if its a bug or user problem, but I made a list of my collection of cutlery

What a strange bug.  I'm almost positive this is either a listview bug or a bug with how AutoHotkey handles the listview.  I tried writing code to handle it manually but it just introduced other issues.  So, ultimately, I have taken out the "Insert column before" and "Insert column after" items and replaced them with a single "Append column" item.  This will add a column at the end of your current columns.  Once added, simply drag that new column to the position you want.  I also added an "Append column" toolbar button.  Thanks for the bug report.

Title: Re: NANY 2011 Release: Snap DB
Post by: Beth UK on January 12, 2011, 06:22 PM

:: Double clicking in an empty row opened the 'add record' dialogue (whereas currently it opens the 'edit record' dialogue
:: There was the possibility to use a basic 'add and total' formula for any figures entered in a column

Both added in the latest build.  Please let me know if that's what you had in mind.



Love the 'click to add new record' - works well!

I think I was probably looking for something different with the formula thing - just a way to total all figures that might appear in a single column (e.g., 4+5+6+7+4 = 26). That way I could total up time spent on a task for instance, or quoted prices etc.

Could probably find some uses for this!
 :)
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 12, 2011, 06:28 PM
I think I was probably looking for something different with the formula thing - just a way to total all figures that might appear in a single column (e.g., 4+5+6+7+4 = 26). That way I could total up time spent on a task for instance, or quoted prices etc.

Hmmm...did you see the "Sum column" option when you right-click a column's header?  That will pop up a message box with the total of any numbers in the column.  Is that not what you wanted?
Title: Re: NANY 2011 Release: Snap DB
Post by: Stoic Joker on January 12, 2011, 06:29 PM
I'm almost positive this is either a listview bug or a bug with how AutoHotkey handles the listview.

I seem to recall that being a ListView control quirk - Ran into it once before - The rows are indexed independently of the columns.

Maybe temporarily create a second ListView with the updated (new) column arangement, and then stream the data into it before deleting the old control.
Title: Re: NANY 2011 Release: Snap DB
Post by: Beth UK on January 12, 2011, 06:34 PM
I think I was probably looking for something different with the formula thing - just a way to total all figures that might appear in a single column (e.g., 4+5+6+7+4 = 26). That way I could total up time spent on a task for instance, or quoted prices etc.

Hmmm...did you see the "Sum column" option when you right-click a column's header?  That will pop up a message box with the total of any numbers in the column.  Is that not what you wanted?

No - I missed it completely! But now I have seen it! Is there a way that instead of the total popping up in a window it can be inserted into a cell at the bottom of column in question - perhaps beneath a divider line or something? That would make it perfect for what I need!
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 12, 2011, 06:37 PM
Maybe temporarily create a second ListView with the updated (new) column arangement, and then stream the data into it before deleting the old control.

I took the easy (lazy?) way out and now only allow the appending of a new column to the end.  Once appended, the user can drag the new column wherever they want.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 13, 2011, 08:56 AM
No - I missed it completely! But now I have seen it! Is there a way that instead of the total popping up in a window it can be inserted into a cell at the bottom of column in question - perhaps beneath a divider line or something? That would make it perfect for what I need!

My hesitation is that I didn't intend for Snap DB to become a spreadsheet at all.  I mean, it's trivial to do what you want but then that summation line becomes part of the database information and its data would then be used in further calculations unless you were to delete that line.  It just seems a bit kludgy.  Does that make sense? 
Title: Re: NANY 2011 Release: Snap DB
Post by: TalksToPCs on January 13, 2011, 11:56 AM
Suggestion: An option to close the 'Add record' dialogue by clicking the Enter key (like it works in most apps).

Hi,

Great app!

I second Nikita's suggestion.
Though what I mean is that when I have selected a row, I'd like to edit it after hitting Enter.
I hate double clicking due to RSI.

I'd like to be able to duplicate a row, too.
The way I'm using it, I have lots of similar entries that need to be manually entered (or via a few snippets that I have created for this purpose).

TTP
Title: Re: NANY 2011 Release: Snap DB
Post by: Beth UK on January 13, 2011, 12:30 PM
No - I missed it completely! But now I have seen it! Is there a way that instead of the total popping up in a window it can be inserted into a cell at the bottom of column in question - perhaps beneath a divider line or something? That would make it perfect for what I need!

My hesitation is that I didn't intend for Snap DB to become a spreadsheet at all.  I mean, it's trivial to do what you want but then that summation line becomes part of the database information and its data would then be used in further calculations unless you were to delete that line.  It just seems a bit kludgy.  Does that make sense? 

Hi,
I totally accept your point. I was thinking that being able to display the total would make it ideal as a 'time logger' for a University course I am doing - I have to declare personal study time - and this would make it near perfect. Currently I use a spreadsheet which is OTT for what I need, and not portable either. My suggestion was more a personal whim and I don't want to drag you away from your overall goal for the project.  :)
Title: Re: NANY 2011 Release: Snap DB
Post by: cranioscopical on January 13, 2011, 02:32 PM
a 'time logger' for a University course I am doing
With a little ingenuity you might be able to use skwire's Bestimate for this. Worth a look here's a link. (http://skwire.dcmembers.com/wb/pages/software/bestimate.php)
Title: Re: NANY 2011 Release: Snap DB
Post by: Merrylic on January 14, 2011, 05:26 AM
Looks interesting. I will definitely check it out. Thanks!  :Thmbsup:
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 14, 2011, 11:43 AM
I second Nikita's suggestion.
Though what I mean is that when I have selected a row, I'd like to edit it after hitting Enter.
I hate double clicking due to RSI.

I've implemented this in the next build with F2 as the hotkey (instead of Enter).

I'd like to be able to duplicate a row, too.
The way I'm using it, I have lots of similar entries that need to be manually entered (or via a few snippets that I have created for this purpose).

Can do.  Would you want the duplicated row added to the bottom of the listview or directly below the row you're duplicating?
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 14, 2011, 12:40 PM
Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.1.1 - 2011-01-14
    + Added an "Edit record" menu item.  Also, the F2 hotkey will invoke this.  (Thanks, Nikita)
    + Added a "Duplicate record" menu item.  Also, the F5 hotkey will invoke this.  (Thanks, TalksToPCs)
Title: Re: NANY 2011 Release: Snap DB
Post by: alexsan01 on January 17, 2011, 10:04 AM
I found this weird bug. When I right click the header of the ninth column, I don't have the option to "rename column", instead I got the "Add record.." context menu.

Also, it could be a good idea to have the option to use the first row as column headers when you import from a CSV file.

Thank you for the lastest updates.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 17, 2011, 10:10 AM
I found this weird bug. When I right click the header of the ninth column, I don't have the option to "rename column", instead I got the "Add record.." context menu.

I've seen this occasionally.  Try resizing the columns or swapping positions and back.

Also, it could be a good idea to have the option to use the first row as column headers when you import from a CSV file.

I thought about making this an option since not all CSV files have the headers as their first row.

Thank you for the lastest updates.

You're welcome.  =]
Title: Re: NANY 2011 Release: Snap DB
Post by: TalksToPCs on January 20, 2011, 08:56 AM

I've implemented this in the next build with F2 as the hotkey (instead of Enter).

Great, thanks!

I'd like to be able to duplicate a row, too.
The way I'm using it, I have lots of similar entries that need to be manually entered (or via a few snippets that I have created for this purpose).


Can do.  Would you want the duplicated row added to the bottom of the listview or directly below the row you're duplicating?

I haven't really thought about it. From the point of view of my needs, either solution seems fine.

Thanks, I like Snap DB even more now!

TTP
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 20, 2011, 09:06 AM
Can do.  Would you want the duplicated row added to the bottom of the listview or directly below the row you're duplicating?

I haven't really thought about it. From the point of view of my needs, either solution seems fine.

I added that feature in the last build.  It adds the duplicated record below the focused one.  You can also use F5 as a hotkey for that.   :)

Thanks, I like Snap DB even more now!

Fantastic.  I'm glad you find it useful.   :D
Title: Re: NANY 2011 Release: Snap DB
Post by: Stoic Joker on January 21, 2011, 07:17 AM
One other confusing behavior, was the programs reaction to drag-n-droping a .csv file in the client window. While it appeared to (be trying to) process the file, the result was a blank ListView. Could a .csv/.tsv file drop be made to trigger an import?

Fixed and added in the above build.   :D  Lots of improvements to the CSV/TSV/TXT import routines.  Please let me know if the functionality is what you had in mind.

(Sorry it took me awhile to make it back here) Yes, perfect ... The dynamic column creation is also quite nice. Thank you.

Is there any chance of adding an option to the import function to allow the (header row) first line of the file to be used as the column names? Similar to the radio button dialog the Excel sort function uses to keep the column names on top of a spread sheet.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 21, 2011, 08:14 AM
(Sorry it took me awhile to make it back here) Yes, perfect ... The dynamic column creation is also quite nice. Thank you.

You're welcome.  Great to hear.

Is there any chance of adding an option to the import function to allow the (header row) first line of the file to be used as the column names? Similar to the radio button dialog the Excel sort function uses to keep the column names on top of a spread sheet.

This would interfere with the ability to drop multiple files onto the list so I was thinking of adding an entry to the context menu that would read something like "Convert record data to header names."  Follow me?
Title: Re: NANY 2011 Release: Snap DB
Post by: Stoic Joker on January 21, 2011, 08:36 AM
Is there any chance of adding an option to the import function to allow the (header row) first line of the file to be used as the column names? Similar to the radio button dialog the Excel sort function uses to keep the column names on top of a spread sheet.

This would interfere with the ability to drop multiple files onto the list so I was thinking of adding an entry to the context menu that would read somthing like "Convert record data to header names."  Follow me?
[/quote]

Ouch! Yes, can't be breaking things.

The "Convert record data to header names." sounds great (and much smoother), but it might be better to add it to the Edit menu where it can be found & used, and leave the context menu free for the other stuff that people are more apt to do frequently (Keep the menu less busy so they don't have to hunt for stuff).
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 21, 2011, 08:45 AM
The "Convert record data to header names." sounds great (and much smoother), but it might be better to add it to the Edit menu where it can be found & used, and leave the context menu free for the other stuff that people are more apt to do frequently (Keep the menu less busy so they don't have to hunt for stuff).

Well, the Edit menu and the context menu (right-clicking the listview) are the same menu.    :D  It's almost to the unwieldy point but I think we can squeeze one more entry onto it.
Title: Re: NANY 2011 Release: Snap DB
Post by: bob99 on January 21, 2011, 11:46 AM

SnapDB is great!  It's now much easier for me using it to get some lists into csv format than I was doing before.

Something I've noticed though...

I took the easy (lazy?) way out and now only allow the appending of a new column to the end.  Once appended, the user can drag the new column wherever they want.

I appended two columns, renamed each and drug them to the left between two existing columns.  When I exported to a csv and brought them up in Excel, the appended columns were still on the right side.  Not where I moved them to.
Title: Re: NANY 2011 Release: Snap DB
Post by: Stoic Joker on January 21, 2011, 01:12 PM
I appended two columns, renamed each and drug them to the left between two existing columns.  When I exported to a csv and brought them up in Excel, the appended columns were still on the right side.  Not where I moved them to.

I can confirm this behavior (using a plain text editor), the data is being saved based in the (column created or) row index order, not the order in which it is displayed. IIRC this is also typical ListView control behavior.

I'm thinking there is a function call/API to reindex the rows in a ListView control, but I can't think of it at the moment.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 22, 2011, 12:27 PM
SnapDB is great!  It's now much easier for me using it to get some lists into csv format than I was doing before.

Thanks for the kind words.  I'm glad you find it useful.

I appended two columns, renamed each and drug them to the left between two existing columns.  When I exported to a csv and brought them up in Excel, the appended columns were still on the right side.  Not where I moved them to.

Should be fixed in the most recent build.  Please test and let me know.  Thanks.

IIRC this is also typical ListView control behavior.
I'm thinking there is a function call/API to reindex the rows in a ListView control, but I can't think of it at the moment.

Yes, it's typical listview behaviour but I was able to manually get around it.

The "Convert record data to header names." sounds great (and much smoother)

Added in the latest build.

Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.1.2 - 2011-01-22
    + Column orders are now saved per database.
    + "Convert row data to header names" added to the Edit menu.  This is useful after importing a CSV file.
    * CSV exports should be more adherent to the CSV standard with regards to double-quotes and commas within the data bits.
    ! The column order for CSV exports didn't match up with the listview column order.  (Thanks, bob99)

Title: Re: NANY 2011 Release: Snap DB
Post by: DeVamp on January 24, 2011, 05:21 AM
Lovely piece of software again Skwire!  :-*  :up:

Would the following be possible:
(I haven't read the whole topic in detail, only a quick read)

If i create a new file (ctrl+n) and I don't change anything, and i drop a csv on it, could it be possible that you check the number of columns from the first row, and then create the exact number of columns and then add the data.

Because what happens now is the following:
I create a new file, and I get 4 columns.
When I drop a CSV on it with 7 columns, I end up with all the records with only 5 columns.

Here's the testdata:

Started On,Completed,Computer,Status,Total files,Infected,Scan Type
6/4/2008 3:17:53 PM,6/4/2008 3:40:09 PM,MYPC,Scan Complete,102660,0,Manual scan
6/4/2008 3:02:28 PM,6/4/2008 3:14:14 PM,MYPC,Scan Aborted,76046,0,Manual scan
6/3/2008 9:03:35 PM,6/3/2008 9:19:14 PM,MYPC,Scan Complete,99824,0,Manual scan


Oh, and could it be possible to define the "separator" per database?
So when I create a new database, I define ',' or ';' as separator. When I then drop a scv on it, it uses the configured separator.

One more thing (probably a bug):
If I drop a scv on it, the status doesn't change to "edited", so when I close snapdb, it doesn't save the data from the scv. :'(

Thanks. :-)
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 24, 2011, 10:19 AM
Lovely piece of software again Skwire!  :-*  :up:

Thanks.  =]

Because what happens now is the following:
I create a new file, and I get 4 columns.
When I drop a CSV on it with 7 columns, I end up with all the records with only 5 columns.

The sixth and seventh columns are actually there.  Just scroll to the right.  In the build you have, the fifth column gets auto-justified for some reason.  However, this issue has been fixed in my dev build.

Oh, and could it be possible to define the "separator" per database?
So when I create a new database, I define ',' or ';' as separator. When I then drop a scv on it, it uses the configured separator.

Any reason for this?  Is there some shortcoming to the CSV format?

One more thing (probably a bug):
If I drop a scv on it, the status doesn't change to "edited", so when I close snapdb, it doesn't save the data from the scv. :'(

This has also been addressed in my dev build.  I'm waiting on Gothi[c] to finish the member server move before uploading it.
Title: Re: NANY 2011 Release: Snap DB
Post by: DeVamp on January 24, 2011, 10:39 AM
Great for the fixes :-)

For the CSV : sometimes programs export data to "CSV", but they use a ; instead of a ,
It would be easy if those could be imported as well.
And sometimes an export contains "strings" with quotes.

Thanks anyway for the upcoming fixes :-)
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 24, 2011, 11:09 AM
For the CSV : sometimes programs export data to "CSV", but they use a ; instead of a ,

Silly programs...that's not a CSV file then.  =]

And sometimes an export contains "strings" with quotes.

FWIW, when exporting, Snap DB properly handles quotes and commas within the data bits.
Title: Re: NANY 2011 Release: Snap DB
Post by: bob99 on January 24, 2011, 12:00 PM
skwire,

Is there a maximum number of characters limit per field?
I went through the earlier posts and didn't see where it was mentioned.

Thanks,
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 24, 2011, 12:43 PM
Is there a maximum number of characters limit per field?

No, but only the first 260 characters are displayed in the listview though the entire field is saved.  There is no limit to the number of rows but, keep in mind, that saving and loading times will increase with larger listviews.  I have a test database of zip codes that is three columns and around 43,000 rows.  It takes around fourteen seconds to fully load on my computer.  Furthermore, there is a maximum of 200 columns allowed.  Does this answer your question?

Title: Re: NANY 2011 Release: Snap DB
Post by: bob99 on January 24, 2011, 01:50 PM
I appended two columns, renamed each and drug them to the left between two existing columns.  When I exported to a csv and brought them up in Excel, the appended columns were still on the right side.  Not where I moved them to.

Should be fixed in the most recent build.  Please test and let me know.  Thanks.

It works fine now. Forgot to let you know.
Title: Re: NANY 2011 Release: Snap DB
Post by: bob99 on January 24, 2011, 01:54 PM
Is there a maximum number of characters limit per field?

No, but only the first 260 characters are displayed in the listview though the entire field is saved.  There is no limit to the number of rows but, keep in mind, that saving and loading times will increase with larger listviews.  I have a test database of zip codes that is three columns and around 43,000 rows.  It takes around fourteen seconds to fully load on my computer.  Furthermore, there is a maximum of 200 columns allowed.  Does this answer your question?


Sure does.  I was doing some reading on some different sites regarding use of CSV files.  I came across a couple where people were having different problems based on the number of characters they were trying to work with.  All cases were where they were importing CSV files.  Some were working with 255 character text field lengths and others memo type field lengths which were much longer.  It was explained that some programs, while they will accept CSV imports, will limit the number of characters they will accept.  Usually the 1st 255 but some programs even smaller lengths.  Even though the imported CSV field could contain many more characters.

I doubt that I will ever have a field with even 255 characters, but if somehow I did, wondered what would happen.

Title: Re: NANY 2011 Release: Snap DB
Post by: TalksToPCs on January 26, 2011, 03:29 PM
I have run into an issue.

I seem to have closed SnapDB with a filter applied the last time I used it.
Now, all I have left from my entries are the items that I had last filtered, which are about 5 out of 30 or so.

I cannot find a way to get my whole dataset back.
It isn't too dramatic and I certainly have a back-up somewhere.

Any suggestions?

TalksToPCs
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 26, 2011, 03:44 PM
I have run into an issue.

I seem to have closed SnapDB with a filter applied the last time I used it.
Now, all I have left from my entries are the items that I had last filtered, which are about 5 out of 30 or so.

I cannot find a way to get my whole dataset back.
It isn't too dramatic and I certainly have a back-up somewhere.

Any suggestions?

Did you have the "Keep a .bak backup file after saving enabled" option enabled?  If so, the .bak file will be the save before your current one.  If not, you will have to find your own backup.

Regarding this bug, it happens when you've made changes to your database (and don't save), enable the filter, search on something and then close Snap DB.  Snap DB will then ask if you if you want to save (since the database has been modified) ... most folks will click yes and Snap DB erroneously saves the filtered data.  I will fix this and please accept my apologies.

I actually have had a new build waiting in the wings for a while now...just waiting on the member server move to be completed.
Title: Re: NANY 2011 Release: Snap DB
Post by: TalksToPCs on January 26, 2011, 04:02 PM
Did you have the "Keep a .bak backup file after saving enabled" option enabled?
Yeah, I did, but apparently i saved something else in the meanwhile.

 Snap DB will then ask if you if you want to save (since the database has been modified) ... most folks will click yes and Snap DB erroneously saves the filtered data.
I dimly remember doing something like this. Well, the universe is winning again...

No biggie.
Anyway, thanks for the great support and and the app of course...
Title: Re: NANY 2011 Release: Snap DB
Post by: DeVamp on January 27, 2011, 07:42 AM
For the CSV : sometimes programs export data to "CSV", but they use a ; instead of a ,

Silly programs...that's not a CSV file then.  =]

true, true.  :(

But I've just came across a program that exports to CVS seperated by ;
It was Microsoft SQL Server Management Studio.

I've exported a bunch of invoices, and to preserve the amounts, it uses a ; as separator.
And I didn't found a setting to change the exportsettings in it. :'(

Even excel ha problems opening that CSV file. :-)

Perhaps you can provide a "default" separator, just a general application setting, and then it's up to us, the users, to change it according to the file we want to drop or open or import.

Just an idea. :-)
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 27, 2011, 09:56 PM
But I've just came across a program that exports to CVS seperated by ;
It was Microsoft SQL Server Management Studio.
I've exported a bunch of invoices, and to preserve the amounts, it uses a ; as separator.
And I didn't found a setting to change the exportsettings in it. :'(

The asinine thing is that the CSV standard can easily handle quotes, commas, periods etc. in the data bits if written and read properly.  There's no need to use different delimiters.  I know my complaining does as much good as pounding sand.   :P

Perhaps you can provide a "default" separator, just a general application setting, and then it's up to us, the users, to change it according to the file we want to drop or open or import.
Just an idea. :-)

It's in the next build.   :)
Title: Re: NANY 2011 Release: Snap DB
Post by: DeVamp on January 28, 2011, 02:00 AM
I know my complaining does as much good as pounding sand.   :P
You do have a good point. But hey, its a microsoft program. they have their own standards ;)
It's in the next build.   :)
Great! 8)
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 28, 2011, 09:01 AM
Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.1.2 - 2011-01-28
    + Column orders are now saved per database.
    + "Convert row data to header names" added to the Edit menu.  This is useful after importing a CSV file.
    + Added custom CSV delimiter option under the Options dialog.  (Thanks, DeVamp)
    + Added "Import" toolbar button.
    + Added "Options" toolbar button.
    * CSV exports should be more adherent to the CSV standard with regards to double-quotes and commas within the data bits.
    ! The column order for CSV exports didn't match up with the listview column order.  (Thanks, bob99)
    ! Closing and saving a Snap DB database while in filter mode, and with a modified database, would result in Snap DB erroneously saving the filtered data view instead of the full, changed database.  (Thanks, TalksToPCs)
Title: Re: NANY 2011 Release: Snap DB
Post by: suigen on January 29, 2011, 08:31 PM
Snap DB is a smart and good software. Thanks for it.

But... How can I have a cell (field) multi-lines or wordWrap ?

And... How can I have row cells more talls ?

Sorry for my very bad english.

cab.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 29, 2011, 08:48 PM
Snap DB is a smart and good software. Thanks for it.

You're welcome.  I'm glad you like it.

But... How can I have a cell (field) multi-lines or wordWrap ?

Due to Win32 listview limitations, you can't.  Sorry.   :(

And... How can I have row cells more talls ?

You can adjust the font in the options dialog.

Sorry for my very bad english.

Your English is fine.   :)  Thanks for the feedback.

Title: Re: NANY 2011 Release: Snap DB
Post by: alexsan01 on January 31, 2011, 11:04 AM
Thank you for the updates. Any chance you could allow to copy info from the selected row when in "Filter Mode"? maybe you can use the same window when updating a record, but with the "Update record" button disabled.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 31, 2011, 11:11 AM
Any chance you could allow to copy info from the selected row when in "Filter Mode"? maybe you can use the same window when updating a record, but with the "Update record" button disabled.

Yes...I'm still undecided on how to handle copying data directly from the listview.  It's high on the ToDo list.
Title: Re: NANY 2011 Release: Snap DB
Post by: Winkie on January 31, 2011, 01:51 PM
@Skwire:
As promised, my findings after a thorough test drive with Snap DB.
You already know my first impression: looking good! Now I can must say: usability is also top.

Remarks:
Title: Re: NANY 2011 Release: Snap DB
Post by: alexsan01 on February 01, 2011, 09:20 AM
One more thing. I noticed the filter gets resetted everytime you update a record. If you select the filter "** Any column **" and the update any record, this filters get resetted to the name of the first column.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on February 01, 2011, 01:49 PM
I think I addressed everybody's requests and bug reports with this build.  I also added in several new bits so please make sure to read through the changelog.  Thanks for feedback, all.

Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.1.3 - 2011-02-01
    + Added 'Run' and 'Clipboard' buttons to the Add/Update/Insert dialog.  The
      'Run' feature will attempt to execute data that meet the following
      criteria:
        # A file or folder e.g.: c:\path\to\my.exe, c:\path\to\image.png
        # A URI/URL with "://" in it e.g. http://www.site.com
        # 'mailto:' links e.g. mailto:[email protected]
    + Added row-copying capabilities.  You can set a custom delimiter to use
      under Options.  There are three ways to invoke this feature:
        # Edit menu.
        # Ctrl-C hotkey.
        # Toolbar button.
    + Added Ctrl-V hotkey to paste in a tab-delimited block.  This will allow
      you to copy rows with Ctrl-C and paste them in directly so long as you
      have 'Tab' set for the delimiter to use when copying rows (under Options).
    + Added 'Duplicate record' toolbar button.  (Thanks, Winkie)
    + Added "Sum columns" feature and toolbar button.  This feature will attempt
      to sum any columns containing numbers.  It will ADD two extra
      lines/records at the end of the list with the totals.  YOU are
      responsilble for deleting these lines or keeping them by saving.  If
      present, these new lines/records are considered in the next invocation of
      the 'Sum columns' feature.  In other words, Snap DB has no idea if those
      records are totals or regular data.  (Thanks, Beth UK)
    * Add/Update/Insert fields will now appear in the same order as the columns.
      (Thanks, Winkie)
    * Changed 'Options' toolbar icon.
    ! Duplicating a record now sets modified state to true.
    ! If you closed out of an Update window, you could no longer insert records.
    ! Stale data was kept after closing out of an Add/Update/Insert window.
      (Thanks, Winkie)
    ! Filter drop-down list no longer resets when updating records, only when
      adding or deleting a column.  (Thanks, alexsan01)
Title: Re: NANY 2011 Release: Snap DB
Post by: Winkie on February 01, 2011, 02:48 PM
Thanks for these updates, Skwire. :Thmbsup:

    + The 'Run' feature will attempt to execute data that meet the following
      criteria:
        # A file or folder e.g.: c:\path\to\my.exe, c:\path\to\image.png
        # A URI/URL with "://" in it e.g. http://www.site.com
        # 'mailto:' links e.g. mailto:[email protected]

I'm not sure what you what you mean with attempt to execute, but it also tries to run a field like "Go to http://google.com", which obviously fails.
IMHO, Apart from a FileExist() check, (which you must be using because only "config.ini" works!)
the check should be something like:
Code: Autohotkey [Select]
  1. ; OK: http://google.com
  2. ; OK: www.google.com
  3. ; OK: mailto:[email protected]
  4. ; OK: D:\Program Files\SnapDB\SnapDB.exe
  5. ; OK: file:///c:/windows/
  6. ; OK: \\ComputerName\SharedFolder\Resource
  7. MsgBox, % RegExMatch( Clipboard, "^(http:|www.|mailto:|[a-zA-Z]:\\|file://|\\\\)" )
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on February 01, 2011, 03:15 PM
Thanks, Winkie.  I've improved the matching logic to match anything starting with http://, ftp://, www. or mailto:.  As for files and folders, yes, I was doing a FileExist() first.

Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.1.4 - 2011-02-01
    * Improved the matching logic when using the 'Run' buttons.  (Thanks, Winkie)
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on February 02, 2011, 07:59 PM
Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.1.5 - 2011-02-02
    + Snap DB is now Unicode capable.  Notes:
        # This version is supported by WinXP and up.  Older operating systems
          will need to use the SnapDB_ANSI.exe file instead.
        # Database files are read and written in UTF-8 format.   
    + Added Ctrl-Shift-O hotkey for opening the Options dialog.
    * Changed the copy-to-clipboard delimiter to allow more than just one
      character.  (Thanks, Winkie)
    ! Fixed GUI glitches with Add/Update/Insert and Options dialogs.  (Thanks,
      Winkie)
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on February 04, 2011, 04:27 PM
Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.1.6 - 2011-02-04
    * Changed how the clipboard-copy delimiter information is entered.  Please
      use the help button to see how the tokens work.  If you had spaces or tabs
      in your string, you will have to change it.
Title: Re: NANY 2011 Release: Snap DB
Post by: smartmushu on February 06, 2011, 09:19 AM
Hi skwire, really nice apps you have here.. :up: Thanks for the good job. I've used snapDB for many types tables, including one with date type data and memo type data.  :D

However, I do have some questions / requests regarding snapDB. Is it possible if snapDB implement some kind of "sort by date" function? I sometimes need to sort my data based on date. And last, do you mind to provide any option to use comment box instead of text box to input/edit/read memo type data?
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on February 06, 2011, 06:28 PM
Hi skwire, really nice apps you have here.. :up: Thanks for the good job.

You're welcome.  Thanks for the kind words and welcome to DonationCoder.

I've used snapDB for many types tables, including one with date type data and memo type data.  :D

However, I do have some questions / requests regarding snapDB. Is it possible if snapDB implement some kind of "sort by date" function? I sometimes need to sort my data based on date.

The problem is that the listview columns sort alpha by default and must be changed programmatically to sort in different ways e.g. numerically/integer.  The problem with dates is that they're neither.  You would almost need to have a separate column that kept YYYYMMDDHH24MISS timestamps to be able to sort dates properly.  All that being said, I have given some thought on how to allow configuration of sorting options on each column.  I just haven't come up with a good solution (yet).

And last, do you mind to provide any option to use comment box instead of text box to input/edit/read memo type data?

I'm not sure what you mean by a comment box.  Do you have a screenshot of another app that uses one?
Title: Re: NANY 2011 Release: Snap DB
Post by: smartmushu on February 07, 2011, 03:05 AM

The problem is that the listview columns sort alpha by default and must be changed programmatically to sort in different ways e.g. numerically/integer.  The problem with dates is that they're neither.  You would almost need to have a separate column that kept YYYYMMDDHH24MISS timestamps to be able to sort dates properly.  All that being said, I have given some thought on how to allow configuration of sorting options on each column.  I just haven't come up with a good solution (yet).

Okay, got it, thanks..  :up:

I'm not sure what you mean by a comment box.  Do you have a screenshot of another app that uses one?

Sorry to make you confused, I mean some bigger text box (not just one line text box) with 2 or 3 rows space and maybe with scroll button, like the one we see in Donation Coder forum when we post reply.. :D So if I put some long text I could simply scroll up and down to see all of my text.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on February 07, 2011, 10:25 AM
Sorry to make you confused, I mean some bigger text box (not just one line text box) with 2 or 3 rows space and maybe with scroll button, like the one we see in Donation Coder forum when we post reply.. :D So if I put some long text I could simply scroll up and down to see all of my text.

The hesitation I have in doing this is it would give the impression that SnapDB can display multi-line bits of information (which it can't).  Saving and restoring mutil-line bits is easy enough but displaying them in a standard listview is not possible.
Title: Re: NANY 2011 Release: Snap DB
Post by: smartmushu on February 07, 2011, 09:02 PM
Sorry to make you confused, I mean some bigger text box (not just one line text box) with 2 or 3 rows space and maybe with scroll button, like the one we see in Donation Coder forum when we post reply.. :D So if I put some long text I could simply scroll up and down to see all of my text.

The hesitation I have in doing this is it would give the impression that SnapDB can display multi-line bits of information (which it can't).  Saving and restoring mutil-line bits is easy enough but displaying them in a standard listview is not possible.

well, okay then.. thanks skwire..
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on February 09, 2011, 10:35 AM
well, okay then.. thanks skwire..

Sorry to disappoint you.   :(  I hope you can still find some use in Snap DB.  :)

Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.1.7 - 2011-02-09
    ! Fixed a small graphical glitch with the enable filter checkbox.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on February 09, 2011, 07:26 PM
Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.1.8 - 2011-02-09
    + Passing in a CSV or TSV/TXT file via the commandline is now supported.
      (Thanks, camerb)
Title: Re: NANY 2011 Release: Snap DB
Post by: cameronbaustian on February 10, 2011, 08:49 AM
Excellent work, Skwire! I'm able to launch your app using the command line, passing it a csv/tsv/txt file. Looks great, and I'm pretty impressed with how clean your GUI is as well. Simple, straightforward and understandable.
Title: Re: NANY 2011 Release: Snap DB
Post by: mouser on February 10, 2011, 08:51 AM
Just a friendly normal reminder to people -- if you like what a coder on the site is doing, consider making a little donation to them to say thanks.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on February 10, 2011, 09:02 AM
Thanks for the kind words, camerb.  :)  I'm glad you find Snap DB useful.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on February 10, 2011, 11:25 PM
Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.1.9 - 2011-02-10
    + Added 'Copy cell contents' to the list context menu.  This will copy, to
      the clipboard, the text of the cell you right-clicked on to bring up the
      context menu.
    + Added 'Copy column data' entry to the header context menu.  This will
      copy, to the clipboard, the entire column's contents.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on February 11, 2011, 04:41 PM
Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.2.1 - 2011-02-11
    + Added 'Run/execute cell contents' to the list context menu.  This will
      attempt to run/execute text of the cell you right-clicked on to bring up
      the context menu.  You can also hover over a cell and use the Ctrl-R
      hotkey.
    + To copy a cell's contents, you can now simply hover over a cell and use
      the Ctrl-Shift-C hotkey.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on February 12, 2011, 01:28 PM
Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.2.2 - 2011-02-12
    ! Add/Update/Insert & Options dialogs should now always come up on top of
      the main Snap DB interface instead of centered on the main monitor.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on February 13, 2011, 11:59 PM
Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.2.3 - 2011-02-14
    ! 'Copy column data' option didn't always copy all the column's data.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on March 24, 2011, 01:43 AM
Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.2.4 - 2011-03-16
    ! Alt-tab icon was pixelated when using the Unicode build.

v1.2.5 - 2011-03-24
    + Added simple Find/Replace functionality.  Access it via the Edit menu, the
      toolbar button or the Ctrl-H hotkey.  (Thanks, ApathyS)
Title: Re: NANY 2011 Release: Snap DB
Post by: kfitting on March 24, 2011, 09:16 AM
One thing I have done in the past to get around the multiline issue is to use a textbox for a given field... obviously this opens just a bunch more questions.  In my case I only had one multiline field, and I only needed to see one record's field at a time. 

Assuming these requirements are met, you could have a textbox that displays "multiline field X" for the selected record.


(For those wondering, I was replicating a "task manager" type tool with excel (as my task list) and word (as my task note/comment) using VBA to bridge the gap.  Yes there are many tools that do this type of thing (TodoList) and yes it's painful... and yes computer security rules at work suck.)
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on March 24, 2011, 10:07 AM
Thanks for the feedback, kfitting; I appreciate it.

I actually have written a set of functions that "encode" and "decode" multiline blocks of text for storage in and reading back of an INI file for some other apps of mine.  Snap DB's file format is much like an INI in that each record is stored on a single line.  However, I decided not to do multiline records because I feel it would take away from Snap DB's simple, elegant (IMHO) interface.  I mean, there really is not a good place to put a multiline edit/text field on the main form without sacrificing listview space in some way (which I'm loathe to do).
Title: Re: NANY 2011 Release: Snap DB
Post by: kfitting on March 24, 2011, 10:55 AM
Understood!  If a user really need multiline maybe excel is the better choice.
Title: Re: NANY 2011 Release: Snap DB
Post by: Stoic Joker on March 24, 2011, 11:27 AM
I mean, there really is not a good place to put a multiline edit/text field on the main form without sacrificing listview space in some way (which I'm loathe to do).

There is the option to anchor an edit control window to the listview cell, that can be triggered (by double click or something) to open & display the full text, and then auto close when it looses focus. That way you can keep the clean single line view and still be able to peek at larger blocks of text as/if needed.
Title: Re: NANY 2011 Release: Snap DB
Post by: timn on March 28, 2011, 03:00 PM
Skwire, thanks for your excellent program, I can see many uses.
I have some suggestions that would make it even more useful for me.
1. Don't clear the filter match field when you turn off filter mode - I often want to use it again.
2. A method to import a CSV file, use its first line as header names and delete that row in one operation.
3. More filter types like "doesn't equal", "doesn't contain", "greater than", "less than", regular expression match.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on March 28, 2011, 03:49 PM
Skwire, thanks for your excellent program, I can see many uses.

You're welcome and welcome to DonationCoder.   :)

I have some suggestions that would make it even more useful for me.
1. Don't clear the filter match field when you turn off filter mode - I often want to use it again.
2. A method to import a CSV file, use its first line as header names and delete that row in one operation.
3. More filter types like "doesn't equal", "doesn't contain", "greater than", "less than", regular expression match.


Thanks for the feedback.   :)
Title: Re: NANY 2011 Release: Snap DB
Post by: timn on March 30, 2011, 07:14 PM
2. I understand the reasoning behind this.  However, this would sort of break the mass import you can do by dropping a bunch of CSV onto the list (or multi-selecting them via the file choose dialog).  Did you see the Edit/Context menu option to convert a row to the header?  Maybe a solution/option would be if there was only one file dropped (or selected via the dialog), auto convert the first line into a header.
Thanks for the quick reponse.
Re 2, yes I have used 'Edit > Convert row to header' several times. I am using SnapDB to publish tables from an SQLite database because it is much easier to use. I havent attempted to load multiple CSV files. Your solution sounds good.
Further use has suggested another possible enhancement:
Numeric fields with different lengths don't sort as I expect. eg 2000 appears before 300 for an ascending sort.
It would be good if SnapDB could somehow recognise a numeric only column and sort it by numeric value.
If the data comes via a delimited file then digits only and no enclosing quotes could possibly be used to indicate numeric.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on March 31, 2011, 03:47 AM
Here you go, timn.  Minimal testing in this build so do your worst.  =]  I'll try to get the CSV header issue done in a future build.

Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.2.8 - 2011-03-31
    + Snap DB now tries to determine whether a column is numeric so it will sort
      properly.  The logic is as follows:
        # A column with strictly integers will sort as integer.
        # A column with strictly floats will sort as float.
        # A column with both integers and floats will sort as float.
        # A column with ANY non-numeric text will sort as logical text.
    + Added the following filter types:
        # Does NOT contain
        # Does NOT equal
        # Greater than
        # Greater than or equal to
        # Less than
        # Less than or equal to
        # Regular expression
        (Thanks, timn)
    * Filter text is re-used when enabling the filter.  (Thanks, timn)
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on April 15, 2011, 11:44 PM
Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.3.0 - 2011-04-15
    ! Minor statusbar change.

v1.2.9 - 2011-04-07

    ! Duplicate and Edit record functions were erroneously available while in
      filter mode.
Title: Re: NANY 2011 Release: Snap DB
Post by: TalksToPCs on September 21, 2011, 09:26 AM
Just in case anybody wondered if SnapDB can be used on a mac: Yet it can, with Crossover.
Works quite nicely with a few minor bugs, but perfectly usable.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on September 21, 2011, 09:29 AM
Good to know.  Thanks, TalksToPCs.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on October 31, 2011, 10:12 AM
Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.3.3 - 2011-10-31
    + Numeric columns should now sort properly for CSV files.  (Thanks, Wayne)
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on December 03, 2011, 02:34 PM
Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.3.4 - 2011-12-03
    + Added option to disable Ctrl+A within an edit field when adding/editing a
      record.  This helps with some non-English keyboards when entering accented
      characters.  (Thanks, J. Zebrowski)
    ! Printing didn't maintain the column order.  (Thanks, J. Elmes)
    ! Copying row(s) to the clipboard didn't maintain column order.
Title: Re: NANY 2011 Release: Snap DB
Post by: steeladept on December 04, 2011, 04:59 PM
I noticed some of the recurring themes on implementation of requests are limited by the ListView control.  I am not much of a programmer, and even less wrt AHK, but perhaps a solution to many of these requests would be a second "read-only" mode that uses a different control for display?  I realize that takes away a lot of the simplicity of "open, enter, close" flat-file databases, but for some users, the tradeoff may be worth it (for a mulitline view, for example).  It may solve some of your other issues regarding the ListView limitations.

Just a thought....
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on December 05, 2011, 12:07 AM
I noticed some of the recurring themes on implementation of requests are limited by the ListView control.  I am not much of a programmer, and even less wrt AHK, but perhaps a solution to many of these requests would be a second "read-only" mode that uses a different control for display?

Thanks for the feedback, steeladept, I appreciate it.  Yes, I'm limited in certain ways because of the listview control but I really don't mind since Snap DB serves a niche role in regards to databases.  If a user needs more than what Snap DB offers, I feel there are many solutions already out there (I use some of them).  You know?
Title: Re: NANY 2011 Release: Snap DB
Post by: daddydave on December 05, 2011, 04:40 AM
Very handy! (I just happened to have a UTF-8 tab separated file lying around on my desk, so I thought I'd share.)

[ You are not allowed to view attachments ]
Title: Re: NANY 2011 Release: Snap DB
Post by: daddydave on December 05, 2011, 12:22 PM
What does "Run/execute cell data" do?
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on December 05, 2011, 12:28 PM
What does "Run/execute cell data" do?

It will attempt to "run" the contents of a cell.  So, say you had folder path, it would launch that folder path.  Or, the path to an exe, image file, etc.  You can also put, say, email addresses in a cell and it will launch those, too.  Kind of like a poor man's address book.  Make sense?
Title: Re: NANY 2011 Release: Snap DB
Post by: daddydave on December 05, 2011, 12:40 PM
What does "Run/execute cell data" do?

It will attempt to "run" the contents of a cell.  So, say you had folder path, it would launch that folder path.  Or, the path to an exe, image file, etc.  You can also put, say, email addresses in a cell and it will launch those, too.  Kind of like a poor man's address book.  Make sense?

Yes, thanks. :)
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on December 05, 2011, 12:46 PM
Yes, thanks. :)

Right on.  Basically, anything you can stuff into the Windows "Run" box should work in a Snap DB cell.  BTW, nice screenshot.  Thanks for sharing.  =]
Title: Re: NANY 2011 Release: Snap DB
Post by: daddydave on December 29, 2011, 11:13 PM
I was going to ask if there were any plans to allow exporting while in filter mode, but I just noticed Print kind of does that.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on December 30, 2011, 12:10 AM
I was going to ask if there were any plans to allow exporting while in filter mode

Hmmm...I'm not sure why I don't allow that.  Let me see what I can do.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on December 30, 2011, 09:36 AM
@daddydave: From what I can tell, Export to CSV is available in Filter mode.  Is this what you meant?

Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.3.5 - 2011-12-30
    + Added a new "Web search this cell" option to the context menu.  The
      default is to use Google but you can configure any search engine in the
      Options dialog.
    * Changed the filter mode so a subset of the Edit menu is available.
Title: Re: NANY 2011 Release: Snap DB
Post by: daddydave on December 30, 2011, 12:11 PM
Downloaded the version and I don't see any change in behavior I was referring to.
I am referring to File > Export rows to CSV file. The whole File menu disappears when I click on the checkbox for Filter/Read-Only mode.

To clarify further, it would be nice to be able to export a subset of records based on the filtered rows that are displayed.

I like the Web Search. I set it to search pronunciations from Forvo: http://www.forvo.com/search-hi/$$1 It works great from the right click menu, but nothing happens when I press Ctrl-W (which I think is generally used for "close window", but I don't know if that matters.

UPDATE:
Well "Copy Selected Rows" wasn't there before in Filter mode, right? I think I'd rather use that than export to CSV anyway, and I get tab separators. Excellent. That's probably all I need.

Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on December 30, 2011, 02:34 PM
Downloaded the version and I don't see any change in behavior I was referring to.
I am referring to File > Export rows to CSV file. The whole File menu disappears when I click on the checkbox for Filter/Read-Only mode.
To clarify further, it would be nice to be able to export a subset of records based on the filtered rows that are displayed.

Sorry, I was focused on the toolbar button which was still available.  I've added back a subset of the File menu, while in filter mode, in this next build.

I like the Web Search. I set it to search pronunciations from Forvo: http://www.forvo.com/search-hi/$$1 It works great from the right click menu, but nothing happens when I press Ctrl-W (which I think is generally used for "close window", but I don't know if that matters.

Uh...yeah...about that.   :-[  See the latest build.    :D  Let me know if that works how you like.

Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.3.6 - 2011-12-30
    * Changed the filter mode so a subset of the File menu is available.
    ! If you're going to hotkey an action, it helps to actually add the code for
      said hotkey.  Ctrl+W now works for the new web search functionality added
      in the previous version.  (Thanks, daddydave)
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on March 04, 2012, 06:24 PM
Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.3.7 - 2012-03-04
    + Added calendar buttons to the add/edit record dialogues.
    + Added functionality to export current data views to external scripts
      or programs.  See Help > Contents for more details.
Title: Re: NANY 2011 Release: Snap DB
Post by: DeVamp on March 05, 2012, 04:46 AM
Hi skwire.

Is it possible that you haven't updated the link with the newest vesion?
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on March 05, 2012, 07:39 AM
Nope, the newest version is there.  You might try clearing your cache or using a different browser.
Title: Re: NANY 2011 Release: Snap DB
Post by: DeVamp on March 05, 2012, 07:50 AM
That problem again.

It's not the first time I have the problem. :-)

Got it now. Thanks.

Lets test :-)
Title: Re: NANY 2011 Release: Snap DB
Post by: DeVamp on March 05, 2012, 08:27 AM
I did some quick test and it looks great. :-)

Thank you :-)
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on March 05, 2012, 08:28 AM
You're welcome.  Glad I could help.   :D
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on April 02, 2012, 01:57 PM
Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.3.8 - 2012-04-02
    + Added F4 hotkey for adding a new record.
    * Toolbar is now toggle-able.  Use the View menu or Ctrl+T hotkey.
    * Took out the button icons in the add/edit dialog to speed things up.
Title: Re: NANY 2011 Release: Snap DB
Post by: rgdot on April 02, 2012, 02:57 PM
Why not Alt-F4?

 ;D
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on April 02, 2012, 03:02 PM
Why not Alt-F4?

 ;D

That would have been for a release yesterday, no?  =]
Title: Re: NANY 2011 Release: Snap DB
Post by: rgdot on April 02, 2012, 03:07 PM
True, please keep that in mind for next year  ;)
Title: Re: NANY 2011 Release: Snap DB
Post by: lilsypha on June 03, 2012, 12:20 AM
Hi skwire!

I'm getting quite a lot of use out of this little program -- it's a simpler replacement to Iliumsoft's Listpro. Listpro isn't portable, and doesn't look as if it's ever going to be, so onwards and upwards.

Is it possible that you might add the ability for multiple filters in the future?

For example, right now I can choose column 1 > contains > something. With that filter active, I'd love to be able to filter that data with column 3 > contains > something else.

Does that make sense?

Up to three filters would be lovely, more if it's configurable.

Cheers.  :)
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on June 03, 2012, 09:38 AM
Hi skwire!

Hi, lilsypha, and welcome to the DonationCoder site.   :D

Is it possible that you might add the ability for multiple filters in the future?

Unfortunately, the way that Snap DB is written would make something like this difficult from a GUI perspective.
Title: Re: NANY 2011 Release: Snap DB
Post by: timn on August 26, 2012, 12:04 AM
Thanks Skywire,
I use SnapDB regularly. It is very good for a few hundred records, I haven't tried anything larger yet.
It is very responsive on my very old laptop.

I created a new DB from a spreadsheet CSV export and ran into a small problem.
The DB contains numbers with commas eg 124,256.
These numbers do not sort in numeric order and are not added up correctly.
I could remove the commas but large numbers are hard to interpret without them.

Any chance of ignoring them in otherwise numeric fields?
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on August 26, 2012, 07:09 PM
I'm glad to hear you're still using the application.  This build allows for the summing of numbers that contain commas and/or dollar signs. As usual, I've done pretty minimal testing so please let me know how it works for you in your environment.

In regards to the sorting issue, it seems to work okay for me.  Can you provide me with a list of numbers that don't sort correctly for you?  Also, which operating system are you using?

Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.3.9 - 2012-08-26
    * Numbers with commas and/or dollar signs in them can now be summed.  (Thanks, timn)
Title: Re: NANY 2011 Release: Snap DB
Post by: timn on August 26, 2012, 11:56 PM
Thanks for the very quick update.
The totals now agree with the spreadsheet that the data came from.

Re sorting numbers
I've tested under XP and W7.
I get the same results on both.
Column 4 ^
1,000
2,000
3,000
500

Also comparisons using the same data
 |Column 4| |Greater than| 499
Gives only the row with 500
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on August 27, 2012, 12:26 PM
The listview sorting is something that I don't think I can do anything about.  I've tried testing with the various listview sort options available to me but none of them do what you're wanting.  What is boils down to is that, programmatically, something like "1,000" is simply not an integer or a float (decimal point number).  Trying to modify the data on the fly for the purpose of a sort is well outside the scope of Snap DB, IMO.

As for the searching issue, I can try to do something about that.  Stay tuned.
Title: Re: NANY 2011 Release: Snap DB
Post by: timn on August 30, 2012, 05:33 AM
Ok, thanks for looking into it. I will probably remove the commas.

I have another query about usage.
I have a number of SnapDB databases and I like to use different fonts and window sizes for each.
The only solution I've come up with is to have a directory for each with its own copy of SnapDB.exe and config.ini.
I could use a wrapper to swap config.ini files but that also seems inelegant.
Is there a better way?
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on August 30, 2012, 06:34 PM
Is there a better way?

Yep, there is.  I've been meaning to put these settings directly into the SNP file instead of the config.ini.  I'll add it to my ToDo...   :D
Title: Re: NANY 2011 Release: Snap DB
Post by: alexsan01 on March 19, 2013, 12:27 PM
Hello, skwire.
I've been using SnapDB since 2011 and have contributed with some ideas. I wanted to ask you why is the "Edit record" option greyed out when in "Filter" mode? I often have the need to edit the record i just found but I'm unable to this in "Filter" mode. If this is not possible, is it possible to keep the record selected in "Filter" mode, selected when you leave this mode?

Thank you again for your great applications.
Title: Re: NANY 2011 Release: Snap DB
Post by: tomos on April 10, 2013, 07:51 AM
hi skwire,
I'm just trying this out today:
on resizing the SnapDB window, I've gotten three freezes so far - with the app hogging one full core (I killed/restarted it in between). I seem to be able to reproduce it by resizing window from the right, but also reproduced it dragging from bottom right (possibly dragging any side will work).

So far I can partially recover by changing the focus to another window and back - but SnapDB continues to hog CPU and doesnt respond properly. (I can drop down a menu but not do any more - if I alttab away/back I can drop down a different menu entry but then it freezes again.)

In the screenshot you can see that the info in the statusbar is garbled from resizing.

[ You are not allowed to view attachments ]

Everything else seems to be working okay.
Win 7 64bit

(PS you may have missed the post above mine)
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on April 10, 2013, 10:15 AM
on resizing the SnapDB window, I've gotten three freezes so far

I can reproduce this by grabbing the right side and shaking the hell out of it but not under normal circumstances.  I'm going to guess the issue is in the Anchor() function that I use for positioning and resizing controls.

I wanted to ask you why is the "Edit record" option greyed out when in "Filter" mode?

Apologies for missing your post, alexsan01.    :(

Short answer: Utter laziness.   :D  Long answer: This might be a bit difficult to explain.  Snap DB databases aren't really databases in the relational sense (they're simple flat files).  When displaying filtered contents, what you're seeing is a new listview of matching results that have no correlation with the non-filtered view.  I haven't sat down and come up with a way to correlate the two.  Does that make any sense?
Title: Re: NANY 2011 Release: Snap DB
Post by: tomos on April 10, 2013, 12:02 PM
on resizing the SnapDB window, I've gotten three freezes so far

I can reproduce this by grabbing the right side and shaking the hell out of it but not under normal circumstances.  I'm going to guess the issue is in the Anchor() function that I use for positioning and resizing controls.

tha's true, not sure how it happened the first time, but I could only reproduce it by messing around with it :-[ i.e. it's fine in everyday use
Title: Re: NANY 2011 Release: Snap DB
Post by: alexsan01 on April 12, 2013, 10:43 AM
Thank you. Yes it makes sense. I use SnapDB everyday. Just an idea: You could try to add IDs to every record even if they are not displayed on the file and take this ID along with the record when in filter mode so you can know what record to update in the original listview.
Thanks.
Title: Re: NANY 2011 Release: Snap DB
Post by: rgdot on April 24, 2013, 03:19 PM
This probably needs a new thread/program but I will ask any way. Is there any way Snap DB (or one like it) can have a checklist? I mean I am looking for a simple flat file DB with support for a yes/no field.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on April 24, 2013, 05:08 PM
This probably needs a new thread/program but I will ask any way. Is there any way Snap DB (or one like it) can have a checklist? I mean I am looking for a simple flat file DB with support for a yes/no field.

No, Snap DB does not do this.  However, I'm positive there are a myriad of small "to do list" applications that would probably fit your needs.  Is that something like what you were after?
Title: Re: NANY 2011 Release: Snap DB
Post by: rgdot on April 24, 2013, 06:06 PM
Yes, that's basically what I am after.
 
I know Snap DB doesn't do it. I am trying my best to avoid using one more program filled with to do and other data though. That's why I asked here in the Snap DB thread.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on April 24, 2013, 09:25 PM
Yes, that's basically what I am after.
I know Snap DB doesn't do it. I am trying my best to avoid using one more program filled with to do and other data though. That's why I asked here in the Snap DB thread.

It really wouldn't take much to create a simple to-do list app with only the minimum of what you're looking for.  Something like:


Your thoughts?
Title: Re: NANY 2011 Release: Snap DB
Post by: rgdot on April 25, 2013, 10:40 AM
Do you mean a new coding snack? I may request it soon, I will refer to this post if/when I do. Thanks :)
Title: Re: NANY 2011 Release: Snap DB
Post by: Erekle on November 09, 2013, 07:11 AM
Great thanks for this excellent program.

Just one wish: Is it possible to add multi-line fields (in Table Pro by ZGS this is implemented with combination Ctrl + Enter, but Table Pro does not suppurt unicode :) )?

And one remark. If change the window's size from maximized to arbitrary and then back again - fields for records are no longer occupy the entire window. If reduce again - they become even smaller. This happens with default options and with no file opened too (one time I changed font size to 10, and imported large CSV (nearly 500 lines) and suspected that as cause,  but after restored default options and no changes).
No difference, window is changed by grabbing the bottom right side or with buttons.
OS: XP SP2.

(http://rghost.ru/50049495/thumb.png)
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on November 09, 2013, 02:00 PM
Hi, Erekle, and welcome to the DonationCoder site.   :D

Great thanks for this excellent program.

You're very welcome.  I'm glad you find it useful.

Just one wish: Is it possible to add multi-line fields (in Table Pro by ZGS this is implemented with combination Ctrl + Enter, but Table Pro does not suppurt unicode :) )?

Unfortunately, due to the limitations of the standard Listview control that AHK uses, multi-line fields are not a possibility.

And one remark. If change the window's size from maximized to arbitrary and then back again - fields for records are no longer occupy the entire window.

Please try this build and let me know if it solves the issue:

Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.4.2 - 2013-11-09
    * Changed resizing routines to, hopefully, avoid a Windows XP bug.
    * SnapDB is now DPI aware.
Title: Re: NANY 2011 Release: Snap DB
Post by: Erekle on November 09, 2013, 03:31 PM
Yes, problem is solved! :up:
Thank you.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on November 09, 2013, 03:32 PM
Yes, problem is solved! :up:
Thank you.

Sweet, thanks for reporting back.  =]
Title: Re: NANY 2011 Release: Snap DB
Post by: Erekle on November 09, 2013, 03:41 PM
 :) ...But program freezes when adding new record, even in new file:

(http://rghost.ru/50062972/image.png)
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on November 09, 2013, 03:52 PM
Crap, sorry about that.   :-[

Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.4.3 - 2013-11-09
    ! The Add/Edit record box was not appearing properly.  (Thanks, Erekle)
Title: Re: NANY 2011 Release: Snap DB
Post by: Erekle on November 09, 2013, 03:59 PM
Yes, now anything is properly!
Title: Re: NANY 2011 Release: Snap DB
Post by: Erekle on November 12, 2013, 05:35 PM
It seems, the program adds tween records when duplicate with F5. :)
And deletes 2 records instead of one, if delete with "Del". :(
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on November 13, 2013, 12:20 AM
It seems, the program adds tween records when duplicate with F5. :)
And deletes 2 records instead of one, if delete with "Del". :(

Thanks for the report:

Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.4.4 - 2013-11-13
    ! Fixed hotkey bugs introduced in the last version.  (Thanks, Erekle)
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on November 13, 2013, 07:25 PM
Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.4.5 - 2013-11-13
    * Small cosmetic issue fixed.
Title: Re: NANY 2011 Release: Snap DB
Post by: eNdi on December 28, 2013, 06:06 AM
Hi. I've updated Snap DB from version 1.4.1 to 1.4.5 and now I have a little problem. I'm using high DPI settings in Windows 7 (125%) and it looks like now Snap DB has some problems with remembering custom columns widths. Everything else works and looks the same as before (add/edit window is a little bigger, maybe too wide).
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on December 28, 2013, 03:58 PM
Hi, eNdi, and welcome to the DonationCoder site.  Thanks for the bug report and please try this version to see if it solves the issue:

Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.4.6 - 2013-12-28
    ! Worked around a DPI-related bug where the listview columns weren't
      saved with the proper widths.  (Thanks, eNdi)
Title: Re: NANY 2011 Release: Snap DB
Post by: eNdi on December 28, 2013, 04:47 PM
Yes, now it works like it should. Thanks a lot.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on December 28, 2013, 04:55 PM
Yes, now it works like it should. Thanks a lot.

You're welcome.   :)
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on January 11, 2014, 03:38 PM
Website (http://skwire.dcmembers.com/wb/pages/software/snap-db.php) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.4.7 - 2014-01-11
    + Added option to confirm deletion of records. (Thanks, W. van Bergen)
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on September 30, 2014, 07:04 PM
Website (http://skwire.dcmembers.com/fp/?page=snap-db) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.4.8 - 2014-09-30
    + Added drag-n-drop functionality to rows.
    + Added Undo/Redo functionality using standard Ctrl+Z and Ctrl+Y
      hotkeys.
    + Added Cut/Copy/Paste functionality to rows using the standard
      Ctrl+X, Ctrl+C, and Ctrl+V hotkeys.
    * Copy cell data hotkey is now Ctrl+Alt+C.
    * Copy row data hotkey is now Ctrl+Shift+C.
    * Paste tab-delimited data hotkey changed to Ctrl+Shift+V.
    ! Hopefully fixed the freeze-while-resizing bug.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on December 12, 2014, 08:51 PM
Website (http://skwire.dcmembers.com/fp/?page=snap-db) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.5.0 - 2014-12.12
    ! Erroneous selections when adding or editing records.
Title: Re: NANY 2011 Release: Snap DB
Post by: DeVamp on March 04, 2015, 08:07 AM
Hi skwire,

Just a little request: could it be possible to open more then 1 file with the app?

I'm starting to use it for around 6 files and sometimes i would want to have 2 or 3 files opened.

Thank you. :)
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on March 04, 2015, 08:36 AM
Unfortunately, this would be a massive redesign and probably isn't going to happen.  Apologies.
Title: Re: NANY 2011 Release: Snap DB
Post by: ataplow on May 23, 2015, 11:39 PM
As soon as I get some time I'll be switching to a new computer with Windows 8.1.  My old 16 bit data bases I'm using on XP won't work on the new machine.   Hoping SnapDB works -- Anyone know for sure?

I like it and it is well thought out and does exactly what I need.  It's a snap to import my old data, and for printing I just export to csv & open in excel, and do my printing from there --- real simple and clean.   
Title: Re: NANY 2011 Release: Snap DB
Post by: Ath on May 24, 2015, 04:13 AM
Yes, it works just fine on either 32 (x86) or 64 (x64) bit versions of Windows.
Title: Re: NANY 2011 Release: Snap DB
Post by: ataplow on May 24, 2015, 08:22 AM
Thanks Ath, appreciate the info.   
I've successfully been using the "Cards" function of an ancient program called Sidekick since 1990 or thereabouts. It works on everything up to XP, but it's a 16 bit program which just won't run on Win 8. It did everything I needed --- imported, exported, easily configured, searchable, etc.   Now with SnapDB I can pretty near duplicate what I had.  I'm in my mid 80's, and too old to fuss around with a more sophisticated relational data base. 
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on September 01, 2015, 03:29 PM
Website (http://skwire.dcmembers.com/fp/?page=snap-db) | Download (http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip)
v1.5.1 - 2015-09-01
    + When printing, added ability to add the header row into the output.
      (Thanks, M. Chapman)
Title: Re: NANY 2011 Release: Snap DB
Post by: c-sanchez on April 05, 2018, 10:26 PM
Hi skwire, finding by something to save my notes with an "table structure" I found Snap DB, the program looks good but I think need to be improve a bit.

Snap DB just rename the last column, not selected one.
I can't have more than one note in an same file, Snap DB make a database by file :(
Title: Re: NANY 2011 Release: Snap DB
Post by: wraith808 on April 05, 2018, 10:54 PM
I can't have more than one note in an same file, Snap DB make a database by file :(

I haven't noticed that, and I make pretty extensive use of it.  Unless I'm misunderstanding you, you're saying that you can't have more than one record in a DB?
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on April 05, 2018, 11:48 PM
Snap DB just rename the last column, not selected one.

This appears to work fine for me.  I can right-click any column header and rename it.

I can't have more than one note in an same file, Snap DB make a database by file

I'm not quite sure what you mean here.  Can you try to explain in more detail?  Or, is it like wraith808 said, and you can't enter more than one record per database file?
Title: Re: NANY 2011 Release: Snap DB
Post by: c-sanchez on April 06, 2018, 12:53 AM
Yeah, I want to have more than one record in a database file.

For now all my notes are saved in an ini file.
this is the structure what i'm using for my notes. accounts, passwords, phones, etc
https://s6.postimg.org/9t6elhecx/ini_notes.png

the way in how works Snap DB we need make an file for each thing/category.
I think is better if is possible make a database for accounts, password, phones, and so with just one db file.

Indeed I've send a message to MemPad developer requesting for this (make some option to save notes in tables)
Like this: https://s6.postimg.org/xwx6a0p6p/mempad_horizontal_list2.png

but ok, then Snap DB what need is some as the Structured Index of notes in MemPad
http://www.horstmuc.de/img/mempade.png the list to the left (Program, Index, Editing, etc)

This appears to work fine for me.  I can right-click any column header and rename it.
haha weird, now works here too, I don't know what happens, but I'm sure I saw that problem :S
well, was my first time using the program, who knows ...  :P

Sorry my english.
Title: Re: NANY 2011 Release: Snap DB
Post by: wraith808 on April 06, 2018, 04:18 AM
So what you're saying is that you can't have multiple categories of notes in the same file, i. e. multiple tables. I'm not sure that SnapDB is the best for this paradigm, as its entire nature is built around  being a simple DB, not a multi table DB.

you can approximate this by having an additional field to entry type, but then they'd also need to be using the same fields.

skwire can comment most effectively on this, however.
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on April 06, 2018, 09:04 AM
Indeed I've send a message to MemPad developer requesting for this (make some option to save notes in tables)
Like this: https://s6.postimg.o...horizontal_list2.png

@c-sanchez: Thanks for taking the time to give Snap DB a try.  Unfortunately, as wraith808 said, Snap DB probably isn't going to be the application for you.  I have no plans to add a treeview or multiple database handling to Snap DB. 
Title: Re: NANY 2011 Release: Snap DB
Post by: c-sanchez on April 07, 2018, 08:38 PM
@c-sanchez: Thanks for taking the time to give Snap DB a try.  Unfortunately, as wraith808 said, Snap DB probably isn't going to be the application for you.  I have no plans to add a treeview or multiple database handling to Snap DB.
I understand, it's not what Snap DB was designed for, is ok. Anyway thank you very much for your replies @skwire and @wraith808 :D :up:
Title: Re: NANY 2011 Release: Snap DB
Post by: rjbull on April 08, 2018, 03:35 PM
I think is better if is possible make a database for accounts, password, phones, and so with just one db file.

Indeed I've send a message to MemPad developer requesting for this (make some option to save notes in tables)
Like this: https://s6.postimg.org/xwx6a0p6p/mempad_horizontal_list2.png
I'm not sure if it is exactly what you want, but the closest-appearing thing I know of is TreeLine (http://treeline.bellz.org/index.html):
Some would call TreeLine an Outliner, others would call it a PIM. Basically, it just stores almost any kind of information. A tree structure makes it easy to keep things organized. And each node in the tree can contain several fields, forming a mini-database. The output format for each node can be defined, and the output can be shown on the screen, printed, or exported to html.
Title: Re: NANY 2011 Release: Snap DB
Post by: wraith808 on April 08, 2018, 03:57 PM
There's also treepad (http://www.treepad.com/treepadfreeware/) and noteliner (http://download.cnet.com/Noteliner/3000-2076_4-75328353.html).  I use the latter, but all of them have variations on the same features, in my experience. Noteliner is abandonware at this point, but it works for me, so I haven't changed.

And thanks for the bit about treeline... I hadn't heard of that.
Title: Re: NANY 2011 Release: Snap DB
Post by: rjbull on April 08, 2018, 04:55 PM
And thanks for the bit about treeline... I hadn't heard of that.
I dabbled with a very old version, years ago, and suggested it here because it seems to have the fields that @c-sanchez wanted (see the screenshots).  It's a strange beast, hard to uninstall without using something like Revo, but it's multi-platform and now apparently portable.
Title: Re: NANY 2011 Release: Snap DB
Post by: smithralph on May 13, 2018, 05:35 AM
Is it possible to sort a column of dates?
I have tried a few formats, but none of the ones I have tried work.
I want to use dd/MM/yyyy which is a suggested date format.
Sorting on my other columns works correctly using version v1.5.1 build 1
Title: Re: NANY 2011 Release: Snap DB
Post by: skwire on May 13, 2018, 12:06 PM
Is it possible to sort a column of dates?

About the only sortable date format is yyyy-mm-dd or yyyy/mm/dd.