` Printed Icetips Article

Icetips Article



Par2: Override a Range at runtime
2002-05-31 -- Dennis Evans
 
>     Is it possible to override a range set on a browse list?  I want to
> display all records in a list for only a "super user" but all  other users
> see only the ranged list.

  In the ApplyRange method, before the parent call,

  if (condition = super user)
     Self.Order.LimitType = Limit:None
  else
     Self.Order.LimitType = Limit:Single/Current or what ever
  end
  put(Self.Order)

  That will shut the range limit on/off for the current sort order.  If you
have multiple sort orders and want various results you will need to test for
what sort is currently active.



Printed May 3, 2024, 3:31 am
This article has been viewed/printed 35115 times.