Skip to Content

​How To Reference New Form Open Form From Menu Event


I’m trying to figure out how would I reference a new form from a menu event? I will give you an example. The below code would call the duplicate method and copy data from the current form to the new one.


After when the above event is fired and it duplicate the data, I want to know how can I reference the new form in a variable so I can add additional values to it?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 08 at 01:18 PM

    After you open this new form add an UserDataSource and set your "base" FormUID there, in the new form you will be able to read the FormUID and read whatever you need from the "base" form

    Add comment
    10|10000 characters needed characters exceeded

    • Thanks for the tip. I learned after I call BO_Application.Menus.Item("1287").Activate() , I can call SBO_Application.Forms.ActiveForm to refrence the new form ID to a form varirble.