Display nested object in text suggest ang get selected object

Good day

I have a view text width suggest. Have trouble figuring out how to show value from nested json and get the selected object.

Snippet : Code Snippet

I want it to display ‘doc_name’ instead of ‘value’ in input and in the list.

And also how can i get that object after it was selected ?

Have found a way to load the needed suggest options with webix proxy. But broke the suggest. When you write something in input it gives an Error. If someone got an idea why it so please tell me.

https://webix.com/snippet/a3438ca1

Thank you for your time!

Oke , the error has occured because i had no ‘value’ in my objects. Changed doc_name to value and now everything works.

https://webix.com/snippet/8ae30686