Dropdown options cant copy/paste

Tags: #<Tag:0x00007efc64db00a8>

Hi!
I’m testing the functionality of “dropdown”, “autocomplete”, “select” and “chosen” (plugin) with source ajax, but none works copy / paste.
I’m looking for something that picks me up from an array of ajax the “id” and “description”, and that I can copy / paste.

https://jsfiddle.net/4vqaxnc9/

I wait for an answer, thank you.

Hey @daw09

Can you share an example of input and output data or a draft?
It’s hard for me to visualize the process.

Hi!
I have chosen to use ‘autocomplete’ with ajax.
But it does not work properly, I want to show me the data of a url and look like ‘autocomplete’.
Data in serviceDropdown:
[{“Id”:“A”,“otherdata”:null}, {“Id”:“B”,“otherdata”:null}, {“Id”:“C”,“otherdata”:null}]

I need the id to come out in ‘autocomplete’ and nothing else.

I try this, but doesn’t work:

cellProperties.source = 
                    function (query, process) {
                        $.ajax({
                            url: serviceDropdown,
                            dataType: 'json',
                            data: {
                                query: query
                            },
                            success: function (response) {

                                for (var i = 0; i < response.length; i++) {
                                    console.log("response: ", response[i].Id);
                                    process += response[i].Id + ", ";
                                }
                                console.log(process);
                                return process;
                            }
                        });
                    };

Hey @daw09

I’m sorry but I do not have any examples for server-side data loading except the https://handsontable.com/docs/7.1.1/tutorial-load-and-save.html