Raymond Gonzalez Posted February 18, 2007 Share Posted February 18, 2007 Hello, im making a layout that is going to viewed in "list view". I want that when you click the name of the field that appears in the top that group of field will be sorted ascending, and if u click again it will sort descending, like if you were clicking in a "Table view". Thanks! Link to comment Share on other sites More sharing options...
mr_vodka Posted February 18, 2007 Share Posted February 18, 2007 See here and here. JMO FM6 example Link to comment Share on other sites More sharing options...
Raymond Gonzalez Posted February 21, 2007 Author Share Posted February 21, 2007 hello, sorry, i tried to see the links u gave me but they didnt help, is there something else that may help me? thanks Link to comment Share on other sites More sharing options...
mr_vodka Posted February 21, 2007 Share Posted February 21, 2007 Isnt that exactly what you were looking for? Were you not trying to sort the records in list view via a column heading that is a button ? Please re-read Ender's post. Link to comment Share on other sites More sharing options...
Lee Smith Posted February 21, 2007 Share Posted February 21, 2007 Confusing way to put that. Does this mean that you couldn't find the: Site? File? Download the File? The file wasn't useful? Or something else. Lee Link to comment Share on other sites More sharing options...
Raymond Gonzalez Posted February 21, 2007 Author Share Posted February 21, 2007 the file didnt help with what i want. Link to comment Share on other sites More sharing options...
mr_vodka Posted February 21, 2007 Share Posted February 21, 2007 Read the first link to the forum thread. I may have posted the wrong link to John's file. Here is the correct one, but its an older solution. As I said earlier, read the thread. Correct Post Link to comment Share on other sites More sharing options...
Lee Smith Posted February 21, 2007 Share Posted February 21, 2007 Take a look at this script. Link Link to comment Share on other sites More sharing options...
Raymond Gonzalez Posted February 21, 2007 Author Share Posted February 21, 2007 i read it too! but i dont know if im too newbie but i couldnt get it to work Link to comment Share on other sites More sharing options...
mr_vodka Posted February 21, 2007 Share Posted February 21, 2007 Thanks Lee for finding an example. :( Link to comment Share on other sites More sharing options...
Fitch Posted February 22, 2007 Share Posted February 22, 2007 FileMaker's Business Kit also has lists that sort this way. A little bit about sorting: once you sort, FileMaker does retain the last sort order, you can see it if you go back into the Sort dialog box. However, there's no way for a script to get at that information and make use of it. So, each time you sort, you have to make a note of whether you sorted ascending or descending. This is typically stored in a global field or global variable. The data you store in the global can be the actual word "ascending" or it could be just "A" or "1" it does not matter. It's just a flag that you can reference in your sort script. Also note that these older solutions, and even FileMaker's example, use separate scripts for sorting ascending and descending, and separate scripts for each type of sort. It's messy! But back in the day, you could only store ONE sort, find, and print setup per script. We no longer have that limitation. Mmmm, sorry no time to post more right now... Link to comment Share on other sites More sharing options...
Raymond Gonzalez Posted February 22, 2007 Author Share Posted February 22, 2007 hey! thanks, but i think that the link is wrong, or is not a file u are trying to give me? thanks! Link to comment Share on other sites More sharing options...
Fitch Posted February 22, 2007 Share Posted February 22, 2007 The link is correct, but you have to request the download by filling out a form. It's painless and you get a nice freebie. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6271 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