Sort in View

Hello,

I want to create a view called “By System” and need to display a field called “System” in a specific sequence in a view.

I have a field “System” in my form with a list box containing a list of Systems namely

Motor, Motorbase, Motorecore, Motorskid,Motorcase,Airdam and motorplate.

There are 8 to 10 more but I will stop here.

I need to display these in the same order as above.

Any help will be appreciated

Subject: Sort in View

Ram,

Create a second (hidden) field on the form called SystemNumber (or something similar)

In the formula…

@if(System=“Motor”;1;System=“motorbase”;2 and so on…)

Then create a hidden column to the left of yoru system column and sort that

HTH

Mike

Subject: @Member

Another way I like to use is @Member(FieldName; ListOfChoices). I don’t know if it’s faster… or even better… than @If. It just feels easier to me so I thought I’d mention it.

If the field value isn’t in the ListOfChoices, then @Member returns 0, so if you want unknown at the top, sort ascending, and if you want unknown values at the bottom, sort descending (with ListOfChoices in reverse order).

Subject: Sort in View

Create a new hidden column in the view to left of your system column and sort it.

Then use a formula similar to the following:

@If(System=“Motor”;1;System=“Motorbase”;2;System=“Motorecore”;3;…

This means you don’t have to update any documents.

Charlie

Subject: Sort in View- Thanks All

It works wonderful.

Thanks

Ram