Author Topic: grid.getData in autocomplete Editor  (Read 332 times)

arbyter

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 43
  • Retired IT Guy
    • View Profile
grid.getData in autocomplete Editor
« on: November 08, 2022, 10:31:06 pm »
hi
i implementet autocomplete with the source of grid.getData({dataIndx:[ui.dataIndx]}). This works fine, but my customer wants now an unordered list of the autocomplete values.
He wants the values in history order. Now, before i dig in to handknite some code, maybe you have a hint, how to realise this.
I mean something like : getData({dataIndx:[ui.dataIndx],order:'history'})

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: grid.getData in autocomplete Editor
« Reply #1 on: November 10, 2022, 02:18:23 pm »
grid.getData() would provide complete data.

Every rowData has metadata pq_order associated with it which would help you to get rows in original order.

Then you can get fields of interest from the data and use in autocomplete.

Please let me know the results.