# Setter method is called after the button method...

**URL:** <https://techcommunity.softwareag.com/t/setter-method-is-called-after-the-button-method/57403>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Application-Composer\
**Created:** [June 27, 2006, 9:04pm UTC](https://techcommunity.softwareag.com/t/setter-method-is-called-after-the-button-method/57403 "2006-06-27T21:04:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hjo](https://avatars.discourse-cdn.com/v4/letter/h/e0b2c6/32.png) [@hjo](https://techcommunity.softwareag.com/u/hjo)\
**Post date:** [June 27, 2006, 9:04pm UTC](https://techcommunity.softwareag.com/t/setter-method-is-called-after-the-button-method/57403/1 "2006-06-27T21:04:43Z")

</div>

Hello,

I use a layout like this

```auto
...
<field maxlength="5" width="150" valueprop="dailyTransfer" statusprop="dailyStatus"/>
<hdist width="5"/>
<button image="/images/neu_16.png" width="20" method="doAddDailyTransfer"/>
...
```

and in the adapter, there are the following methods available

```auto
...
    public void setDailyTransfer(String dailyTransfer)
    {
        m_DailyTransfer = dailyTransfer;
    }
    public void doAddDailyTransfer()
    {
      //...
    }
...
```

My problem is that the setter method is sometimes called after the method doAddDailyTransfer(). Even if I set the flush=“server” property… In nearly all other adapters used by me, nothing like this occurs… :?:

Can anyone help me?

Thanks in advance.

H. Johannes

---

<div class="post-metadata">

**Author:** ![Ingo\_Oellers](https://avatars.discourse-cdn.com/v4/letter/i/ed8c4c/32.png) [@Ingo\_Oellers](https://techcommunity.softwareag.com/u/Ingo_Oellers)\
**Post date:** [August 21, 2006, 6:33pm UTC](https://techcommunity.softwareag.com/t/setter-method-is-called-after-the-button-method/57403/2 "2006-08-21T18:33:28Z")

</div>

Hello,  
maybe it is sufficient to synchronize the two methods.  
Put a call on the setter at the top of the other method.

It should doesn’t matter if the setter-method will be occasionally called twice.

Regards  
Ingo Oellers

---

<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/setter-method-is-called-after-the-button-method/57403/3 "2021-04-02T14:38:36Z")

</div>


