Saturday, 12 May 2018

Updates, updates

You may have noticed that the App has had some more updates quickly following on the main update (to version 2.0.0) issued last month.
So what's going on?
The first 2 updates (2.0.1 & 2.0.2) fixed a mistake in the App where, if an Extra Cost was entered in the Sundries list, it wasn't read properly and returned zero. The first update fixed it for most of us, but then I realised that if the currency symbol was placed at the end of the amount (ie 34.56€) the figure still would return zero. This led to the second update which fixed this.
I also took the opportunity to make it easier to see which dimension box you were about to enter data (rebate size). The hint in that box (Cm or Inches) changes colour when it is ready for you to enter the size.
That was all thanks to discussions with users at the Art & Framing Roadshows.

The last (for a while, I hope) update (2.0.3) makes it easier to update the Mouldings.csv file.
The problem was that if a new "Mouldings.csv" file was copied to the Download folder (or any other folder) and there was an earlier version(s) of the file already there, then the new file would be labelled "Mouldings(1).csv", or "Mouldings(2).csv" and so on.
As the App was programmed to only look for "Mouldings.csv" it was quite easy to use an old file by mistake to update the App. The answer was to delete the old file(s) first, then download the newest file. (A bit of a faff).
So, what's changed?
Now, when the App looks for the update file it will show you all the csv files in that folder.
Also, the title of the file can now be whatever you like ("wessex_arq.csv" for instance).


Simply select (tap) the file you want to use, and then tap "OK".
This should make updating the moulding data much easier.

An extra piece of info - In the latest versions of Android (version 5 onwards) the SD card is not shown when looking through folders (a "security" feature, thanks Android). So make sure you always copy (download) the file into the "Download" folder.

Saturday, 14 April 2018

Major Upgrade for the Pricing App

A major new upgrade to The Framers Pricing App has been released.

The internal file structure has been completely rewritten which means that -

  • You can now have as many items in the Mount, Glass and Sundries lists as you like (previously only 5 items)
  • Each item can now have its own fixed cost (labour cost or cutting charge), rather than one cost to cover all items.
  • You can choose as many Sundry items to add to the overall cost as needed (previously only 1)
This makes the App far more versatile.





I've also brought the App upto date to comply with the new Google Play security requirements (coming into force later this year) and to work with the latest Android versions.

Wednesday, 17 January 2018

Can we fix it? - Yes, we can!

