Skip to Content

Child form?

Hi, friends!

I have 2 user forms, one form with report-parameters, the second one - for report-results.

Results-form must be modal (child) for Parameters-form (parent).

It meens that i shouldn't get access to first form when the second form is in focus..

What should i do to implement that?


Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 25, 2005 at 12:29 PM

    Hello Alexey, this is how I do it.

    in my Add On, I have a class for each form, and I handle all event of this form in tis class.

    in the parent form, I have a variable called FormUIDSon

    When I open a son form, I set this variable with the UID of the son form

    After, on the handle_Form_event methods of the father form, I added this code at the very beginning

    Public Sub Handle_SBO_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles oApplication.ItemEvent
    If Not IsNothing(mst_FormUIDSon) Then
      Dim oForm As Form
      For Each oForm In oApplication.Forms
        If oForm.UniqueID = mst_FormUIDSon Then
          BubbleEvent = False
          Exit Sub
        End If
      'Form not found, so it means it has been closed                
      Me.mst_FormUIDSon = Nothing
     End If
      Select Case pVal.BeforeAction
        Case True
          Select Case pVal.EventType

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 25, 2005 at 12:44 PM


    THANX, Sébastien!!!

    Well done!

    P.S.: sorry, but there is no radiogroup near your post to set up your points.. 😔

    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.