I hope I can explain this so it makes sense.
I have a police report application that consists of a parent table (grid) and several child table/grids which are set up as a view. One of the tables contains "Persons" information. Each person has a "Person Code" associated with it. For example; Victims are "V-1, V-2," Witnesses are "W-1, W-2, W-2," Arrested Persons are "A-1, A-2, A-3," etc.
There are several printable reports that go with this application, and one page shows a "Print Menu" which has javascript buttons that bring up different types of reports. I want to use the Show/Hide option to make it so that certain buttons only show if there are associated reports to print. In other words, if there are no "Arrested Persons" (A-x), then the "ARREST REPORT" button will not be available.
In the Persons table I created a field called "HasArrestRpt." It's a calculated field that populates with the word "YES" if the person entered has a code starting with "A-," otherwise it says "NO."
In the properties of the page that holds the Print Menu buttons, for the "ARREST REPORT" button I entered "HasArrestRpt = "YES" in the Show/Hide option section.
This works, but only if the FIRST linked person has a code that starts with "A-." If any other linked person "codes" are in the persons table before an arrested person, the button does not appear. Apparently the link to the parent table is looking at the first child (persons table) record to determine if it meets the Show/Hide criteria.
Is there any way to make sure the Show/Hide expression is looking for *any* persons whose code starts with "A-"?
I have a police report application that consists of a parent table (grid) and several child table/grids which are set up as a view. One of the tables contains "Persons" information. Each person has a "Person Code" associated with it. For example; Victims are "V-1, V-2," Witnesses are "W-1, W-2, W-2," Arrested Persons are "A-1, A-2, A-3," etc.
There are several printable reports that go with this application, and one page shows a "Print Menu" which has javascript buttons that bring up different types of reports. I want to use the Show/Hide option to make it so that certain buttons only show if there are associated reports to print. In other words, if there are no "Arrested Persons" (A-x), then the "ARREST REPORT" button will not be available.
In the Persons table I created a field called "HasArrestRpt." It's a calculated field that populates with the word "YES" if the person entered has a code starting with "A-," otherwise it says "NO."
In the properties of the page that holds the Print Menu buttons, for the "ARREST REPORT" button I entered "HasArrestRpt = "YES" in the Show/Hide option section.
This works, but only if the FIRST linked person has a code that starts with "A-." If any other linked person "codes" are in the persons table before an arrested person, the button does not appear. Apparently the link to the parent table is looking at the first child (persons table) record to determine if it meets the Show/Hide criteria.
Is there any way to make sure the Show/Hide expression is looking for *any* persons whose code starts with "A-"?
Comment