Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Toggle Sort & Unsort Button

Featured Replies

Hello all,

I have a a button bar that sort and unsort my material. What I would like is,  I want the icons to show alternately if I do sort and unsort.  

Please see attached file.

Thank you so much.

 

Sort.fmp12

Edited by Lola

What do you mean by that? You want a different icon to show if it is Sorted vs Unsorted on each column? Or only the column that is Sorted to show?

  • Author

Yes I want a different icon that will show if it is sorted vs unsorted, like for example if i click the my material code it will show the icon AZ with arrow down and if I click it again it will show the icon AZ with arrow up (its already on the icons).

thanks

 

OK - then you need a second icon for each of the buttons, and use the Hide Object When... section of the Data part of Inspector - the attached shows this for Materials, and I've placed the two icons a bit apart from demonstration purposes.

You would place them directly over the top of each other to make it look seamless

Personally, I wouldn't use a field to track the sort order, but that's a matter of taste...

Sort_alternateIcons.fmp12.zip

Edited by webko

You said "button bar" in the original post. Are you using FileMaker 11 as your profile says? Apparently not if the format is fp12. Please update your profile, it helps to answer your question appropriately.

With the (FM14) button bar, you can achieve the same effect a little more cleanly -- you'd still use two button segments, but at least wouldn't have to stack them.

The OP file was a FM14/15 file - I haven't used either very much yet, so could you expand upon that Fitch? I just duped one of the button bar objects and stacked....

  • Author

Hello,

Profile updated...how can I make the other material name button not showing if I will click the material code button.

 

thanks

  • Author

Please comment to my final file for improvement

 

thank you

Sort.fmp12

Looks OK but the icons are the reverse of the actual sort order.

 

It seems conceivable that that is the desired result.

 "Click button to sort like this."

4 hours ago, BruceR said:

It seems conceivable that that is the desired result.

 "Click button to sort like this."

Interesting point:
http://ux.stackexchange.com/a/38660

 

Edited by comment

For buttons, future action makes sense. For column headers though, I believe UI convention very strongly favors sort indicators -- i.e., indicate the current sort state.

Google's material design specs for example (emphasis mine): "If column sorting is enabled, sort the most important data by default and display a sorted state in the column header. If the user clicks on a column that is already sorted, reverse the sort order and rotate the sort icon. "

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.