AnsweredAssumed Answered

Sort via script, using Get(ScriptParameter)

Question asked by jdevans on Oct 22, 2015
Latest reply on Sep 21, 2017 by genenyc

I have the need to write a single script that can be used to sort list views.

I want to use a Boolean field to toggle 1 or 0, Use that bool to determine Ascending or Descending, but I want to pass a script parameter of the field name to the script to be used as which field to sort.


For example:


Sort Records by Field [Ascending; Get(ScriptParameter)]


But I haven't been able to force Filemaker 14 to allow this. When I click specify on the field, it takes me to the dialog where I can select a field, instead of where I'd like to insert a calculation (Get(ScriptParameter)).


Anyone have any idea if this is possible?