Jump to content

Sort a portal row??


This topic is 7098 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

(First post ever - Mwahahaha)

I dont believe FMP gives u any way to directly do this in any easy way... But I have had and solved this problem myself, in the hard way..

I made my portal and sorted it asc by a field called this_is_my_sort_field.

This field contained a calculation that gave it numbers (the current record number or record_count - current record number, read ASC and DESC)

Then i used a global_var to tell my calculation which field i wanted to sort by..

Something like this:

Case(

Menu::Current_Sort = "1"; Get ( RecordNumber );

Menu::Current_Sort = "2"; Menu::Buttons_Count - Get ( RecordNumber );

Menu::Current_Sort = "3"; b_Order;

Menu::Current_Sort = "4"; Menu::Buttons_Count - b_Order;

)

b_Order is the default order setup by the admin (could be anything really)

This was the basic of how one of my mac os x finder alike menu's works.. hope this brings light to your problem? blush.gif)

- Matte

Link to comment
Share on other sites

This topic is 7098 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.