# updateWorkplace in PopUp

**URL:** <https://techcommunity.softwareag.com/t/updateworkplace-in-popup/57421>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Application-Composer\
**Created:** [July 18, 2006, 9:46pm UTC](https://techcommunity.softwareag.com/t/updateworkplace-in-popup/57421 "2006-07-18T21:46:59Z")\
**Posts on this page:** 3\
**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:** [July 18, 2006, 9:46pm UTC](https://techcommunity.softwareag.com/t/updateworkplace-in-popup/57421/1 "2006-07-18T21:46:59Z")

</div>

According to the Developer’s Guide you can exchange the complete settings of the workplace via the method “exchangeMFWorkplaceInfo(…)”. And the following code sample is given:

```auto
public void onLogon()
{
// check user and password
...
...
// build up workplace for user
MFWorkplaceInfo wi = new MFWorkplaceInfo();
...
...
...
// exchange workplace
IMFWorkplace wp;
wp = (IMFWorkplace)findSessionContext,lookup(IMFWorkplace.IWORKPLACE_LOOKUP,false);
wp.exchangeMFWorkplaceInfo(wi);
wp.updateWorkplace(this);
}
```

However if your adapter is running in pop-up mode, the workplace is NOT updated after you close your pop-up.

---

<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:** [July 21, 2006, 10:41pm UTC](https://techcommunity.softwareag.com/t/updateworkplace-in-popup/57421/2 "2006-07-21T22:41:30Z")

</div>

…you are right: the update only works when being called from a screen-adapter which is on the same browser as the workplace itself.

What you can do: put the code to update your workplace into the screen-adapter which calls the popup. When a modal popup is closed always the undelying page-adapter is requested (because the popup typically/often changes data of the page that it was started from).

Bjoern

---

<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/updateworkplace-in-popup/57421/3 "2021-04-02T14:38:37Z")

</div>


