Skip to Content
author's profile photo Former Member
Former Member

Problem opening a UDO via a LinkButton

Hello all,

I need to open the form of a user-defined object upon a click on a LinkButton. To do this, I Activate() the corresponding menu, then Activate() the Find menu, enter the document number into the appropriate EditText and press the "Find" button.

The problem is that when entering the "Add" mode, the UDO performs initialization of some fields, so that if one tries to enter the "Find" mode, the following system message appears in a modal window and stops the execution of the code:

"Changes will cause the data to be deleted. Continue?"

Is there a way to temporarily disable this message to enable the addon to open the UDO form without any interference from the user?

Thanks in advance,

Anton

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 25, 2010 at 12:30 PM

    Expect you know if on the UDO form is some initialization of fields and if the message will pops up.

    If you have form with this message, you may after activating 1281 menuitem (find) send enter key with sendkeys and the message will be confirmed.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.