Hi,
I'm about to set up a new database using DBMan. I love the program. I've installed the List Categories and Give a Count mod and I think I have discovered a weakness in the code. I'm not using the Validate Records mod. So, from the List Categories and Give a Count page I chose "Category names come from a select list definition in the .cfg file" - "Show only categories with matching records" - "For use without the "validate records" mod" - found at http://www.jpdeni.com/.../listcategories4.txt.
The database I'm about to launch is for a site about boats. Among others, I have 2 select fields. The first is named BoatManufacturer and have many select options, but the two select options causing me trouble are "Other" and "Albin". To avoid any confusion - "Albin" is a boat manufacturer. The other select field is named EngineManufacturer and also have many select options. This field also have select options "Other" and "Albin". There is also an engine manufacturer called "Albin", but they're not related to the boat manufacturer called "Albin". I also prefer to have an option called "Other" in such select lists because it's hard to cover all.
The problem is that it looks like the mod code mix up these two select fields when checking the database. It doesn't actually check which database field the keyword from the -.cfg definition is found, as long as it is found, it is listed and counted. E.g. when looking for the keyword "Albin" or "Other", found in the select definition for the field BoatManufacturer in the -.cfg file, the code will also count occurrences of these words in other database fields, e.g. the EngineManufacturer field. This will lead to categories being listed although they are empty and the number of records found is wrong.
What I'd like the code to do, is to make sure that the occurrence found in the database is in the same field number as the field number of the field to be listed and counted has in the -.cfg database setup.
I hope I'm making myself clear here. English is not my mother language.
Thank you.
Regards
Ole Knut Tobiassen
http://baatplassen.no
Norway
I'm about to set up a new database using DBMan. I love the program. I've installed the List Categories and Give a Count mod and I think I have discovered a weakness in the code. I'm not using the Validate Records mod. So, from the List Categories and Give a Count page I chose "Category names come from a select list definition in the .cfg file" - "Show only categories with matching records" - "For use without the "validate records" mod" - found at http://www.jpdeni.com/.../listcategories4.txt.
The database I'm about to launch is for a site about boats. Among others, I have 2 select fields. The first is named BoatManufacturer and have many select options, but the two select options causing me trouble are "Other" and "Albin". To avoid any confusion - "Albin" is a boat manufacturer. The other select field is named EngineManufacturer and also have many select options. This field also have select options "Other" and "Albin". There is also an engine manufacturer called "Albin", but they're not related to the boat manufacturer called "Albin". I also prefer to have an option called "Other" in such select lists because it's hard to cover all.
The problem is that it looks like the mod code mix up these two select fields when checking the database. It doesn't actually check which database field the keyword from the -.cfg definition is found, as long as it is found, it is listed and counted. E.g. when looking for the keyword "Albin" or "Other", found in the select definition for the field BoatManufacturer in the -.cfg file, the code will also count occurrences of these words in other database fields, e.g. the EngineManufacturer field. This will lead to categories being listed although they are empty and the number of records found is wrong.
What I'd like the code to do, is to make sure that the occurrence found in the database is in the same field number as the field number of the field to be listed and counted has in the -.cfg database setup.
I hope I'm making myself clear here. English is not my mother language.
Thank you.
Regards
Ole Knut Tobiassen
http://baatplassen.no
Norway

