Populate PickerfieldCustom from a CDT

I'm fairly new to Appian so any help is greatly appreciated.

I found this example on how to populate a PickerfieldCustom  with static data but I'm wanting to use a table from a database via a CDT.

The table has 2 columns (id, descr). I already created a CDT for it and works fine.

The PickerfieldCustom  needs to display the descr field and the value needs to be the id.

Are there any good examples for this? If not can someone give me some guidance?

  Discussion posts and replies are publicly visible