before form opened event i want to check something before form is opened if true user can open the form if not form openinig should not be allowed .How?

Posted on 2011-05-05
Last Modified: 2013-12-18
I need to check if the person started the form is an employee for 6 months, if not i dont want him/her to be able to create the form. in our company when someone starts a form it follows the domino workflow accordingly. I have calculated if the employee is a worker for 6 months but i need to catch the event before the form is created so that when he/she hits start the form from the intranet page i should not allow the form to be created or seen and a warning message can pop-up. What is the way to do it? which Domino Workflow event or form event or etc.... i should have these fields checked?
Question by:fatihdi
    1 Comment
    LVL 46

    Accepted Solution

    It is the QueryOpen event of the form:

    QueryOpen( Source as NotesUIDocument, Mode as Integer, IsNewDoc as Variant, Continue as Variant )

    The code could be something like:

    If IsNewDoc Then
          If IsNewEmployee() Then
                MsgBox "Sorry, this function isn't available for you (yet)", 16, "Stopped"
                Continue= False
          End If
    End If

    Once Continue is false, execution won't continue and the form won't be shown.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
    IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now