Requiring an NPR Select in a Custom Field
I've got an NPR report in Client Server with a custom defined field as a SELECT. The field is used to capture a value which determines the format, content & layout of the report. The field is set up on page 2 as:
xx.type IG Enter Report Type of T (TX) or D (DC)
The clinicians want the SELECT to be required. Here's one way to handle this:
- AL START IF{(c.xx.type@tr.12u'="T"'="D") @W.display("Select T or D as Report Type"),H(5);
- AL CLOSE.UP 1}
When the report type SELECTION is T or D, the report runs and returns results.

4 Comments:
2 alternatives:
1) Use a condition on the select that will always be true
Cx = xx.type EQ Enter Type of T
Cx!'Cx
2) Edit the screen (F9) and add IFE=1
Thank you. Good stuff!
You can make not required fields required by editing the screen elements (#9 on CS E/E report) REQ=Y and a CH=T,D attribute should give a custom field "choices" and a lookup (so they can only enter valid entries)
Great tip James, thank you!
Post a Comment
Links to this post:
Create a Link
<< Home