Just recently updates to the Windows and Android operating systems have caused "issues" with the Wessex Pricing Program and The Framers Pricing App. These have now been resolved, so now (and you guessed it) it's the turn of Apple.
Around Christmas there was a big update to the Mac operating system and also an update to Crossover for Mac. Together (and I'm not sure which one is to blame) it meant that if you were running the Wessex Pricing Program on your Mac using Crossover - it would no longer start (with an error message helpfully saying "Unknown error"!).
My solution is fairly drastic - delete the program and re-install it (it works, honest!).
"Ah!"I hear you say "If I can't start the program how can I make a copy of those 2 important data files (V3.mdb, & User.xml) which configure the program to my business?"
Fear not, the next paragraph will show you how to get to these, and so preserve your data.

Open Crossover and highlight the "Wessex Pr..." bottle (on the left hand side). Then click the little cog at the bottom left of the Crossover screen. This will bring up some options. Select "Open C: Drive" (see first screenshot).


Now you will see a screen with some folders (this is Crossover's emulation of Windows).

Open "ProgramData", then "Wessex Pictures", then "wpp4". Now the screen will show files including "V3.mdb", & "User.xml". Copy these and your data is safe!
(NB. Be sure to open the ProgramData folder NOT the Program Files folder.)

Now we can delete the program and re-install it.
Select "Wessex P.." again, and Right-click it (alien to Mac I know, but I could do it with the touchpad). This time click "Delete Wessex Pricing 4.x" and confirm.
The next job is to download the latest version of the program from Wessex Pictures to your Downloads folder.
When you've done that (back in Crossover) click "Install a Windows Application" and Type "Wessex Pricing 4.x" in the box, and click "Continue". Crossover will then install the necessary extra files. There will be various Licence agreements to accept. Finally the Wessex Pricing Program will be installed and you're good to go.
At the first run of the program you'll need to re-insert the Enabling code (get it from Wessex 01590 681681).
Now you can import the database ("File> Import Database") and the values ("Setup > Values" & click "Import).
All done, phew!

(NB. You can avoid the problem of finding your data files by using the automatic backup option ("Setup > Options" & select the "NtWk/BkUp" tab) which will make a copy of the two files each time the program is shut down).

Sunday, 17 December 2017

Where did that file go? (Get to grips with the Android file system)

As you know The Framers Pricing App can use a .csv file of moulding information to price up jobs. When you first install the App there is a file that contains all the Wessex and Frinton mouldings, fine if you are in the UK, not very useful if you are in a different country.
The App provides a means for you to install a new file, and so use the mouldings which are relevant to you as well as keeping the prices upto date. (Tap "Settings", then "Misc. Values" and then "Import Mouldings file".)
Of course you have to have constructed the file in the first place (see blog posts Nov. '16 & May '15). This post is primarily about finding that file to import.

The first problem is to get the new Mouldings.csv file onto your device, and there are a number of ways of doing it.

  • You could go to a supplier's website and download it from there (assuming they have a compatible file).
  • You could send yourself an email with the file attached, and then download the attachment.
  • You could copy it onto your device via a usb or bluetooth link with your pc.
  • You could copy it from you PC onto an microSD card and then move the card to your device.
  • You could construct the file directly on your device.

I'm sure there are other ways as well.

Once the file is on your device the next problem is to find it and for those of us who are used to the Windows file system the Android system seems quite alien.
If you used either of the first two methods then the file will be in "Download" and this is where tapping "Import Moulding file" will take you.



Tap Mouldings.csv to select it, and you're done.
But suppose the file is somewhere different? How do we get to it?
Tap the 2 small dots (above Adobe Reader in the above screenshot) and you will go up a level in the Android file structure (see below).


You can now select "documents" for instance.

If the file is on a microSD card you'll need to move up another level. So, scroll to the top of the list and tap the 2 small dots and you should see a list similar to the one below.


"external_sd" is the one we want. Select that, and the files on that microSD card will be listed.

NB. Get the file onto your device, disconnect any usb or bluetooth connections, then import the file into the App. Frustration will result otherwise!

Important!
If you have downloaded over time a number of update files to the same location without deleting the first one, then they will be labelled "Mouldings.csv", "Mouldings(1).csv" and so on. The App only looks for a file named "Mouldings.csv" and it will ignore all others. So you can be in a position of importing an out of date file. Delete the old file(s) before you import the new one.

Wednesday, 8 November 2017

Update Mouldings v's Windows Update

A few weeks ago I had a call from a Wessex Professional user about a problem she was having, trying to update her moulding records from an Excel file. I was quite busy framing at the time (the day job) so I said I'd try to repeat the issue that evening at home, not expecting a problem.
Within a few minutes of running a test the same error message appeared ("unexpected error from external database driver (1)") - problem time!
I put the error message into Google and found that other people had the same problem, and the cause was the latest Windows update.

Now I'm a firm believer in the saying "If it ain't broke - don't fix it". Unfortunately it was broken and I had to fix it!

Very quickly I came up with one solution, but that involved expecting the user to download and install 100mb of new database engine. Ok if nothing else could be done, but not ideal.

The breakthrough came when I found a DLL that returned data from an Excel file (DLL's are small files that add functionality to a program). The slight fly in the ointment was that the data came in a slightly different form which meant that a section of code had to be rewritten. Overwriting code that had worked perfectly well upto the Windows Update was rather galling, particularly as it is quite complex (loops within loops). However, after much head-scratching and testing a new program version came into being.
So, download ver. 4.4.4 from the Wessex website and all will be well.

Friday, 25 August 2017

Disaster(s) averted

"Not another update!" I can hear the cries now.
The main update for the year (version 4.4.2) was put on the Wessex website for download in March. This made the way the program works out the price much more flexible. Also, the way the program reads the xml User file was rewritten (you didn't really need to know that).

This upgrade (version 4.4.3) will hopefully prevent an overwritten database being completely irretrievable.
Up to now, if you imported a database (or User) file it was simply copied over the previous one. This didn't have to be a problem, because before you did anything as drastic as that you backed up all your data - you did, didn't you?

Of course that ignores the human factor - we're in a hurry, we didn't think things through, all sorts of reasons.
The solution must be easy, surely if a new database is being imported, simply copy the old one to somewhere on the computer?
Well, yes that could work, but it would also leave us with some potential problems. If it was copied to "My Documents" it could be quite easy to loose or delete. Copied to somewhere more obscure would mean that it was difficult to find.
The other potential problem is that copying the same file to the same place would mean overwriting the previous file. Potentially good data could be overwritten with bad data.

The solution - use the "Recycle Bin". Every PC has one, it's easy to access and will also take multiple copies of a file with the same title.
However, we could then be faced with a bin filled with files of the same name, not insurmountable (right-click and choose "Properties" to find out size, last modified, etc.) but a bit of a faff to sort out. Also, if the file was "restored" it would immediately overwrite the current database, even if the program was not running!

With a bit of nifty footwork we can get around all of these problems.
When you click "File" > "Import Database" the program checks the new database is compatible, then it warns you to check the dates of the old file and the new one to be imported.
When you tell it to continue it used to simply overwrite the old database.
Now, the old database file is copied to the "Desktop" with the date and time appended to its title. Straightaway it is then moved to the "Recycle Bin". So, if the file is restored, it is restored to the "Desktop" and can be dealt with from there. Clever eh?


If you peer at the above image of my Recycle Bin you will see that the database file is now labelled "V3_01052017_120726". To decipher that - "V3" is the database file, "01052017" is the date (01/05/2017) and "120726" is the time (12:07:26).
Then, it was easy to use virtually the same code to do the same thing with the "User" file (this contains the user's labels and values, which together with the database file made the program specific to a particular framer).
So, now the user will have to work a lot harder to lose their data!

NB. The above only works with the program's own internal database, so if you are using a networked database, you will need to make your own arrangements to copy and backup file.

Monday, 29 May 2017

Gotcha!

As with many things to do with computers the Wessex Pricing Program has a few things that are not immediately obvious. Our transatlantic cousins call these "Gotchas". I thought I'd list the most frequent together with the solutions.


  1. Trying to update the moulding records by clicking "Import Database" - Be careful! "Import Database" will (if you ignore the warnings) overwrite the whole of your existing database. Make sure you click "Update Mouldings" instead.
  2. Running a moulding update correctly, but the records have stayed the same. - When you download the update file from Wessex it is saved in Downloads as "WessexMouldings" (or "FrintonMouldings"), If you download a new update file it is saved as "WessexMouldings(1)", "WessexMouldings(2)" and so on. However the moulding update process will only allow you to import "WessexMouldings" ie. the original one. The answer - delete all but the most recent update file and Rename that to "WessexMouldings" (or "FrintonMouldings").
  3. An error message "......You don't have permission to access this file......." when the program tries to read the database. - The easy solution is to run the program as administrator. Right-click the shortcut and choose "Run as administrator". Note the program does not normally need administrator rights to run, the problem seems to occur when the User Account Type is changed.
  4. An error message on startup ".....Root element is missing ......" - Make sure you have upgraded the program to version 4.4.2 or higher.

Easy really?