# Getting an error “User already attached”

**URL:** <https://techcommunity.softwareag.com/t/getting-an-error-user-already-attached/91100>\
**Category:** Forum\
**Tags:** Mainframe-Integration, ApplinX\
**Created:** [September 1, 2009, 6:20pm UTC](https://techcommunity.softwareag.com/t/getting-an-error-user-already-attached/91100 "2009-09-01T18:20:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kumar\_piyus](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@kumar\_piyus](https://techcommunity.softwareag.com/u/kumar_piyus)\
**Post date:** [September 1, 2009, 6:20pm UTC](https://techcommunity.softwareag.com/t/getting-an-error-user-already-attached/91100/1 "2009-09-01T18:20:54Z")

</div>

I have a screen in mainframe in which if the user changes something, it will give a popup “Do you want to confirm the changes and go to 21 screen(Y/N):\_

---

<div class="post-metadata">

**Author:** ![Ohad\_M](https://avatars.discourse-cdn.com/v4/letter/o/7ba0ec/32.png) [@Ohad\_M](https://techcommunity.softwareag.com/u/Ohad_M)\
**Post date:** [September 2, 2009, 5:36pm UTC](https://techcommunity.softwareag.com/t/getting-an-error-user-already-attached/91100/2 "2009-09-02T17:36:52Z")

</div>

Hi Kumar,

There can be several reason for this behavior.  
Are you implementing any host logic when you start the update process, like executing a path procedure or submitting a GXSendKeyRequest?

You can try any workaround this issue by avoiding that popup screen altogether. When you update, instead of hitting ENTER the getting a popup window , typing y/n + ENTER again and only then perform the update.  
You can use the JavaScript Confirm function (OK- CANCEL box) to execute a path procedure that will perform the whole update process, including the confirmation. If the user clicks CANCEL in the Confirm box , nothing will happen. See the following example

```auto

function confirmUpdate(){
   if (confirm('Are you sure?'){
      gx_postBack('doUpdate'); // Execute a server side update method
   }
   else{
      // do nothing
   }
}
```

This solution will shorten the the update process since the users don’t have to wait for the Host confirmation popup.

Hope this helps,  
Ohad

---

<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:57pm UTC](https://techcommunity.softwareag.com/t/getting-an-error-user-already-attached/91100/3 "2021-04-02T14:57:26Z")

</div>


