Help about prompting a message before database will open

Hi! Does anyone know how can I prompt a message right before a database is opened also every time it is opened as well? I tried putting the code in Postopen or Initialize in the Database Script but the database will open first before the message is going to be prompted.

Thanks :slight_smile:

Subject: Help about prompting a message before database will open

you can use QueryOpen instead of PostOpen or Initialize

Subject: RE: Help about prompting a message before database will open

hi teejay :slight_smile: Thank you for your reply.

I cant seem to find the queryopen event in the database script :frowning:

Subject: RE: Help about prompting a message before database will open

I would love a QueryOpen ebent in the database script.

Just out of curiosity, why do you need to prompt them before the db opens?

Subject: RE: Help about prompting a message before database will open

hi Paul :slight_smile:

Thats what the customer wants :frowning: First i thought they just want to prompt a message when the database starts so I wrote the code in the Postopen event in the database script but after seeing the result, they wanted the message to pop out before the database would open so I tried putting it in the Initialize event but it has the same result with the postopen event. I tried closing the notesuidatabase then prompting the message then opening it again using notesuidatabase.openview but it still wont work. Any suggestions? :slight_smile:

Thanks!

Subject: RE: Help about prompting a message before database will open

If the database isn’t open, how can the client access the code that lives in the database? That’s why there’s no database QueryOpen.

Subject: RE: Help about prompting a message before database will open

Okay here’s a suggestion if ever you guys encounter the same problem. I created a form then saved it, in its queryopen event, I wrote the code to display the prompt i want then on its postopen event I declared a NotesUiDatabase then used uidb.OpenView. After that i closed the form using uidoc.close(true). Now after saving the form, I copied its document link and pasted it in the “About Database Document” then changed the property “When opened in the Notes client” to "Launch first doclink in “About database” under the launch tab of Database properties. Seem to work I but so far this is the best solution I have come across right now. Any other suggestions would be great :slight_smile:

Thanks!

Subject: RE: Help about prompting a message before database will open

Hi,

if someone sends you a doclink from this db, will your event fired up?

JYR

Subject: RE: Help about prompting a message before database will open

Hi JYR,

Im not sure if I understood your question correctly, but what I assumed is that you’re asking if the document link would come from another database would the event still be triggered? I haven’t tested it yet but I think the even will still be triggered. Please correct me if I’m wrong :slight_smile:

Thanks.

Subject: x