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.
Subject: RE: Help about prompting a message before database will open
hi Paul
Thats what the customer wants 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?
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
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