Hi everyone, I'm a bit frustrated...
I would like to set the default values of the search fields in a smart fields, and to my suprise, I found out that Progress does not support this directly! I then referred to Kbase Id 2058 that explanes how to adapt CustomFilter.p/.i to do this.
HOWEVER my fields seem to be set to FORMAT "x" and the Filter doesn't work at all, even when I press the reset button, which actually should display all my records.
further this a note in kBase 20258:
2) Keep in mind that assigning the SCREEN-VALUE of hField may truncate
your data if the FORMAT of hField is too small.
To solve this problem, you may then do hField:FORMAT = FILL('X',
repeats) or at least check the lenght of the FORMAT before setting the
SCREEN-VALUE attribute.
....what !!!??? It is NOT possible to get the handle of the search fields! I tried {get FieldHandles lFieldHandles h_dynfilter}, seems to be a pPrivate function only.
Can someone enlighten me on this problem. Has perhaps anyone
built a better custom smart filter?
Thanks in advance for any help/comments given
Oliver
I would like to set the default values of the search fields in a smart fields, and to my suprise, I found out that Progress does not support this directly! I then referred to Kbase Id 2058 that explanes how to adapt CustomFilter.p/.i to do this.
HOWEVER my fields seem to be set to FORMAT "x" and the Filter doesn't work at all, even when I press the reset button, which actually should display all my records.
further this a note in kBase 20258:
2) Keep in mind that assigning the SCREEN-VALUE of hField may truncate
your data if the FORMAT of hField is too small.
To solve this problem, you may then do hField:FORMAT = FILL('X',
repeats) or at least check the lenght of the FORMAT before setting the
SCREEN-VALUE attribute.
....what !!!??? It is NOT possible to get the handle of the search fields! I tried {get FieldHandles lFieldHandles h_dynfilter}, seems to be a pPrivate function only.
Can someone enlighten me on this problem. Has perhaps anyone
built a better custom smart filter?
Thanks in advance for any help/comments given
Oliver