# Perspective dropdown component schema

**URL:** <https://forum.inductiveautomation.com/t/perspective-dropdown-component-schema/64738>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [October 2, 2022, 3:51am UTC](https://forum.inductiveautomation.com/t/perspective-dropdown-component-schema/64738 "2022-10-02T03:51:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![NII](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nii/32/12920_2.png) [@NII](https://forum.inductiveautomation.com/u/NII)\
**Post date:** [October 2, 2022, 3:51am UTC](https://forum.inductiveautomation.com/t/perspective-dropdown-component-schema/64738/1 "2022-10-02T03:51:28Z")

</div>

The dropdown component seems to have only 2 defined schemas, label and value. This causes error in designer when adding \> 2.  
 ![err](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/c/7c287e2aba56233813e10fc6245437983a67b19f.jpeg)

Is there a way to add schema get rid of the error?

---

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [October 2, 2022, 5:18am UTC](https://forum.inductiveautomation.com/t/perspective-dropdown-component-schema/64738/2 "2022-10-02T05:18:45Z")

</div>

Don't add other keys.

Use the value as an object and add whatever you want in there.

```auto
value = {”lic_plate":"licplate",
              "OtherKey":"othervalue"}

```

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [October 2, 2022, 3:47pm UTC](https://forum.inductiveautomation.com/t/perspective-dropdown-component-schema/64738/3 "2022-10-02T15:47:46Z")

</div>

What are you trying to do ?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 2, 2022, 4:25pm UTC](https://forum.inductiveautomation.com/t/perspective-dropdown-component-schema/64738/4 "2022-10-02T16:25:00Z")

</div>

If you need to carry other information (other query columns, etc), use a custom property. Make your original binding (with extra info) there. On the dropdown, bind to that custom property and use a transform to deliver just label and value. The selected index of the dropdown can then be used to retrieve the other information from correct row of the complete query results.

---

<div class="post-metadata">

**Author:** ![NII](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nii/32/12920_2.png) [@NII](https://forum.inductiveautomation.com/u/NII)\
**Post date:** [October 3, 2022, 3:01am UTC](https://forum.inductiveautomation.com/t/perspective-dropdown-component-schema/64738/5 "2022-10-03T03:01:18Z")

</div>

Thanks to both Deon and Pturmel.

Deon solution is closest to what I have, takes less editing. I also like Pturmel idea, I think its more practical for larger values.
