Skip to Content
author's profile photo
Former Member

User Defined Fields Form

Hi Philipp,

This is in reference to ur post Dated Jan13,2005. "Opening User Defined Fields Form via API".

Is it possible for u to give a code snippet. what i'm unable to get is

- Check if i can get a handle of the UDF-Form in the Mainform Activate-Event

and

-disable the close button

Thanx in anticipation.

Manu.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Sep 21, 2005 at 06:10 AM

    Hi Manu,

    Here is a code snipet where looks for the related UDF form. The FormTypeNum´s value is the same as pVal.FormType property.

    Dim oUDFForm As SAPbouiCOM.Form
    Try
    oUDFForm = con.Forms.GetForm("-" + FormTypeNum.ToString.Trim, con.Forms.Item(FormUID).TypeCount)
    Catch ex As Exception
       con.ActivateMenuItem("6913")
       oUDFForm = con.Forms.GetForm("-" + FormTypeNum.ToString.Trim, con.Forms.Item(FormUID).TypeCount)
    End Try
    

    The other issue is solved in your other post.

    Regards,

    Ibai Peñ

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 06, 2005 at 01:58 PM

    Thanx a ton Ibai,

    both my issues are solved now.

    Manu

    Add comment
    10|10000 characters needed characters exceeded