Link to home
Start Free TrialLog in
Avatar of rajanb
rajanb

asked on

Notesuidatabase

can i instantiate the notesuidatabase class
in the form , if yes how do i do it
Avatar of MW
MW
Flag of Malta image

You can't do this!!! But maybe you can tell us what you would like to achieve. Maybe there is another way of doing it.
Avatar of ghassan99
ghassan99

MW is right!  Notesuidatabase is just is just a special case of NotesDatabase.  For general purpose use, just use NotesDatabse class.
What you can do, and I remember trying this this. As MW and ghassan99 said, you can't do much stuff with a NotesUIDatabase.

1. In the Globals of the Database (see "Other" in the Design pane and then "Database Script"). Declare a variable for your NotesUIDB object
2. In the PostOpen of the "database script", set your object to source
ex: Set MyUIDB = Source

Because the "PostOpen" of the Database Script receives a NotesUIDatabase as a parameter you can capture it.

3. Now in your form you can have fun with your MyUIDB object.

I hope this helps you,

mchampou

I would be pretty much surprised if this works. The public variable declared in globals should only be public within the database script module.
Its pretty much clever, but it wont work!
I think Ghassan99 and MW are both right. As I said: "I remember trying this" ... I just couldn't remember if it worked.

I spent 2 minutes trying this stuff and yes : I could get the handle of the NotesUIDatase but I couldn't use it in any view event of form event ... the global variable that I had declared in my Database Script wasn't visible outside. =(

What are you trying to accomplish that you would need the NotesUIDatabase object ?

Avatar of rajanb

ASKER

IN MY FORM I HAVE THREE FIELDS
THE USER WILL ENTER THREE FIELDS THEN HE PRESSES A BUTTON
THEN I SHOULD SHOW ONLY THOSE DOCUMENTS IN THE VIEW
THAT HAS THE SPECIFIED CRITERIA MATCHING
LIKE DATE , ZONE AND NAME
SO I SHOULD PICK UPONLY THOSE ENGINEERS WHO ARE IN THAT
ZONE, WITH THAT NAME AND ON THAT DATE
SO WITH ONLY ON PRESS I SHOULD FILTER AND DUMP IN A FOLDER AND
SHOW THAT FOLDER
PLEASE TRY TO HELP ME OUT
IF THERE IS ANY OTHER TECHNIQUE PLEASE LET ME KNOW

ASKER CERTIFIED SOLUTION
Avatar of mchampou
mchampou

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
mchampou I think u should answer this in another question that rajanb asked!
Hi ghassan99 ... to be precise: I answered myself. I had posted a question regarding how to do what rajanb is. Nobody gave me the answer I needed and I found the solution so I "answered" to it (I didn't get the points for that one =)

yes I remember that one, u used profile docs. right?:))