LP1831785 Combobox pcrud selector and pkey support user/berick/lp1831785-combobox-pcrud
authorBill Erickson <berickxx@gmail.com>
Mon, 29 Jul 2019 15:36:38 +0000 (11:36 -0400)
committerBill Erickson <berickxx@gmail.com>
Mon, 29 Jul 2019 15:38:33 +0000 (11:38 -0400)
commit4688ed07d40089c68c3b0a3866f46622363e22dd
treecca0f044d4ac790554f9a0542d56b088df03197e
parentd108a287e33c8093a492af4c141404894ae7b746
LP1831785 Combobox pcrud selector and pkey support

Teach the PCRUD-driven combobox to use the IDL class' selector field
as the sort and display field when no idlField value is provided.

Teach the async source to use the pkey field of the IDL class instead of
assuming the 'id' field.

Tweak the sandbox example to fetch data for a class which uses a
selector not called "name" and a pkey not called "id".

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.html