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.

List(Function) alpha order

Featured Replies

List(Function)gives me a list of line items; which is great.

But I need for that list to be in alpha order, instead of order of portal. Is there a calculation that will do that? I couldn't find a link.

Thanks in Advance!

You could use:

http://www.filemaker.com/help/Functions%20Ref45.html

...provided you take care of the freshing issues it exhibit, when used in scripts is it smooth sailing, with unstored calc'fields is it a mixed pleasure ...stored calc'field is it not working reliable.

Alternatively could you since you're on 8.5 Advanced, define a CF to deal with the output from List(

http://www.briandunning.com/cf/26

But again is freshing issues making it tough to use a calc'field for say primary key of a relation. Plus there is a price to pay speedwise when you whirl it thru the CF.

The fastes of them all are probably to use both functions mentioned here and Filtervalues(

http://www.filemaker.com/help/FunctionsRef-346.html

Since the stuff will sort according the ValueListItems( but where ValueItems not are dealing with the found set but all via a cartesian relation.

--sd

The List() function lists values in the sort order defined for the relationship - not the portal. So you could sort your relationship alphabetically, and define a separate sort order for your portal.

Alternatively, you could define a value list of related items and use the ValueListItems() function instead. Note that this will also remove any duplicates.

Comment kind of say, what I'm after but forgot for a short while ... I think?? Solve the matter as long as posible via flexing the relational definition, then you might later follow up on the matter with calc'functions ... never the opposite way ... although spreadsheet'ish discourse might have made you used to it that way!

--sd

  • Author

I used the Bubble Sort Function and it works. Thank you for your help! I must have a problem with the iterations.When I use the calculation to change from carriage return to comma seperated

Case(IsEmpty(my_bubble_sortfield); ""; Substitute (my_bubble_sortfield ; "¶" ; ", " ))

I get a comma at the end of the last value in some results. I have the iteration set to 10 ( the amount of portal rows) BubbleSort (line_item_list ;10 )Am I setting the iteration wrong? When it was at "1" it would not sort list. Any help would be greatly appreciatted.

I am puzzled why you would choose a method that is both the slowest and the most costly to implement out of the suggested alternatives.

Yes, do us the favour an make an extra TO to where the relation is sorted!

Anything else is crossing the river, to get water!

--sd

Why would you need an extra TO? All it takes is two trips to the sort order window - once for the (existing) relationship, once for the portal.

Good point! I'm not getting there today somehow??

--sd

Create an account or sign in to comment

Important Information

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

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.