ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: arbyter on November 08, 2022, 10:31:06 pm

Title: grid.getData in autocomplete Editor
Post by: arbyter 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'})
Title: Re: grid.getData in autocomplete Editor
Post by: paramvir 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.