User Tools

Site Tools


applyfilter_range_limit_and_filter_the_result_set_.htm
Navigation:  ABC Library Reference > ViewManager > ViewManager Methods >====== ApplyFilter (range limit and filter the result set) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

ApplyFilter, VIRTUAL

blk2blue.jpg

The ApplyFilter method applies the range limits and filter for the active sort order to the managed VIEW. The filter applies starting with the next read.

The AddSortOrder and SetSort methods set the active sort order. The SetFilter method sets filter expression.

Implementation:

The ViewManager implements range limits and filters with the VIEW's FILTER attribute. See the Language Reference for more information.

Example:

MyView.AddSortOrder(ORD:ByCustomer)                       !sort by customer no

MyView.AddRange(ORD:CustNo,Relate:Orders,Relate:Customer) !range limit by parent file

MyView.SetFilter( '(CUST:Name>T)' )                   !set customer name filter

!program code

MyView.ApplyFilter                                        !apply the filter

MyView.Next()                                             !get next subject to filter

See Also:     SetFilter, SetSort

applyfilter_range_limit_and_filter_the_result_set_.htm.txt · Last modified: 2021/04/15 15:56 by 127.0.0.1