31/01/12

Permalink 09:14:13 am, by mholmes, 24 words, 143 views   English (CA)
Categories: Tasks; Mins. worked: 0

Remove search_instructions.inc from repo

It looks as though search_instructions.inc is no longer needed. Check on this, and delete it from the repo if that's the case.

Permalink 09:09:20 am, by mholmes, 65 words, 137 views   English (CA)
Categories: Tasks; Mins. worked: 10

Move memory settings into separate config file

Currently, memory and time settings are in db/connect.php, which is a generic file shared by all projects. This requires modification of the file if a particular project has different requirements, which puts its working copy out of sync with the repo. Instead, these lines should be moved somewhere else -- possibly into local_classes.php:

ini_set("memory_limit","100M");
set_time_limit(120);

27/01/12

Permalink 12:31:22 pm, by mholmes, 14 words, 111 views   English (CA)
Categories: Activity log; Mins. worked: 30

Default instructions updated

I've updated the instructions in the sample file to include all the new features.

24/01/12

Permalink 02:34:39 pm, by mholmes, 48 words, 114 views   English (CA)
Categories: Activity log; Mins. worked: 60

Rolling out changes

I've been rolling out the latest version to some of the existing projects. So far, Manifestoes has the current code, as does JSRDocs (as of today); VPN dev has it, but I haven't moved it to VPN yet. Properties will be the last one I do, I think.

Permalink 11:36:20 am, by mholmes, 76 words, 111 views   English (CA)
Categories: Activity log; Mins. worked: 60

Bug discovered and fixed

This was not major, just an annoying GUI behaviour:

  • Do a search which specifies some selected fields to display in the results.
  • The results table shows the expected fields.
  • Do a multi-record edit.
  • When the table is replaced, it no longer has the expected fields visible; instead, it has defaulted to the normal display fields.

It turned out that I wasn't sending the search filter parameters along with the record update data. That's now being done.

20/01/12

Permalink 10:07:25 am, by mholmes, 108 words, 119 views   English (CA)
Categories: Activity log; Mins. worked: 240

Bugs found and fixed

Started detailed bug-testing:

  • Master edit-all checkbox wasn't changing the onclick event of the edit-all button. That's now fixed.
  • In IE, the Search filters box is not collapsed on load. Fixed: obscure problem involving hiding and then showing again.
  • In IE, checking the checkbox to include a one-to-many field in a multi-edit submission does not enable its "new" button. Fixed: remember the IE returns all nodeName attributes as upper-case, even if the document is XHTML.

Linkset fields now shorten their link text around an ellipsis by default (default max length is 60). Preliminary testing confirms that everything works on FF, Chrome, Opera and IE9. I'm not testing with earlier IEs.

19/01/12

Permalink 03:33:26 pm, by mholmes, 61 words, 112 views   English (CA)
Categories: Activity log; Mins. worked: 120

Problem solved: multiple-record editing now complete

Found the bug, eventually -- it was a lesson I've learned before, and forgotten: you can't use a period in the name of a request parameter. It has to be underscores.

I've done a couple of other tweaks, and now I'm going to roll it out to the dev version of the Manifestoes db and do serious testing on various browsers.

18/01/12

Permalink 03:14:29 pm, by mholmes, 269 words, 172 views   English (CA)
Categories: Activity log; Mins. worked: 360

Multiple edits basically working; one more problem to solve

Multiple-record editing is now basically working, but I have one more problem to solve:

When you submit an edit form for an existing single record, for each one-to-many field, all existing records in the linking table are deleted, then new ones are created if there are any new ones in the submission; otherwise, none are left. In the case of a multi-record edit, though, we have a complex situation because if the one-to-many field is enabled, but no items are in it, then the intention is to delete all link records relating to all the records being edited. However, when the MdhRecord object reads data from the submission, it finds no parameters relating to the one-to-many field, because no selections were made, so it (currently) concludes that the field was not "set", and does nothing, leaving all the existing link records in place.

I need to find a way to submit the fact that the one-to-many field is selected even though there are no data items for it. This might be achieved by reading the disabled attribute of the hidden generic select control which is used to clone new selects when you add new items to the field. The disabled state of this control should reflect the disabled state of the field itself, so I should be able to send a flag based on this which the one-to-many control can read.

Once that's done, there will be extensive cross-browser testing to do, and then I want to complete a couple more tweaks: saving the state of the table display controls as cookies, and elliding URLs in MdhLinkField and MdhLinkSetField.

17/01/12

Permalink 03:33:08 pm, by mholmes, 69 words, 79 views   English (CA)
Categories: Activity log; Mins. worked: 15

Spreadsheet download now suggests correct extension

I've puzzled for a while with the issue of how to serve up a file type for download, with a suggested extension that's different from .php, from a .php module on the server. Turns out it's perfectly simple:

  header("Content-type: application/csv");
  header("Content-Disposition: attachment; filename=file.csv");
  header("Pragma: no-cache");

I've added that to the get_search_as_spreadsheet.php module, and it works fine. Another annoyance fixed.

Permalink 03:05:36 pm, by mholmes, 57 words, 71 views   English (CA)
Categories: Activity log; Mins. worked: 120

Multi-edit GUI now complete

All field types are now working in the multi-edit GUI. I've also fixed up some display issues in the one-to-many field, which were caused by working around a bug in webkit; after deleting a one-to-many item, a linebreak would be left in place, which was a big ugly.

Next I have to get the back-end code working...

<< Previous Page :: Next Page >>

Adaptive Database

This project aims to design a flexible online database which can be set up as very quickly for a researcher requiring a relational database, and is easy to modify and extend. The Web GUI provides tools for data-entry in as simple and convenient a manner as possible, while also allowing data-integrity checks. The application development sandbox is currently at https://hcmc.uvic.ca/people/martin/potluck/editor/index.php; and half a dozen UVic projects are already using the codebase. The code is managed through SVN here: https://revision.tapor.uvic.ca/svn/adaptivedb/.

Reports

Categories

June 2013
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            

XML Feeds