6 Replies Latest reply on Oct 16, 2012 11:17 PM by russbrad

    Sort Table by Field using parameters

    russbrad

      I have a database where I want the user to be able to click on a field label at the top of a portal to sort the portal records by that field. Using the Sort Records script step, it seems like I will have to create a new script for every spot in my database that I wish to sort portal records by fields, which is a lot of places. Is there any way that this might be avoided?

       

      Ideally I'd like to create a script called "Sort Table by Field", to which I pass the Table name and Field name as parameters, so that I can specify the table and field name at the time that I'm calling the script.