cancel
Showing results for 
Search instead for 
Did you mean: 

UDF

Former Member
0 Kudos

Hello,

I am catching events from UDF and I would like access order form. The TypeCount UDF can be different to TypeCount order form.

Set oForm = SBO_Application.Forms.GetForm(-pVal.FormType, pVal.FormTypeCount)

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Santiago,

maybe you should use this snippet:

try

oForm = SBO_Application.Forms.GetForm("-"+pVal.FormTypeEx, pVal.FormTypeCount)

catch ex as Exception

' if the extended form is not opened, an exception araise

' in this case you have to use the menu-Item "View" - "show userdefined fields"

' or open it via SDK by using the EnableMenu Method with

' SBO_Application.ActivateMenuItem("[MENUID]") and use the GetForm-Method

' again

End try

Answers (0)