# How to get the selected value from COMBODYNValidValues

**URL:** <https://techcommunity.softwareag.com/t/how-to-get-the-selected-value-from-combodynvalidvalues/57229>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Application-Composer\
**Created:** [February 22, 2006, 2:32pm UTC](https://techcommunity.softwareag.com/t/how-to-get-the-selected-value-from-combodynvalidvalues/57229 "2006-02-22T14:32:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Onur\_Kutlu\_GAGO](https://avatars.discourse-cdn.com/v4/letter/o/9d8465/32.png) [@Onur\_Kutlu\_GAGO](https://techcommunity.softwareag.com/u/Onur_Kutlu_GAGO)\
**Post date:** [February 22, 2006, 2:32pm UTC](https://techcommunity.softwareag.com/t/how-to-get-the-selected-value-from-combodynvalidvalues/57229/1 "2006-02-22T14:32:04Z")

</div>

You can get the selected value (id property of the ValidValueLine) of the COMBODYN2 by binding its VALUEPROP property to a field in the adapter class.

How do you get the TEXT property of the selected value :?:

Of course, I have the id and I can make a search in the ValidValueLine list to find the selected line and then get the text but isn’t there a quicker way to do this :?:

---

<div class="post-metadata">

**Author:** ![Bjoern\_Mueller](https://avatars.discourse-cdn.com/v4/letter/b/e9bcb4/32.png) [@Bjoern\_Mueller](https://techcommunity.softwareag.com/u/Bjoern_Mueller)\
**Post date:** [February 23, 2006, 12:12am UTC](https://techcommunity.softwareag.com/t/how-to-get-the-selected-value-from-combodynvalidvalues/57229/2 "2006-02-23T00:12:52Z")

</div>

…no direct way to get it. You mentioned it: it’s the purpose of COMBODYN to hide the text in front of the logic…

BTW: please pay attention: COMBODYN is a quite expansive cotrol for rendering. If you have multiple occurances in one page: take FIELD with POPUPMETHOD.

Bjoern

---

<div class="post-metadata">

**Author:** ![Onur\_Kutlu\_GAGO](https://avatars.discourse-cdn.com/v4/letter/o/9d8465/32.png) [@Onur\_Kutlu\_GAGO](https://techcommunity.softwareag.com/u/Onur_Kutlu_GAGO)\
**Post date:** [February 23, 2006, 1:47pm UTC](https://techcommunity.softwareag.com/t/how-to-get-the-selected-value-from-combodynvalidvalues/57229/3 "2006-02-23T13:47:05Z")

</div>

Yes, what you say is true. As a rule of thumb, if the list may contain more than 20 items I usually prefer Pop-Ups.

But I still think that a method like:

```auto
public ValidValueLine getSelectedValueLine();
```

can be very helpful. Because there’s no easy way to get the TEXT of the selected line.

Regards,

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:38pm UTC](https://techcommunity.softwareag.com/t/how-to-get-the-selected-value-from-combodynvalidvalues/57229/4 "2021-04-02T14:38:29Z")

</div>


