Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

I must be blind. But I cannot determine how to sort a portal row outside of the preset sort. I want to be able to sort the data in the portal by the field names. Thoughts??

Thanks!!!

Posted

Thank you, however, I missed some important info. i need to automate the sort in the portal by scripts and button clicks and it need to be compatible with the web.

  • Newbies
Posted

(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

This topic is 7451 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.