I have a suppression block set up in a form. When I enter data to one of the fields, it populates on the chart as it should, if the form is accessed in an encounter with other forms. When I just import the form by itself using the button on the toolbar, and then enter data to the fields, it does not show in the chart. Shouldn't the suppression be specific to the one form ? Not sure why I can't see the data.
John Mazurowski
Programmer Analyst
Faxton-St. Lukes
315-624-5873
Is this particular field referenced in other forms in your encounter (an obs term being used multiple times, or a linked document variable)? Is there any code running in these other forms in the encounter that could be populating/de-populating that field?
If the suppression functionality doesn't work when the form is used by itself, then something is probably wrong. The suppression blocks work much like brackets in other programming languages. All open brackets must have a close bracket, and there can be multiple levels of nesting.
As a rule of thumb, I only put open/close suppression blocks on fields like text fields (headers) or input fields (edits, radios, checkboxes, dropdowns). I don't put them on buttons or blank text fields that are used for spacing. I've gotten some weird behavior when I chose not to follow this rule.
In most cases, the reason for using suppression blocks is only to prevent the printing of a section header if no data has been entered into that section. In these situations, the suppression will be as follows:
Text field containing header text --- Open suppression block
Field 1
Field 2
Field 3 --- End suppression block