2 Replies Latest reply on Feb 26, 2008 5:43 AM by Mush15

    Need help advice for sort error

    Level 1
      Find criteria must contain at least one sort field value.

      I received this error when I sorted a column then ran an operation on the DP.

      I am at a loss to explain it.

      Has anyone encountered this?

      Also does anyone know how to overcome this?
        • 1. Re: Need help advice for sort error
          Sreenivas R Adobe Employee
          I think it means that Sort you are trying is trying to use a dataField which is not available in the DP item.

          Are you doing Sort in AS or using mouse click on DG?

          I would check contents of Sort.fields (array of SortFields) and see if it is referring any dataField not available in DP.

          • 2. Re: Need help advice for sort error
            Level 1
            Sreenivas,
            thanks.

            i think it had more to do with the fact that I am using Item renderers in a DataGrid.

            when the grid is sorted Flex losses the context of the item renderers

            What I did was to assign the DP to a temp AC then perform my operations then set the original AC source equal to the temp ac