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.

-Sortfield on two fields?

Featured Replies

I'm trying to sort on two different fields but am getting a mixture of data. Am I using the right syntax if I want the -SortField to sort on title first and then content_area second?

"http://xxx.xxx.xxx.xxx/FMPro?-DB=scoe_events.fp5&-Format=scoe/admindelete.html&-SortField=title+content_area&-SortOrder=ascend&-Max=all&-Find"

Thanks for the input.

Kent

[ January 02, 2002: Message edited by: Kent Turansky ]

This should be:

"http://xxx.xxx.xxx.xxx/FMPro?-DB=scoe_events.fp5&-Format=scoe/admindelete.html&-SortField=title&-SortField=content_area&-SortOrder=ascend&-Max=all&-Find"

That is, use a -sortfield for each field being sorted, and in the order of the sort dominance.

All the best.

Garry

  • Author

Ok I understand that but now it creates a new problem. I get a warning that No Records Found?

When I take SortField=title& out it list everything by content_area or if I take SortField=content_area& out it lists everything by title so I'm not sure what I am still doing wrong? I have plenty of records but just cannot sort by both.

Thanks for the input

"http://xxx.xxx.xxx.xxx/FMPro?-DB=scoe_events.fp5&-Format=scoe/admindelete.html&-SortField=title&-SortField=content_area&-SortOrder=ascend&-Max=all&-Find"

Each -SortField tag must be followed by a -SortOrder tag. Two -SortFields, two -SortOrders.

Hope this helps!

  • Author

I'm still getting an error when I put the extra SortField and Sort Order. Does this look right?

Kent

"http://xxx.xxx.xxx.xxx/FMPro?-DB=scoe_events.fp5&-Format=scoe/admindelete.html&-SortField=title&-SortField=content_area&-SortOrder=ascend&-SortOrder=ascend&-Max=all&-Find"

quote:

Originally posted by Kent Turansky:

[QB]"http://xxx.xxx.xxx.xxx/FMPro?-DB=scoe_events.fp5&-Format=scoe/admindelete.html&-SortField=title&-SortField=content_area&-SortOrder=ascend&-SortOrder=ascend&-Max=all&-Find"[/QB ]

Close, but this is what I meant:

"http://xxx.xxx.xxx.xxx/FMPro?-DB=scoe_events.fp5&-Format=scoe/admindelete.html&-SortField=title&-SortOrder=ascend&-SortField=content_area&-SortOrder=ascend&-Max=all&-Find"

[ January 04, 2002: Message edited by: The Bridge ]

  • Author

Worked like a charm and now I understand this! Thank you

Kent

Glad I could help!

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.