Combo + dynamic add in property view

Hi team,

I wish to be able to plug a list in a property view like a combo but with a text field to add dynamically a value

I made the skeleton :
https://snippet.webix.com/m7i17fjo

in need to know how to put data in the property row after selected data or created data to the

Can you help me please ?

Regards,
Xavier

Hi,

I improved it a litle bit :

https://snippet.webix.com/lofy05hh

Hi,

a litle up please :slight_smile:

Hi @XavierDP ,
In case of new values you should update them with the help of setValues() property.
Please, check the snippet: Code Snippet

Hi @pyrus_vagus

Thank you very very much

1 Like

Hi @pyrus_vagus ,

I have problème

I duplicated the your prévious snippet and un add property row : theres is an error
https://snippet.webix.com/bea2uxyp

i use your snippet in my environement and its working
https://snippet.webix.com/xaqq1qky

i plug dynmaic list on each property row

just there is an error when i write in the text view and i press enter

the event is catched by popup i guess : so how could we disable this envent please ?

ok maybe theres is an other way

test5.js:184 Uncaught TypeError: Cannot read properties of undefined (reading ‘id’)
at Object.getValue (test5.js:184:34)
at result._get_new_value (webix.js:11857:21)
at result._editStop (webix.js:11753:21)
at result. (webix.js:11713:34)
at result._for_each_editor (webix.js:11747:17)
at result.editStop (webix.js:11712:14)
at result. (webix.js:11529:38)
at Object. (webix.js:526:22)
at Object.callEvent (webix.js:728:28)
at callEvent (webix.js:791:16)

when i tye in the text vien an i press enter, i store via ajax in database and i put the result in list or store
i wich the new id/value was selected

Regards,
Xavier

A litle up please :slight_smile:

check row ids.
you changed ids in the widget, but did not in the rest part.
also, just in case, check if selected id is resolved and return appropriate value.
https://snippet.webix.com/0oo1csvr