Filtering Dataitem

hi i want to filter a dataitem of a report by taking inputs from request form. how can i achive it?

Use the OnPreDataItem trigger associated with the dataitem you are working with. This code is executed before the data item is processed. At this point the table views and filters have been set, so what you add with SETRANGE or the SETFILTER function will override what was previously set. -John