Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

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 ]

Posted

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

Posted

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"

Posted

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

Hope this helps!

Posted

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"

Posted

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 ]

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