Hi All,
I have required someone help , problem is that i want to add all domino databases in the dialog list so that administrator asign the ACL Entry to the selected database in my web based application.
i will highly appreciated if anyone respond to me asap.
thanx & regards
zubair a khan
Subject: Add all domino database in dialog list
I see. Then make an agent, and run it on WebQuery Open of your dialog form. The agent will pick up information about the databases from specified server and put it to fields in your form.You can then use those fields to get list of choices.
If you need to do it with more servers, you will need to send a server name as a parameter to agent (e.g. in querystring, picked up in field in your form)
Play with this:
l_serverName = currentDoc.ServerName(0)
Set l_notesDirectory = gSession.GetDbDirectory(l_serverName)
count = 0
Set l_db = l_notesDirectory.GetFirstDatabase(DATABASE)
While Not (l_db Is Nothing)
redim preserve pathArray(count)
redim preserver titleArray(count)
pathArray(count) = l_db.FilePath
titleArray(count) = l_db.Title
count = count + 1
Set l_db = l_notesDirectory.GetNextDatabase
Wend
currentDoc.pathList = pathArray
currentDoc.titleList = titleArray
Subject: RE: Add all domino database in dialog list
Hi Darina,
thanx for quick response
thanx & regards
zubair a khan
Subject: Add all domino database in dialog list
DB:=@Prompt([ChooseDatabase];“”;“”);Server:=DB[1];
Filepath:=DB[2]
Subject: RE: Add all domino database in dialog list
Hi Darina,
thanx for quick response. but i want to list all databases in the dialog list in the web form that is part of my application
how i will use it in dialog list formula.
no doubt it is running properly in notes application but i want to run in webbased application.
thanx & regards
zubair a khan
Subject: RE: Add all domino database in dialog list
If you put database titles in a multivalue field, you can build your list choices from it.User selects a title of the database. In the other corresponding field there are paths to databases, so that if the uses selects database No.3, you use path No.3 to get there, on the selected server.
I assumed your web form is some kind of value picker so you didn’t need to worry about creating a web value picker, just populating it with values.
If you do not have a form that allows you to pick values from multiple choices, then it is more difficult, I recommend to look for existing framework or template where you can find an existing suitable form.
And I have a feeling that it is quite a complex task you are giong to try. Custom list of databases (am I right that you have a predefined list of DBs to choose from), and on them you want to perform non-trivial tasks via web interface.
What is the purpose of it - isn’t it possible to do it in an easier way? Administration tasks on databases can be performed via web using standard Lotus features.
Subject: RE: Add all domino database in dialog list
Hi Darina,
Thanx to give response but i have to create the interface where administrator can control ACL for all databases or selected databases. i am glad to say to you that i have found tha list of all databases in a Dialog box for web application after trying that.
thanx for quick response to me
thanx & regards
zubair a khan