August 06, 2007, 09:01 AM
K MannHow to display missing (null) values on a maintain form
I need to display null values on my maintain form. Master file defines theses as missing on. When stack values are displayed on form, default values are displayed (and updated) rather than the null values. I've looked at the help files but not sure where to define missing on or the exact syntax.
WF 7.1.4 WIN
August 06, 2007, 09:55 AM
Maintain WizardMaintain should respect a null value and display a . (period) for null data in a field. You can change the character that is displayed by setting the NODATA value. Are these fields from the Master or computed in the application? If they are computed, make sure you have the MISSING attribute in the compute:
COMPUTE Z/A1 MISSING ON = MISSING;
If they are coming from the database, please provide a sample of the Master, and let me know what is being displayed instead of the .
Thanks
Mark
August 06, 2007, 10:10 AM
K MannMaster file in question is below. Numeric column data is being displayed as a zero when database value is null. Master definition id I4 (
ALIAS=ASTHMA_TRIGGER_7, USAGE=A1V, ACTUAL=A1V,
MISSING=ON, $
)
FILENAME=ASTHMA, SUFFIX=SQLORA , $
SEGMENT=ASTHMA, SEGTYPE=S0, $
FIELDNAME=DATAGRP_6, ALIAS=DATAGRP_6, USAGE=A12V, ACTUAL=A12V,
MISSING=ON, $
FIELDNAME=COUNTY, ALIAS=COUNTY, USAGE=A3V, ACTUAL=A3V,
MISSING=ON, $
FIELDNAME=ID_SEQ, ALIAS=ID_SEQ, USAGE=A5V, ACTUAL=A5V,
MISSING=ON, $
FIELDNAME=VISIT_TYPE, ALIAS=VISIT_TYPE, USAGE=A1V, ACTUAL=A1V,
MISSING=ON, $
FIELDNAME=ADULT_CHILD_TYPE, ALIAS=ADULT_CHILD_TYPE, USAGE=A1V, ACTUAL=A1V,
MISSING=ON, $
FIELDNAME=INDIV_NUM, ALIAS=INDIV_NUM, USAGE=A2V, ACTUAL=A2V,
MISSING=ON, $
FIELDNAME=ASTHMA_TRIGGER_1, ALIAS=ASTHMA_TRIGGER_1, USAGE=A1V, ACTUAL=A1V,
MISSING=ON, $
FIELDNAME=ASTHMA_TRIGGER_2, ALIAS=ASTHMA_TRIGGER_2, USAGE=A1V, ACTUAL=A1V,
MISSING=ON, $
FIELDNAME=ASTHMA_TRIGGER_3, ALIAS=ASTHMA_TRIGGER_3, USAGE=A1V, ACTUAL=A1V,
MISSING=ON, $
FIELDNAME=ASTHMA_TRIGGER_4, ALIAS=ASTHMA_TRIGGER_4, USAGE=A1V, ACTUAL=A1V,
MISSING=ON, $
FIELDNAME=ASTHMA_TRIGGER_5, ALIAS=ASTHMA_TRIGGER_5, USAGE=A1V, ACTUAL=A1V,
MISSING=ON, $
FIELDNAME=ASTHMA_TRIGGER_6, ALIAS=ASTHMA_TRIGGER_6, USAGE=A1V, ACTUAL=A1V,
MISSING=ON, $
FIELDNAME=ASTHMA_TRIGGER_7, ALIAS=ASTHMA_TRIGGER_7, USAGE=A1V, ACTUAL=A1V,
MISSING=ON, $
FIELDNAME=ASTHMA_TRIGGER_8, ALIAS=ASTHMA_TRIGGER_8, USAGE=A1V, ACTUAL=A1V,
MISSING=ON, $
August 06, 2007, 10:16 AM
K MannOps, sorry, sent the wrong master file info, should be
FIELDNAME=ASTHMA_DIAG_7, ALIAS=ASTHMA_DIAG_7, USAGE=I11, ACTUAL=I4,
MISSING=ON, $
August 06, 2007, 10:26 AM
Maintain WizardI am a little concerned that the Table definition is an I4 and the MFD shows it as an A1V.
When you report off this database, do you see a 0 or missing data for that field?
Mark
August 06, 2007, 10:35 AM
Maintain WizardOk
I am seeing this behavior. If I have an integer field with MISSING=ON, that field is being displayed as a zero. Let me check with programming and I'll get back to you .
Mark
August 07, 2007, 08:01 AM
Maintain WizardProgramming has requested that a case be opened so we can fix this problem. I tried a number of ways to work around it, but the only one that kind of worked was changing the format to I4S. This doesn't display a Zero. However, if the value of the field IS zero and not missing, it will not show that either.
Thank you
Mark