Turansky Posted January 3, 2002 Posted January 3, 2002 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 ]
Garry Claridge Posted January 3, 2002 Posted January 3, 2002 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
Turansky Posted January 3, 2002 Author Posted January 3, 2002 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"
The Bridge Posted January 3, 2002 Posted January 3, 2002 Each -SortField tag must be followed by a -SortOrder tag. Two -SortFields, two -SortOrders. Hope this helps!
Turansky Posted January 4, 2002 Author Posted January 4, 2002 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"
The Bridge Posted January 4, 2002 Posted January 4, 2002 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 ]
Turansky Posted January 4, 2002 Author Posted January 4, 2002 Worked like a charm and now I understand this! Thank you Kent
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now