Opened 11 years ago
Last modified 11 years ago
#1167 new enhancement
A source descriptor observation data trigger is needed
| Reported by: | dbmulg | Owned by: | dbmuqs |
|---|---|---|---|
| Priority: | minor | Milestone: | Post-NPGS Prod'n |
| Component: | Database, Custom Reports | Version: | 1.9.4 Server |
| Severity: | Keywords: | ||
| Cc: | Database Engine: | N/A | |
| Operating System: | N/A |
Description (last modified by )
when CT users enter source descriptor observation data, there should be a trigger to prevent user from saving incomplete data.
Currently user could save a row with just the source descriptor selected without putting any obs value, i.e. no data in any of these three column: source_descriptor_code_id, numeric_value and string_value.
Change History (3)
comment:1 by , 11 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 11 years ago
| Description: | modified (diff) |
|---|
comment:3 by , 11 years ago
Note:
See TracTickets
for help on using tickets.

Can we also make the 3 fields mutually exclusive? For example, if the user is expected to input a code because it is a coded trait, could the trigger be edited (or a new one developed) that would then prevent the user from entering a numeric or text value in the other two fields? As it is now, they can fill in all three. The user has no initial visual clue what is required. If it is a coded field (after they have selected the inventory, crop, and trait) the user can select a coded value, but he can also input a numeric value and a text value in the other two (alternative) fields.
It would be ideal to have this control to avoid the user using the inappropriate field. (Both Descriptors and Source Habitat Descriptors)