This topic is locked

How to hide repeating values on the List page

5/9/2012 1:47:03 PM
ASPRunnerPro Tips and tricks
admin

Here is the typical list page with the list of cars sorted by make.


Sometimes you may need to make this screen less cluttered removing repeating values in the Make column. Something like this:


Here is how this can be done.

  1. Add the following code to List page: BeforeProcess event:

SESSION("make")=""


2. Set 'View as' type of Make field to 'Custom' and paste the following code there:

if value=SESSION("make") then

value=""

else

SESSION("make")=value

end if


This is it.