# COMBODYN2 control

**URL:** <https://techcommunity.softwareag.com/t/combodyn2-control/79812>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, NaturalONE, Natural-for-AJAX\
**Created:** [December 19, 2008, 2:46am UTC](https://techcommunity.softwareag.com/t/combodyn2-control/79812 "2008-12-19T02:46:33Z")\
**Posts on this page:** 4\
**Page:** 1

<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:** [December 19, 2008, 2:46am UTC](https://techcommunity.softwareag.com/t/combodyn2-control/79812/1 "2008-12-19T02:46:33Z")

</div>

With the COMBODYN2 how does one know which option the user selected.

What I would like to do is display a list of options for the user, and then when they select one, they press a button (e.g. Select) and then I want to display a record based on the option in the COMBO box.

The problem is that I am trying to iterate through the VALIDVALUESPROP to see which one was selected by looking at the STATUS field (defined as a U field). Usually I would have expected it to be a logical, so I am sure I am missing something.

Any advice would be appreciated.

Thanks.

---

<div class="post-metadata">

**Author:** ![Christine\_Zimmermann](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Christine\_Zimmermann](https://techcommunity.softwareag.com/u/Christine_Zimmermann)\
**Post date:** [December 19, 2008, 12:15pm UTC](https://techcommunity.softwareag.com/t/combodyn2-control/79812/2 "2008-12-19T12:15:29Z")

</div>

A COMBODYN2 has a VALUEPROP and a VALIDVALUESPROP property.

In the VALIDVALUESPROP data structure you specify the values among which the users can select.

When the user has selected a value, the VALUEPROP data structure contains the selected value.

In case you would like to react immediately to a selection you can do the following:

1. set the property FLUSH to server
2. set a flushmethod

In this case your Natural program will be immediatly notifyd when the user has selected a new value. In this server roundtrip you can display the record based on the selected value. This means, you do not need an additional button for this.

Best Regards,  
Christine

---

<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:** [December 19, 2008, 6:57pm UTC](https://techcommunity.softwareag.com/t/combodyn2-control/79812/3 "2008-12-19T18:57:38Z")

</div>

Works perfectly.

Thanks for your help Christine.

---

<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:51pm UTC](https://techcommunity.softwareag.com/t/combodyn2-control/79812/4 "2021-04-02T14:51:18Z")

</div>


