# Setting the popupmethod dynamically

**URL:** <https://techcommunity.softwareag.com/t/setting-the-popupmethod-dynamically/57526>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Application-Composer\
**Created:** [December 13, 2006, 11:13pm UTC](https://techcommunity.softwareag.com/t/setting-the-popupmethod-dynamically/57526 "2006-12-13T23:13:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frauke](https://avatars.discourse-cdn.com/v4/letter/f/b5e925/32.png) [@Frauke](https://techcommunity.softwareag.com/u/Frauke)\
**Post date:** [December 13, 2006, 11:13pm UTC](https://techcommunity.softwareag.com/t/setting-the-popupmethod-dynamically/57526/1 "2006-12-13T23:13:39Z")

</div>

Hallo,

is it possible to set the popupmethod of the field control dynamically?

I constructed a new control by implementing IMacroTagHandler. There I am setting various properties dynamically, in the following manner:

```auto
sb.append("<field valueprop='").append(m_valueprop).append("'");
sb.append(" statusprop='").append(m_valueprop).append("_status'");
sb.append(" datatype='").append(m_valueprop).append("_datatype'");
...
```

In the adapter I use the function getPropertyValue to setup the field:

1. If there is a dynamically created list of valid values available, the field should display a value helper (openIdValueCombo).
2. If not the field should behave and look like a normal field.
3. If the datatype is set to date or datetime the field should display the calender control.

For the first two cases it works when I set popupmethod=‘openIdValueCombo’ in the handler class and evaluate popupprop dynamically. But the calender is not displayed for the date fields.  
On the other hand, using my own popupmethod=‘myPopupmethod’ did not help.

Do you know some way to cover the three cases?

Thanks and best regards  
Frauke

---

<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/setting-the-popupmethod-dynamically/57526/2 "2021-04-02T14:38:42Z")

</div>


