Hi,
I have a scenario to filter and show records (in scrolling window) from one table. The filter is based on three criteria
1. Customer ID
2. RMD Type ID
3. Document Date (from and to)
For criterion 1 and 2 I am using reject record and it is working fine.
However, for 3rd criteria, I tried using Range clause with following code:
{Clear any previous range for the table.}
range clear table HBM060;
{Set the start of the range.}
'Document Date' of table HBM060 = '(L) DateFrom' of window Window1 {setdate( '(L) DateFrom' of window Window1, 0)};
range start table HBM060 by number 1;
{Set the end of the range.}
'Document Date' of table HBM060 = '(L) DateTo' of window Window1 {setdate('Document Date' of table HBM060, '(L) DateTo' of window Window1)};
range end table HBM060 by number 1;
But it is having following issues:
- Sometimes showing incorrect results (not within the date range)
- Document Date is a column of scrolling window, so one the above script runs it changes the document date to "DateFrom" field's selected date for all of the displayed records.
I want to know if I am going in a right direction OR is there any better solution to this requirement. Please let me know if the above code requires any correction.
Regards,
Waliullah
*This post is locked for comments