Re: Report wizard, attribute bug report
I've just spotted a whole host of errors in the REPORT_ATTRIBUTE table, only because I was trying to add some attribute fields and I copied one that did nearly what I wanted and it caused a SQL error.
In the field REPORT_ATTRIBUTE.ATTRIBUTE_SQL all items between REPORT_ATTRIBUTE_KEY = 'NBNSYS0000000100' and 'NBNSYS0000000146' (all of which are attributes in the Taxon/status section) are missing the closing single-quotation mark. e.g.
#REPORT_OUTPUT.[Status:NR]='Yes
Furthermore every one of these attributes has the REPORT_JOIN_KEY set to NBNSYS000000003A. Referring to the REPORT_JOIN table, I think this item also has incorrect syntax in the JOIN_SQL field (perhaps relating to the use of linefeeds rather than spaces to separate the clauses). Unfortunately I have edited this field and no longer have a record of the original so I can't reproduce the exact error here. Certainly the resultant SQL was missing some spaces either before or after some of the LEFT JOINs.
Anyway, as far as I can tell, this means that none of these 47 attributes will work correctly in the wizard. The fact that no-one else seems to have reported the problem suggests that no-one uses these attributes much. U&nless of course the bug only exisits on our copy of Recorder, which seems unlikely.
Of the five new attributes I added today (all relating to locally designated Taxon/status items) I still have one which doesn't work properly, but so far I can't track down precisely where the problem is. I will of course post more if I learn anything useful.
Wildlife Sites Officer
Wiltshire & Swindon Biological Records Centre