I have a table in a Browse window that I need to be able to show all records and have two options to filter out records by a specific code (Employee Type: Current, Former or both).
I added the Employee Type and all variable fields to the Hot Fields list so the Browse window does refresh. When both the Current and Former checkboxes are selected, all records are displayed correctly.
However, if only the Current or only the Former checkbox is checked, it either displays no records or only one. In the Conditional Browse Behavior screens, I have the Condition and Key to Use set (which is Lastname, Firstname, Employee Type). When I try to use Record Filter, I always get a runtime error about the field not being BIND, but I have the Employee Type and variables set in the Data and Embed areas included in the Hot Fields tab with the BIND option selected.
So, I gave up on that and have been trying to use the Range Limit Field (Employee Type) and Range Limit Type which is set to a variable that is set to the respective Employee Type codes.
When both types are selected, the first record is a Former employee. If I select the Former checkbox, only that Employee's record is displayed. The same happens if I have a Current record selected with both options checked, then I uncheck the Former box. So it is filtering but only displays the current record.
The attachment here shows the Browse window with the Conditional Behaviors. Current and Former checkbox variables are EMPselected and XEMselected respectively. The EMPcode in Range Limit Value is set to 'EMP' in this case that's previously set in an Embed.
I understand it might be difficult for you to understand this from an outside point of view so let me know if you have any questions.
I added the Employee Type and all variable fields to the Hot Fields list so the Browse window does refresh. When both the Current and Former checkboxes are selected, all records are displayed correctly.
However, if only the Current or only the Former checkbox is checked, it either displays no records or only one. In the Conditional Browse Behavior screens, I have the Condition and Key to Use set (which is Lastname, Firstname, Employee Type). When I try to use Record Filter, I always get a runtime error about the field not being BIND, but I have the Employee Type and variables set in the Data and Embed areas included in the Hot Fields tab with the BIND option selected.
So, I gave up on that and have been trying to use the Range Limit Field (Employee Type) and Range Limit Type which is set to a variable that is set to the respective Employee Type codes.
When both types are selected, the first record is a Former employee. If I select the Former checkbox, only that Employee's record is displayed. The same happens if I have a Current record selected with both options checked, then I uncheck the Former box. So it is filtering but only displays the current record.
The attachment here shows the Browse window with the Conditional Behaviors. Current and Former checkbox variables are EMPselected and XEMselected respectively. The EMPcode in Range Limit Value is set to 'EMP' in this case that's previously set in an Embed.
I understand it might be difficult for you to understand this from an outside point of view so let me know if you have any questions.