Forum Discussion

haider's avatar
haider
Ideator III
4 years ago

New version closes the item

So whenever I create a new version using a method, for some reason the form gets closed any idea why that happens?

12 Replies

  • That´s normal behavior. After versioning you have to open the new item with a separate call. 

    • haider's avatar
      haider
      Ideator III

      Hello thank you do you know what call that is how can I do that 

      • angela's avatar
        angela
        Catalyst II

        aras.uiShowItem . You sure will find some samples in this forum.

  • That's how people usually act. After versioning, you have to make a separate call to open the new item.

  • Aaba's avatar
    Aaba
    Ideator III

    Did you found any solution for this? I am also facing same issue.

    • angela's avatar
      angela
      Catalyst II

      Well, it still works perfectly fine for me. But without more details regarding your or the original authors use case, it´s impossible to answer this question.

    1. The method you're using to create a new version may be triggering an event that closes the form. For example, if you're using a "Save" method and the save operation completes successfully, it might trigger a "Close" event.

    2. The code you're using to create the new version might contain an error that is causing the form to close unintentionally. Check your code for any errors or exceptions that might be occurring.

    3. There might be some other code running in the background that is closing the form. This could be anything from an anti-virus program to a piece of malware. Make sure that your system is free from any unwanted software that might be interfering with your application.

  • bind() The bind() method creates a new function that, when called, has its this keyword set to the provided value, with a given sequence of arguments preceding any provided when the new function is called